Send GPIO commands over UART to esp8266 with nano clone


recently purchased linknode r4 linksprite. of unfamiliar device esp8266 4 5v/125vac10a/250vac10a relays 5vdc in. unfortunately none of other gpio pins broken out. have r4 stuffed in gangbox own dedicated 4a psu. it's relays each connected single 125vac plug socket. power provided through standard 3 prong recepticle accepts standard 3 prong pc power cable. both dc psu , 125vac mains individually switched allow debugging , programming r4 without having hot mains running through relays.

currently r4 controlled linknode app interfaces cloud. works quite reason project emulate belkin wemo smart switch , control through echo dot. flashing firmware later today ftdi adapter has arrived. experimented using arduino nano clone(ch340 usb serial) connected esp201 communication handled software serial @ 115200 bauds. esp201 shipped @ firmware thought might idea see if program arduino first test rather risk bricking r4. @ rate had inconsistent results. @ times commands work, @ other times same command return either error or garbage. unsure if had perhaps wired esp201 incorrectly on breadboard damaging it. last night i(finally) received 3.3/5v ftdi adapter , connected me esp201. @ commands worked flawlessly , able upload number of sketches successfully. have working uart connection ready flash fauxmo firmware r4 without worries of bricking it.(ironically never thought use rpi 2 or odroid's built in uart pins communicate esp devices until yesterday morning. oh live , learn!)

as mentioned r4 not breakout remaining gpio pins. once reflashed r4 should work wonderfully echo. did want add 4 push buttons have option manually control each relay. not issue if had access remaining gpio. considered hijacking 5v "on/off" signal right @ relay not work understand "on" state requires continous current rather pulse.

my solution this, hope, wire 4 push buttons nano , attach nano r4's uart send high/low commands in order control each relay's respective gpio pin. bit wary of experience software serial on 201. being said many others seem have had satisfactory results nano acting programmer 201.

finally, question: seem feasible use nano send hi/low commands linknode r4 on uart via software serial? possible me use nanos ch340 ttl chip communicate directly r4 potentially use ftdi cable program nano. if either possible have references how control gpio pins on serial on esp8266.

any , or feedback appreciated.

thanks in advance,
meegz

update: have loaded fauxmo firmware , works great! great buttons working. atm i'm taking @ arduino serial library...

i experimented using arduino nano clone(ch340 usb serial) connected esp201 communication handled software serial @ 115200 bauds. esp201 shipped @ firmware thought might idea see if program arduino first test rather risk bricking r4. @ rate had inconsistent results. @ times commands work, @ other times same command return either error or garbage. unsure if had perhaps wired esp201 incorrectly on breadboard damaging it. last night i(finally) received 3.3/5v ftdi adapter , connected me esp201. @ commands worked flawlessly
softwareserial library on avr boards such nano know not work reliably @ 115200 baud. need use lower baud rate , set esp8266 baud rate.

does seem feasible use nano send hi/low commands linknode r4 on uart via software serial?
yes, though might consider getting esp8266 board(such wemos d1 mini) have pins broken out , separate relay module don't need mess nano @ all. but, said should able @ lower baud rate.



if either possible have references how control gpio pins on serial on esp8266.
...
update: have loaded fauxmo firmware , works great! great buttons working.
does fauxmo firmware allow control esp8266 gpio via serial commands?


Arduino Forum > Topics > Home Automation and Networked Objects > Send GPIO commands over UART to esp8266 with nano clone


arduino

Comments

Popular posts from this blog

Help needed for choosing soldering station

Error Message when accessing Adobe

Fuelino for Arduino Nano - motorcycle Fuel Injection control and data logger