If the time interval is ~4s - then record the start time on one interrupt, the end on the next (using a timer component to get the time on ms (or us)) and calculate the difference.
Should be able to avoid C.
I can do a small example if needed?
Martin
Search found 1598 matches
- Fri Jan 09, 2026 2:21 am
- Forum: General
- Topic: Duration measurement between two pulses
- Replies: 3
- Views: 59
- Thu Jan 08, 2026 4:14 pm
- Forum: General
- Topic: GLCD Display Manager Overhaul
- Replies: 6
- Views: 3887
Re: GLCD Display Manager Overhaul
Just started to use the esp32s3 board (with ili9488 in parallel mode) - and I'm hitting this error again... Error is as before (and in v10 and v11) - I can write to the display - but not using the component - errors occurring in ESP_CAL_IO D:/Projects/Flowcode/Lidar_s3/main/esp-project.c:2700:21: er...
- Thu Jan 08, 2026 8:14 am
- Forum: General
- Topic: Duration measurement between two pulses
- Replies: 3
- Views: 59
Re: Duration measurement between two pulses
Depending on the length of pulse - you might might able to use the capture and compare module of the MCU.
See viewtopic.php?t=3111&hilit=Pulse+measurement - though I've also posted code for AVR...
Martin
See viewtopic.php?t=3111&hilit=Pulse+measurement - though I've also posted code for AVR...
Martin
- Tue Jan 06, 2026 6:50 am
- Forum: General
- Topic: FC11 Read float fr LUT err (Solved)
- Replies: 7
- Views: 170
Re: FC11 Read float fr LUT err (Solved)
I'd try and avoid floats whenever possible especially on a 8 bit MCU. With an 8bit MCU - with no floating point hardware - it's always going to be a lot slower than integer maths. A float variable is 32bits (as for a long) - so might not use more storgae so in a similar vein - always use the smalles...
- Mon Jan 05, 2026 6:53 am
- Forum: General
- Topic: FC11 Read float fr LUT err (Solved)
- Replies: 7
- Views: 170
Re: FC11 Read float fr LUT problems
Doesn't look right - even in simulation. The float read isn't correct (4.76e-44!) - which is displayed as 0.0
Martin
Martin
- Sun Jan 04, 2026 7:50 pm
- Forum: Projects - Embedded
- Topic: Esp32 & LiDAR
- Replies: 3
- Views: 158
Re: Esp32 & LiDAR
Your number of 'thanks' reminds me of a joke...
What is 668?.....
The neighbour of the beast..
What is 668?.....
The neighbour of the beast..
- Sun Jan 04, 2026 7:36 pm
- Forum: Projects - Embedded
- Topic: Esp32 & LiDAR
- Replies: 3
- Views: 158
Re: Esp32 & LiDAR
The docs state 16m - I'd just limited the plot to a small area - as it's set on the desk.... So 32m diameter circle?
Martin
Martin
- Sun Jan 04, 2026 5:20 pm
- Forum: Projects - Embedded
- Topic: Esp32 & LiDAR
- Replies: 3
- Views: 158
Esp32 & LiDAR
I mentioned New Year's Resolutions - and doing some fun projects.... So this is my 'snow day' fun. I got a G4 LiDAR sensor - (from YDLiDAR) - and connected it to a PSU and an esp32. The eventual aim is to have the esp32 display the output (or save to SD?) - but for now it outputs the data to a PC (a...
- Sat Jan 03, 2026 10:36 am
- Forum: Bug Reports
- Topic: ESP32-C6: WS2812 Component Crash - RMT Driver/CAL Incompatibility with ESP-IDF v5.3
- Replies: 3
- Views: 133
Re: ESP32-C6: WS2812 Component Crash - RMT Driver/CAL Incompatibility with ESP-IDF v5.3
The (rough) code using the newer RMT incarnation is at https://www.flowcode.co.uk/forums/viewt ... 096#p20096
Martin
Martin
- Sat Jan 03, 2026 6:51 am
- Forum: Bug Reports
- Topic: ESP32-C6: WS2812 Component Crash - RMT Driver/CAL Incompatibility with ESP-IDF v5.3
- Replies: 3
- Views: 133
Re: ESP32-C6: WS2812 Component Crash - RMT Driver/CAL Incompatibility with ESP-IDF v5.3
I've hit this problem before - I've got round it once by using the new RMT code (which i haven't found) and once by using the SPI hardware https://flowcode.co.uk/forums/viewtopic.php?t=2538&hilit=Ws2812+leds+spi - hopefully this still works, but there have been lots of changes in the espressif t...