Skip to content
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

Open
BLC-Bob opened this issue Feb 18, 2018 · 3 comments
Open

Instructions to Alexa result in the reverse #31

BLC-Bob opened this issue Feb 18, 2018 · 3 comments

Comments

@BLC-Bob
Copy link

BLC-Bob commented Feb 18, 2018

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. ;-{)

@slavino
Copy link

slavino commented Feb 28, 2018

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.

@tenthirtynine
Copy link

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

@dougstrickland
Copy link

dougstrickland commented Nov 9, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants