Testing has officially started on my new board!
So far so good! Identified a few issues, fortunately quick fixes:
- ADC on the ESP32 is a little bit noisier than I thought. Implemented a very basic filter (take 10 samples, remove highest and lowest values as outliers, take the mean). This takes care of the problem in under 1ms, making the signal nice and smooth!
- RF loop issue that could cause package loss in bursts (essentially it was a lot more likely to miss a high number of packages after a single one had already been lost)
- Dual trigger brake deadband was too narrow, causing the remote to brake slightly under vibrations. Increased based value, but will be configurable soon.
Side note, I recently built a thing for work using the same ESP32 platform (and most of the base scheduler code!) that had to be super user friendly. As part of that, I discovered how to create a website that can flash these things, thanks to the awesome work by the esphome/homeassistant team. This means end users can just build the thing, go to a website and flash their remote, no vscode/platformio/github shenanigans. Will probably make a basic landing page for this just for fun and convenience