The Oak by Digistump > Oak Support
"official" ESP8266 Arduino Core support
PeterF:
You can do OTA updates with the Arduino ESP8266 core, as long as you include the required library and initialise OTA support in your sketch.
http://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html
rocksolidsr:
would it be possible to use another Arduino to flash the oak with code so that it could then be updated OTA with the Arduino ESP8266 core via this method?
http://digistump.com/wiki/oak/tutorials/serial_through_arduino
What would the port setting be? The USB port of the connected Arduino?
Would the settings in the attached image still be good?
What about the erase flash setting, should that just be set to "sketch", "sketch +wifi settings", or "all flash"
Trying to avoid buying a USB to UART adapter if I can just use an Arduino as that.
Thanks,
PeterF:
rocksolidsr : I don't see why not - If you have an Arduino that has a removable IC you can pull the IC so you can use the onboard USB-serial adapter to program the Oak. And if it doesn't have a removable IC, you may be able to simply wire it so it is held in a reset state so it doesn't interfere in the update process by responding to something it shouldn't.
Serial port setting would be that of the Arduino. The erase flash setting must be reasonably new, haven't updated the ESP8266 core in a while so haven't seen it before. [Edit: Or I simply hadn't seen it... just loaded the Arduino IDE to check it and that option was there. :-O ] For the first flash, I'd probably erase everything, as the initial OTA enabled sketch you load can be written in a way that it configure the wifi settings itself.
Consider getting a USB to UART adapter anyway - they're cheap as chips, and make life a lot easier down the path as you can just plug in and see any debug messages you have running. Most CH340 adapters are both 3.3v and 5v ready, and are compatible with pretty much any OS.
DrJFM:
I still had a couple OAK modules that I had not converted to standard 8266 boards. Can attest to the simplicity of the process using latest 8266 Board Manager downloads (Version 3.0.0).
The Oak seems to be a very stable and useful 8266 once rid of the particle BS. I may see if they still sell new ones.
I used an Arduino UNO with the ATMEL MPU removed as the USB to serial board. Have also used a more standard USB to serail bridge board in the past. Oak powered up by separate micro USB cable not using serial board to assure no 3.3v to 5V issues. Connected a common ground. Four wires(P2 on Oak to ground on Arduino, cross the Tx and Rx wires, and a ground to ground connection).
I spent about 5 min converting the last two "old" Oaks today vs many hours reading, searching and getting set up in the past w python etc. Anyone else still w "particle" oaks should convert now. LED_BUILTIN is on pin 5 in converted Oak.
Navigation
[0] Message Index
[*] Previous page
Go to full version