d03n3rfr1tz3 / ULP-Pulse

Examples of using the ULP Co-Processor of the ESP32 with simple pulse counting, which I extended for also saving the shortest pulse.
Creative Commons Zero v1.0 Universal
25 stars 6 forks source link

Multiple counters with the ULP processor #2

Open jacoboth7 opened 1 year ago

jacoboth7 commented 1 year ago

Did anyone get it right to count pulses from the Wind sensor and Rain sensor simultaneously y using the ULP processor?

d03n3rfr1tz3 commented 1 year ago

I myself use both, but on separate ESP32. Therefore the examples do not support running both simultaneously on one ESP32, but I'm pretty sure someone who is more comfortable in assembler could extend that quite easily, I guess.

thomas-tomlinson commented 2 months ago

@jacoboth7 i ran into the same need and took the brute force method of doubling the processing (https://github.com/thomas-tomlinson/weather_station_base/blob/feature/ulp_sanity/ulp_two_pins.S). My project is MicroPython based so I had to move the GPIO RTC connection into the assembly code, which means the pins are hard coded. @d03n3rfr1tz3 thank you for sharing your assembly code for this, it helped me a lot.