-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions to Alexa result in the reverse #31
Comments
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 |
2N3904
…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: