When I connect this to my computer using micro-USB plug, the relay works perfectly (red light when powered, green light when active, and I hear a little 'click' sound when activating and deactivating).
Then I tried to power the Espruino using a 2 x coin cell battery holder (https://www.adafruit.com/products/783) which seemed to me more than enough (2 x 3V batteries so more than 5V). The red light on the relay does switch on, but it's more faint ; but the green lignt is hardly visible when the relay is supposed to activate, and I can't hear any 'click' sound any more, making me suspect that the relay can not draw enough power to act as supposed.
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.
Good afternoon,
I own a ORIGINAL ESPRUINO, which I connected to a SRD-05VDC-SL-C relay (http://rabbitmax.com/files/SONGLE-SRD-05VDC-SL-C.pdf) using the following pin mapping :
C6 <--> IN
GND <--> GND
VCC <--> BAT
When I connect this to my computer using micro-USB plug, the relay works perfectly (red light when powered, green light when active, and I hear a little 'click' sound when activating and deactivating).
Then I tried to power the Espruino using a 2 x coin cell battery holder (https://www.adafruit.com/products/783) which seemed to me more than enough (2 x 3V batteries so more than 5V). The red light on the relay does switch on, but it's more faint ; but the green lignt is hardly visible when the relay is supposed to activate, and I can't hear any 'click' sound any more, making me suspect that the relay can not draw enough power to act as supposed.
Can anyone here please direct me to solve this?
Thanks !