Arduino Pro Mini and ESP8266 Serial to Wireless and back


**please note previously, 2x arduino uno wifi developer ed units used ; hence currrent complicated workaround.**

  • 2x arduino, connected via usb cable pi, running 2x python scripts
  • website php
  • mysql database

twp python scripts read , write serial each arduino device. python script a r/w's arduino a , python script b r/w's arduino b. python scripts send data mysql database. each script sends each arduino depends on data scripts obtain database. essentially, both arduino units work ascii codes, meaning if receive ascii code onto serial, "do something". example, if receive %, print out "123" onto serial. on website, send , save ascii codes database ; update field in 1 table. field become instruction python scripts retrieve onto arduinos.

now, have received 2x esp8266 units + 2x arduino pro mini. basic idea install them each each arduino pro mini unit make them wireless.ideally, units should communicate wirelessly directly pi. see attached diagram(s) more information. assume call wireless serial , serial wireless ?!

here's unrealistic theoretical sample of trying achieve :

python loop :

code: [select]
get_instruction_from_database
    
if instruction:
 esp8266.write(ard.write(instruction));
 esp8266.read(ard.read(response));
    
if response:
 send_response_to_database


is there help, suggestion or urls tutorials on how set ?  :o

if need 2 arduinos communicate each other using wifi wouldn't first choice.

only 1 arduino needs have esp8266


Arduino Forum > Using Arduino > Project Guidance > Arduino Pro Mini and ESP8266 Serial to Wireless and back


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts