I’m a technical kinda guy, doing technical kinda stuff.

  • 0 Posts
  • 9 Comments
Joined 2 years ago
cake
Cake day: September 27th, 2023

help-circle
  • The cable between the two boards would be a maximum of 50cm. 3 of the signals are addresses for a multiplexer that would change at a maximum speed of 2ms per change. One of the other signals is a 20khz pwm signal. The final signal is a zc detector for mains so max Freq of 100/120hz.

    None of this will be a problem over 50cm of cat5. If you were talking about millivolt or MHz signalling then you’d have to be a bit more careful.


  • Regarding wifi and power draw, you could always do batch uploading of data to another server at something like a 1:10 ratio, or upload only when there’s a change of more than 1 degree or similar.

    There are some low power deep sleep esp32 boards out there that can do like 3-6 months on a couple of AA batteries. A lot of power draw comes from hanging around on wifi doing dhcp, so having fixed addresses can cut down power usage considerably.

    Even without using the wifi side of things the esp32 boards come with lots of IO , plenty of drivers for various devices, and a reasonable in-house (i.e. not Arduino) development environment so I’d be leaning in that direction.

    You could also look at Sharp’s memory LCD as opposed to normal LCD, as that’s extremely low power without the fiddlyness of e-ink screens.




  • Horn switches switch to ground. Power for your original horn relay is supplied from a fused battery source, passes through the horn relay, and when you press the horn button the button completes the circuit to earth, triggering the relay.

    So, you need to wire your relay coil like this -

    12 volts from a fused battery source to:

    Your relay coil, to:

    The horn switch, which then switches to:

    Ground.

    Just like how your current horn relay works.

    This also works for older cars that do not have the really. They supply power to the horn, and then a single wire runs from the horn back to the horn button, which then completes the circuit to ground when pressed.




  • Hmm I’m not sure of the pin drive currents on the Pico, but can you power the sensors off a pin? At least then you can programmatically power cycle them if you need to.

    The Pico also has a watchdog, you could set it up to give it a reboot if things don’t respond in time. It doesn’t solve the issues of course but at least it gets it back to a workable state. And if the watchdog fails, or it works but there’s still no USB serial, then that would point towards power instabilities or somesuch.


  • Perhaps slightly adjust your logic a little and see what it does.

    Read from the sensors first, then enable and connect to wifi, send the data, then disconnect. That would reduce the maximum power draw as only one function is active at once.

    Small edit: I have a MagTag ESP32 board with circuitpython that can’t read onewire devices while the wifi is active. Whether that’s because of supply instabilities when wifi is transmitting, or interrupt conflicts, or just plain poor programming in the onewire drivers or the wifi drivers, I don’t know. But reading the devices first and then connecting to wifi and sending the data afterwards works.