i am using a mosfet to switch something on and off. But as soon as the signal wire is connected, the contact setWatch becomes unreliable.
The mosfet connects with the signal wire and ground to the Puck. That ground is also connected to the source of the separate battery running the peripheral.
Does that mess up what is ground to the puck somehow?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
i am using a mosfet to switch something on and off. But as soon as the signal wire is connected, the contact setWatch becomes unreliable.
The mosfet connects with the signal wire and ground to the Puck. That ground is also connected to the source of the separate battery running the peripheral.
Does that mess up what is ground to the puck somehow?