You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, Aruna, for the sketch - it's the only one I have found that works. I am new to all this. I have a 5v 2-Channel Relay Module (but I'm just using one relay at the moment) triggered by your sketch running on an ESP-1s. Problem is that when I tell Alexa to turn the relay on, the relay turns off and vice versa. I think this is because this relay model is triggered by the ESP-01s output pin (I'm using GPIO02) being set LOW rather than HIGH (the opposite to the instructions in the sketch), by sinking the voltage from VCC to the IN1 pin. So I guess to correct this I need change the instructions round in the sketch. Most of the instructions in this sketch are way beyond my current level of understanding . . . I'm sure I'll get there one day! in the meantime, which lines would I need to change to get the relay to turn on when I say "ON" and off when I say "OFF", please. ;-{)
The text was updated successfully, but these errors were encountered:
On Fri, Nov 9, 2018 at 11:47 AM tenthirtynine ***@***.***> wrote:
Make sure when the relay is on - if the pin needs to be OUTPUT high or low.
Depending on board you might use NPN transistor (or optoisolated component
or logic level shifter or...) to steer 5V logic from 3V3 board.
Hey, I have this issue using the D1 Mini, what NPN transistor would you
use? Pretty sure its a 3V board
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI5En6B9Z1icga21JXg8TCPlx4U6y7hwks5utdvrgaJpZM4SJiz7>
.
Thanks, Aruna, for the sketch - it's the only one I have found that works. I am new to all this. I have a 5v 2-Channel Relay Module (but I'm just using one relay at the moment) triggered by your sketch running on an ESP-1s. Problem is that when I tell Alexa to turn the relay on, the relay turns off and vice versa. I think this is because this relay model is triggered by the ESP-01s output pin (I'm using GPIO02) being set LOW rather than HIGH (the opposite to the instructions in the sketch), by sinking the voltage from VCC to the IN1 pin. So I guess to correct this I need change the instructions round in the sketch. Most of the instructions in this sketch are way beyond my current level of understanding . . . I'm sure I'll get there one day! in the meantime, which lines would I need to change to get the relay to turn on when I say "ON" and off when I say "OFF", please. ;-{)
The text was updated successfully, but these errors were encountered: