# ESP01 ## 韌體燒錄硬體腳位連接 總共六隻角需接: **VCC,GND,TX,RX,GPIO0,CH_PD** <font color=#ff0000>ESP01</font>| VCC | GND | TX | RX | GPIO0(燒錄模式才需要接,否則空接) | CH_PD | ---- | ---- | --- | -- |----| ----- | --- | <font color=#ff0000>PL2303</font>| 3.3V | GND | RX | TX | GND | 3.3V  ## 燒錄at command或是micropython的韌體 **將GPIO0接地已進入燒錄模式** ``` pip install esptool python esptool.py --no-stub -p /dev/ttyUSB0 write_flash 0x0 path_to_file/code.bin ``` **燒錄完成後需拔除** --- ## ESP8266在arduino ide 下開發韌體: 藉由<font color=#ff0000>**參考資料三**</font>安裝相關的設定,在需要用ide下載的時候須將GPIO0接地已進入燒錄模式,燒錄完成後需拔除以正常的運作程式。 <font color=#ff0000> ***baud rate挑選經驗:*** </font> 1. 如果用一般arduino ide燒錄並且使用uart(rx/tx)溝通的baud rate用**9600** 2. 若是用at command 的韌體用**115200** ### 使用esptool燒錄arduino的燒錄檔bin檔 1. 使用arduiono的sketch -> export compiled binary輸入對應的bin檔 2. 使用esptool燒錄 ```bash= sudo apt-get install esptool sudo esptool -p /dev/ttyUSB0 write_flash 0x0 path_to_sketch_binary_folder/code.bin ``` 參考資料: 1. [ESP8266家族的小弟ESP01上手试玩(1)](http://blog.mangolovecarrot.net/2017/09/18/2017-09-18-esp01/) 2. [Firmware_For_ESP8266](https://wiki.aprbrother.com/en/Firmware_For_ESP8266.html) 3. [使用 Arduino IDE 開發 ESP8266 應用 (一) : 環境設定與韌體上傳](http://yhhuang1966.blogspot.com/2017/09/arduino-ide-esp8266.html) 4. [[Arduino碎唸] ESP-01 連上 Arduino Nano(終於!)](http://roustalk.blogspot.com/2016/04/arduino-esp-01-arduino-nano.html) 5. [[雙A計劃] Part1:App Inventor 經由藍牙控制 Arduino LED 亮滅](https://blog.cavedu.com/2014/04/04/%E9%9B%99a%E8%A8%88%E5%8A%83-part1%EF%BC%9Aapp-inventor-%E7%B6%93%E7%94%B1%E8%97%8D%E7%89%99%E6%8E%A7%E5%88%B6-arduino-led-%E4%BA%AE%E6%BB%85/) 6. [打造居家空氣監測系統(Part 2)---ESP8266 AT-command 命令 + ThingSpeak 連線測試](https://wayworkshop.blogspot.com/2016/06/part-2-esp8266-at-command-thingspeak.html) 7. [esptool github](https://github.com/espressif/esptool) 8. [MicroPython downloads](http://micropython.org/download/#esp8266) 9. [WebREPL](https://micropython.org/webrepl/) ###### tags: `electronic` `arduino` `wifi` `esp01`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up