Search found 1622 matches
- Wed Jan 21, 2026 9:41 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 17
- Views: 503
Re: Implementing a non blocking delay
As an aside - I've done a little work in the ISR - and in general ISRs should be as short and fast as possible. I've set it to as slow as possible interrupt rate (1:256) (I used timer 0) - but if it runs at 75Hz (maybe using a different timer?) - then the small amount of code here would be fine. Als...
- Wed Jan 21, 2026 9:28 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 17
- Views: 503
Re: Implementing a non blocking delay
I've done a simple example - with a single LED and button to activate the timer - this will allow you to run in simulation (in v9) and hopefully follow the logic. When the button is pressed - a countdown for the LED is set (I've used arbitary values) - and the ISR counts down - and either lights the...
- Tue Jan 20, 2026 5:08 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 17
- Views: 503
Re: Implementing a non blocking delay
I was thinking along similar lines as Steve....
Sorry - I don't have Flowcode 4
Martin
Sorry - I don't have Flowcode 4
Code: Select all
ISR (Runs every Nms)
if L1 > 0:
L1 = L1 - 1
IF L1 = 0 - Light led 1
if L2 > 0
etc
In program:
If B1 pressed set L1 = time until L1 lit
If B2 ....
- Mon Jan 19, 2026 7:23 pm
- Forum: General
- Topic: AirMar P66 speed calculation problems
- Replies: 19
- Views: 743
Re: AirMar P66 speed calculation problems
Glad you are making headway again.
Let us know how the project goes!
Martin
Let us know how the project goes!
Martin
- Sun Jan 18, 2026 9:09 pm
- Forum: General
- Topic: AirMar P66 speed calculation problems
- Replies: 19
- Views: 743
Re: Duration measurement between two pulses
and https://www.furunousa.com/-/media/sites/furuno/document_library/documents/brochures/brochures/s650_st650.pdf - which shows the 4.8/5.6Hz values - though this might be a different part - it looks to be the same as the Airmar replacement? And the rate is per knot so if your boat is going at 20kts ...
- Sun Jan 18, 2026 8:53 pm
- Forum: General
- Topic: AirMar P66 speed calculation problems
- Replies: 19
- Views: 743
Re: Duration measurement between two pulses
Struggled to find them again......
This gives the 26000, 7.25Hz http://www.ohmex.com/p66.pdf
There seems to be a 'fuller' datasheet - but only on scribd (and I didn't want a trial subscription)
Martin
This gives the 26000, 7.25Hz http://www.ohmex.com/p66.pdf
There seems to be a 'fuller' datasheet - but only on scribd (and I didn't want a trial subscription)
Martin
- Sun Jan 18, 2026 2:31 pm
- Forum: General
- Topic: MQTT broker blacklisted by Norton
- Replies: 11
- Views: 660
Re: MQTT broker blacklisted by Norton
Got PicoMQTT to run AOK (on an esp32s3) this morning. Compiled the basic_server example (using the Arduino IDE - setting up the esp32 toolset failed multiple times!) - and then connected using the MQTT Client app on Android. Yesterday connecting failed but today it went smoothly - esp32 connected to...
- Sun Jan 18, 2026 11:06 am
- Forum: General
- Topic: MQTT broker blacklisted by Norton
- Replies: 11
- Views: 660
Re: MQTT broker blacklisted by Norton
For interest - there is a MQTT server that will run on the esp32 - PicoMQTT. It is quite limited (5-10 connections) and so far I haven't managed to get it to run - but for 'remote' or low-power scenarios it might be a suitable alternative to the power of a RPi.... Having said which - a Pico is proba...
- Sun Jan 18, 2026 11:02 am
- Forum: General
- Topic: AirMar P66 speed calculation problems
- Replies: 19
- Views: 743
Re: Duration measurement between two pulses
Possibly - but I couldn't get the timed interval component to compile. I got: from D:\Projects\Flowcode\t1.c:20: D:\Projects\Flowcode\t1.c:2433:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' Error returned from [avr-gcc.exe] So in theory - you could run a 'check' every 4s (...
- Sat Jan 17, 2026 9:06 am
- Forum: General
- Topic: AirMar P66 speed calculation problems
- Replies: 19
- Views: 743
Re: Duration measurement between two pulses
Possibly - but I;m not sure I see what extra information you'd get by doing so?
I would either modify the above code to record the time for every (say) 100 pulses OR record the number of pulses over a given interval?
Martin
I would either modify the above code to record the time for every (say) 100 pulses OR record the number of pulses over a given interval?
Martin