DIYOSEPP / EspUnoWiFi

WiFi Serial and OTA bridge for UNO
22 stars 10 forks source link

OTA programming in arduino mega #2

Open Kashyapkoshti opened 4 years ago

Kashyapkoshti commented 4 years ago

i want to do this with arduino mega. can you help me with that?

Wilhelm1Daniel commented 4 years ago

I Think it's not really a problem. Connect the Mega like an Uno.

I do the same with an Arduino Pro Mini... The only thing I have to change is the baudrate in the ESPUNOWIFI.INO for the Pro Mini to 57600

int entryBootloader() { Serial.begin(57600); pinMode(resetPin, OUTPUT_OPEN_DRAIN); digitalWrite(resetPin, LOW);`

Kashyapkoshti commented 4 years ago

So for arduino mega which baud rate is preferable?

Wilhelm1Daniel commented 4 years ago

I'm not sure. Try to program the MEGA via USB to TTL-Adapter on Serial1 ( pin 18 and 19). In the log of Arduino IDE you Should see if the baudrate changed to Optimum speed.

Kashyapkoshti commented 3 years ago

@Wilhelm1Daniel did you try this for arduino mega 2560?

youssiefkhaled commented 10 months ago

@Wilhelm1Daniel did you try this for arduino mega 2560?

did it work for you?