As far as I can see you have two wires on there at the moment? GND and signal?
I think you also want to attach VCC on the Pico to VCC on the relay. I think you're getting enough power from the Pico's data pin to light the LED, but not enough to move the relay (there should be an audible 'click').
You might also want to add the line pinMode(RELAY_PIN, 'opendrain') near the start of your code as well (I'll update that tutorial) as on some relay modules the relay doesn't properly turn off without it.
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.
Hi,
As far as I can see you have two wires on there at the moment? GND and signal?
I think you also want to attach
VCC
on the Pico toVCC
on the relay. I think you're getting enough power from the Pico's data pin to light the LED, but not enough to move the relay (there should be an audible 'click').You might also want to add the line
pinMode(RELAY_PIN, 'opendrain')
near the start of your code as well (I'll update that tutorial) as on some relay modules the relay doesn't properly turn off without it.