Open mbz4 opened 3 days ago
PWM Async example working:
Testing w/ exhale on-to sensor:
On to preparing iotempower driver draft...
What prevents you from using the built-in pwm functionality of IoTempower? This would then allow to run on all esp32 and esp8266 platforms?
What prevents you from using the built-in pwm functionality of IoTempower? This would then allow to run on all esp32 and esp8266 platforms?
not sure mhz19 supports writing over pwm
docs show this PWM output definition for ppm measurements:
will test w/ native iotemp pwm library first, setup.cpp
:
pwm(CO2, D2, 2000);
... again, doubt it supports writing over pwm unless undocumented
ah it is for reading pwm - not writing Reading might be impossible until the buffered async reader works - so you might need to help me fix that one first. But all depends on timing.
So the serial communication port is just bogus and useless?
Message ID: @.***>
@ulno pwm(CO2, D2, 2000);
gave this:
ah it is for reading pwm - not writing Reading might be impossible until the buffered async reader works - so you might need to help me fix that one first. But all depends on timing. So the serial communication port is just bogus and useless?
ok
i figured i'd try w/ PWM since serial also unsupported guess one thing at a time, will push back to Todo/Backlog
Do you have an open issue already for async pwm reader?
This item focuses on building a support package for the MH-Z19 CO2 sensor using PWM protocol.
Testing w/ this PWM Async library:
No results so far:![Image](https://github.com/iotempire/iotempower/assets/30321314/b826a69c-7d73-46e9-b113-65b4440d8c0f)
Tried several wiring configs:![Image](https://github.com/iotempire/iotempower/assets/30321314/0e93371b-6d31-46a3-a941-2a1a75037cfb)
Useful docs here: