ESP32 折腾小记

接线

USB UART ESP32-CAM
TX U0R
RX U0T
DTR IO0
5V 5V
GND GND
注意不能接VCC 要接5V

安装相关包

pip install esptool picocom adafruit-ampy pyserial

烧录命令

下载固件
https://github.com/lemariva/micropython-camera-driver/tree/master/firmware
烧录 需要短接IO_0和GND 才能进行烧录
/opt/homebrew/bin/esptool.py –chip esp32 –port /dev/cu.SLAB_USBtoUART erase_flash
/opt/homebrew/bin/esptool.py –chip esp32 –port /dev/cu.SLAB_USBtoUART –baud 460800 write_flash -z 0x1000 ~/Downloads/micropython_cmake_9fef1c0bd_esp32_idf4.x_ble_camera.bin

配置vscode

https://lemariva.com/blog/2019/08/micropython-vsc-ide-intellisense
可以使用Pymakr 插件

上传到硬件中

ampy put boot.py

远程连接

http://www.1zlab.com/wiki/micropython-esp32/repl-over-the-serial-port/
picocom -b 115200 /dev/cu.SLAB_USBtoUART
也可以安装WebREPL 网页控制

后续远程监控,图像识别

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据