-->
Page 1 of 1

How to use ESP to wirelessly load sketches to Arduino's

PostPosted: Wed May 27, 2015 5:11 pm
by rickalex
Lets get the wire out of the arduino loading process.... by using ESP

example: Using the ESP01 as the simplest way, and finding a way to upload code from the IDE to the arduino wirelessly .

Re: How to use ESP to wirelessly load sketches to Arduino's

PostPosted: Wed May 27, 2015 5:17 pm
by rickalex
My idea is as follows:
- setup the ESP8266 as an access point(AP).
- Create a server on the PC (using python or whatever) that responds to any request by sending the hex file contents to be programmed as a string
- Put the PC server on the ESP8266 AP LAN.
- the ESP8266 acts as a client and sends a request to the PC server
- The PC server replies by sending the hex file contents to the ESP8266 as a string
- Once the ESP8266 has the hex file contents it then uses the stk500 protocol to program the Arduino attached to the ESP8266 via the serial port (tricky part).

Re: How to use ESP to wirelessly load sketches to Arduino's

PostPosted: Wed May 27, 2015 7:05 pm
by lethe
This seems to do pretty much exactly what you want:
https://github.com/jeelabs/esp-link/tree/master