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
Search found 1613 matches
- Sat Jan 17, 2026 9:06 am
- Forum: General
- Topic: Duration measurement between two pulses
- Replies: 12
- Views: 369
- Fri Jan 16, 2026 7:28 pm
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 4
- Views: 135
Re: Implementing a non blocking delay
It might be missing the interrupt - you have a 300ms delay in the first macro shown (which i assume is the ISR) - this would likely cause your program to fail. It is very hard to tell from screen shots (no macro names etc) - so please upload your code - however, as version 4 is now no longer support...
- Fri Jan 16, 2026 7:31 am
- Forum: General
- Topic: Implementing a non blocking delay
- Replies: 4
- Views: 135
Re: Implementing a non blocking delay
Flowcode v4 is now no longer supported - can I suggest you try v11 - you will find a lot has changed for the better...
If you need a non blocking delay you will need to get rid of the delays in your code... A timer interrupt could handle things (and must not contain delays)
Martin
If you need a non blocking delay you will need to get rid of the delays in your code... A timer interrupt could handle things (and must not contain delays)
Martin
- Wed Jan 14, 2026 9:25 am
- Forum: General
- Topic: Using C code generated in FlowCode in other IDE's
- Replies: 4
- Views: 1657
Re: Using C code generated in FlowCode in other IDE's
Looking at the micro-ROS docs at https://micro.ros.org/docs/tutorials/co ... tion_rtos/ it looks like it might use FreeRTOS as an underlying OS. There are quite a few examples on the forums using this on esp32 - which may give you a bit of a start point.
Martin
Martin
- Sat Jan 10, 2026 7:47 pm
- Forum: General
- Topic: Duration measurement between two pulses
- Replies: 12
- Views: 369
Re: Duration measurement between two pulses
Just looking at the AirMar P66 transducer data - and looks like the speed reading is given by pulse frequency (~5.6Hz at 1knot for example). So rather than measuring the pulse length - measuring the number of pulses over a given period might be an easier option? So count rising edges over 10s (or mo...
- Sat Jan 10, 2026 10:35 am
- Forum: Tips & Tricks
- Topic: Organise your Flowcode projects
- Replies: 2
- Views: 236
Re: Organise your Flowcode projects
Thanks - I did mention the memory was getting less reliable with age!!!
- Fri Jan 09, 2026 9:15 pm
- Forum: General
- Topic: Duration measurement between two pulses
- Replies: 12
- Views: 369
Re: Duration measurement between two pulses
Will be interesting to hear how it goes!
- Fri Jan 09, 2026 9:12 pm
- Forum: Tips & Tricks
- Topic: Organise your Flowcode projects
- Replies: 2
- Views: 236
Organise your Flowcode projects
Another new year's resolution - organise my Flowcode (and other) projects/life generally better. I was looking for a particular project - and memory not being what it used to be - struggled to find the version I was looking for.... Many of my projects just get thrown in the same directory - and if I...
- Fri Jan 09, 2026 3:39 pm
- Forum: General
- Topic: GLCD Display Manager Overhaul
- Replies: 13
- Views: 4242
Re: GLCD Display Manager Overhaul
Thanks Ben,
Yes it would be good if the 'hidden' pins either defaulted to something - I think it's been suggested to have a 'unconnected' pin allowed - that doesn't compile / cause errors?
Thanks Jorgen,
I'll have a play with the LED too - be good to turn the thing off if nothing else!
Martin
Yes it would be good if the 'hidden' pins either defaulted to something - I think it's been suggested to have a 'unconnected' pin allowed - that doesn't compile / cause errors?
Thanks Jorgen,
I'll have a play with the LED too - be good to turn the thing off if nothing else!
Martin
- Fri Jan 09, 2026 3:17 pm
- Forum: General
- Topic: Duration measurement between two pulses
- Replies: 12
- Views: 369
Re: Duration measurement between two pulses
Hi Viktor, A simple example - I've assumed that you want to measure the time the pulse is HIGH - but the same can be applied to a LOW signal. The very simple test signal generator - gives equal time HIGH and LOW (here 2s) - though this isn't necessarily the case (and the measurement 'ignores' the ti...