top of page

Software

Public·132 members

Bittle, Micropython + ESP32Cam module


ree

I connected a ESP32Cam module to the serial port of my Bittle. First I flashed a BIOS, which includes Micropython and the CAM drive on the ESP32 cam module.


The ESP32Cam module is connected to my PC using a FTDI module to send the commands through VSCode to my Bittle through the ESP32Cam module (this connection is required for flashing the BIOS anyway).


ESP32Cam FTDI

U0TXD RX

U0RXD TX

GND GND

5V 5V


Finally, I connected the Bittle with the ESP32Cam module:


Bittle ESP32Cam

GND GND

RX GPIO14

TX GPIO12


I powered the Bittle through another cable, which delivers the 5V for the board.


Now, it's time to send commands to the Bittle:


from machine import UART
uart = UART(1, baudrate=115200, bits=8, parity=None, stop=1, tx=12, rx=14, rts=-1, cts=-1, txbuf=256, rxbuf=256, timeout=5, timeout_char=2)
uart.init()
# uart.write("krest".encode())
uart.write("ksit".encode())
# uart.write("kbalance".encode())

The next step is to deploy a simple web server, power the ESP32CAM module from the nyboard and position the camera to get usable images.........


230 Views
bottom of page