Sinking current with ESP8266 to control relay board
Posted: Wed Jan 13, 2016 11:39 am
Hey, guys! I don't know it you ever had this problem, but I want to control an 8 relays board (5V relays) using a NodeMCU v0.9 . The problem is that if you want to control each relay from the board, you have to put the corresponding pin to GND. I've measured the current and it's almost 30mA and the voltage is 5V as expected. I've used an Arduino Mega and an Arduino UNO in between of the NodeMCU and relay board as a logic level converter, but I want to make this system lightweight (it's controlling an RF remote for wireless sockets). I'm thinking about using a voltage divider with a 3v zener diode. Another possibility is by using an optocoupler, but i don't have enough optocouplers around, not even LDRs to try to make some homemade optocouplers. What do you sugest? Thanks!