next challenge is packaging. For reasons like water, dust, heat, vibration, shock, electrical noise, etc, having a naked Arduino board hanging around in an offroad vehicle just won't do.
The most common way to address most of these issues is potting. That will stop further access to wiring, etc so I need to make sure it's fully tested out and all wiring is 100% done before I do that. I'll bring all the wires out through a single penetration and connect with butt connectors, and leave a USB pigtail for software updates.
I've never potted anything before, so if anybody has any suggestions I'm happy to listen.
1. Must effectively conduct heat away from the board so it doesn't soak and destroy itself. Must have a melting point higher than the max operating temp of the board. Nano ESP32 is rated for up to 105C.
2. Must be flexible enough to not break solder joints when things heat up and expand.
3. Transparent is a bonus so I could still see the LED's on the board.
Thinking I could mount it inside the grill near the (absent) OE ambient sensor, and just have a short whip for the fan control ambient sensor.
Electrically, I've come across some things suggesting that an automotive charging system is prone to significant voltage spikes that can smoke sensitive electronics. The Nano ESP32 is supposed to be able to accept up to 28V so I was initially thinking of wiring it directly to switched 12V but I can't have my fan quitting on me over a random transient electrical spike, so I'm considering disassembling a small cigarette lighter-USB power supply and building that into it as well. I'm sure I could figure out how to build something but it won't be as efficient (from a time standpoint) as buying something that already exists.
For the external circuitry I have some a small PCB board...2" x 1.5"..which is more than double the size of the Arduino Nano itself.
Should be plenty of room for a few resistors and some transistors. Here they are with a microSD card for scale.
Don't have much free time left today so hope to be able to draw up a rough draft wiring schematic and maybe get some of it wired up tomorrow.