DIY ESP32 Engine monitoring for all internal combustion engines
Engine Doc for all chainsaws, small engines and automotive.
The original ideea is to use this for performance chainsaw tuning by monitoring the EGT (exhaust gas temp) or cylinder/head temp we have valuable information we can use to track/correlate our changes and even monitor saws with autotune or needs.
An ESP32 microcontroller with a high temp thermocouple interface you can mount in or stick to any surface you want to measure.
The ESP32 makes its own Wifi AP (shows up as Engine Doctor wifi network) you can log in to with your phone- open any browser to the IP in the pic and it will graph the data real time asynchronously on the web page as long as its powered on.
Also has a separate BME280 temp/baro and humidity sensor that will be in the box enclosure or you could remote mount it in an airbox or anywhere you desire.
Future Expansion- I may make a one-wire inductive tachometer pickup too which will be interrupt driven and may need amp circuit. All the spare GPIO are broken out on the PCB for this.
Buy a kit here: https://store.mkme.org/?product_cat=custom
|ESP32 Wemos 32 Lite V1||https://amzn.to/2QzS8t3|
|MAX 6675 Thermocouple||https://amzn.to/3tyqds0|
Full video here:
- Solder BME 280- note SDC pin (furthest from VCC) is not used- Cut the pin or remove from header
- Use female headers (not supplied in kit) if you would like to make the components removeable
- Two flavours of code are now offered:
- BME280 Version- This has Temp, Pressure and HUMIDITY with Thermocouple
- BMP280 Version - This uses the cheaper BMP280 sensor without HUMIDITY
To upload the code you must install ESP32 board support- Google for tutorials
You must be using a fairly recent Arduino IDE to upload spiffs (the web page files)
Set up your IDE using these settings for the board:
Upload the board (if you get any errors make sure you have installed the Adafruit libraries for the BMP or for BMP280: https://github.com/MartinL1/BMP280_DEV#bmp280_dev_library
Upload web page files Spiffs using the command "Tools> ESP32 Sketch Data Upload"
How to Use It
- Install the thermocouple where you would like to monitor (use a magnet mount if desired)
- Power on the EngineDoctor
- Connect to EngineDoctor Wifi with your phone or tablet (no password required)
- Open your web broswer to this url: 192.168.4.1
- Watch the live values in real time while you test/tune!
- Adjust the code if desired to alter the sample display rate (currently 1hz)
How I did things (reference) :
Export PCB Footprint to make a case in fusion: https://forum.kicad.info/t/kicad-to-dxf-or-dwg/7994/2
Make the case in fusion: https://www.youtube.com/watch?v=mhXUqtS4mDg&ab_channel=FixedUntilBroken
Make an awesome snap fit case - Thanks Noe! https://www.youtube.com/watch?v=VVmOtM60VWw&ab_channel=AdafruitIndustries
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. https://creativecommons.org/licenses/by-nc/4.0/ See comments in main code for more info