yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
ESP32 WiFi Camera Lite📖
1.ESP32 camera basic course
  • 1.Development environment
  • 2.Compile and use routine
  • 3.How to update firmware
2.Configure camera on PC
  • Configure camera on PC
3.View video on APP
  • View video on APP
4.Configure camera on MCU
IIC
  • Arduino
  • Microbit
  • STM32
  • MSPM0G3507
  • MSPM0G3519new
  • PICO
  • Raspberry Pi
  • Jetson
  • RDK X5
Serial Port
  • Arduino
  • Microbit
  • STM32
  • MSPM0G3507
  • MSPM0G3519new
  • PICO
  • Raspberry Pi
  • Jetson
  • RDK X5
5. APP remote control servo gimbal
  • 1. STM32 drives the servo gimbal
  • 2.Arduino drives the servo gimbal
  • 3.Pico
  • 4.MSPM0G3507 drives the servo gimbal
  • 5.MSPM0G3519 drives the servo gimbalnew
  • 6. Microbit drives the servo gimbal
  • 7. Raspberry Pi drives the servo gimbal
  • 8. Jetson drives the servo gimbal
  • 9.RDK X5 driving servo gimbal
6. Expansion tutorials
  • ESP32
  • Robot car
Download
  • RemoteCtrl_APP(iOS_Android)
  • 3D_Model_File
  • Code
  • Software_Tools
  • Module_fireware
  • Protocols_Hardware
Download ZIP

Welcome to ESP32 WiFi Camera Lite repository

Microbit

Microbit configure camera

1. Experimental preparation

  • Module World Extension Board
  • Microbit
  • WIFI camera

2. Experiment wiring

Extended BoardESP32 Camera
P16RX
P15TX
GNDGND
5V5V

image-20241230151249864

The physical connection chart:

image-20241230151408077

3. Microbit's building block import and simple description

3.1 Open the programming website

https://makecode.microbit.org/#

3.2 New project

image-20241230151725398

3.3 Add the block of the camera

Snipaste_2024-12-31_11-20-02

URL of the blocks:

https://github.com/YahboomTechnology/ESP32-wifi-Microbit.git

Snipaste_2024-12-31_11-20-45

3.4 Introduction to the main building block

After successfully introducing the block block above, the result will be displayed as shown in the figure below

image-20241230152013879

  • serial port initialization of the building block This is a pin used to define serial communication and communicate with the WiFi camera. The baud rate is 115200.

image-20241230152047326

  • Set the size of the serial port receive buffer This block is used to define the size of a packet of data that can be accepted for transparent transmission, such as

image-20241230152059353

This defines that the maximum size of a packet is 30 characters. Exceeding this value will result in incomplete data reception. This value cannot be less than 25, otherwise the IP information will also be incomplete

  • You can know the function of other building blocks by looking at their names. For how to use them, you can look at the source code provided in this tutorial. This tutorial will not explain how to open the source code provided in the tutorial
  1. Browser open the URL https://makecode.microbit.org/#
  2. Then drag the Hex file provided by this experiment into the browser that opens the URL, and it will automatically open
  3. Procedure diagram of the source code of this project

image-20241230152215832

4. Experimental operation and experimental effect

  1. According to the source code, Microbit first initializes the serial port, and then configures the working mode of the WIFI camera.
  2. Then according to the setting of wifs to be connected

image-20241230152255592

The wifi here needs to be changed to a connected wifi

  1. If the connection is successful, microbit will display sta_ip:192.168.x.x address. If the connection is unsuccessful, it will display sta_ip:null. If it is only configured as the self-heating point mode, it is also impossible to find the IP address of sta_ip, and it will also display the result of sta_ip:null.
  2. This is the configuration of spontaneous hot spots

image-20241230152331083

If the configuration is successful, the mobile phone can receive the microbit_wifi wifi hotspot, and can connect to the wifi by configuring a password or without a password, and the microbit will display the ip "ap_ip:192.168.4.1". If this name cannot be found, check whether it is configured to connect to wifi only (the mode shown in the figure below), and the microbit will display the information "ap_ip:null"

  1. Set AI mode, there are 5 AI modes in total, here are set as cat and dog mode. If you want to use that mode to set up that mode

image-20241230161039457

  1. Download the program, you can directly pull the source code to the Hex file into the identified Microbit disk. You can also click to download the webpage

image-20241230163426220

After downloading, Microbit displays the sta_ip address and AP_IP address. Finally, a √ symbol is the successful download.

image-20241230163557964

  1. Open the camera and connect to the hotspot published by ESP32 (you can also use the STA_IP address to log in directly)

image-20241230163849328

Then enter http://192.168.4.1:81/stream this access camera screen

image-20241230163904938

  1. Recognize cats and dogs. The successful recognition will print out the current central coordinates and put the cat's picture in front of the screen just now.

image-20241230164118403

Microbit dot matrix will circulate the X coordinates and Y coordinates selected by the box,

image-20241230164341786

Color detection mode, face detection

When switching to color recognition mode,

image-20241230164822599

Download the program, you can directly pull the source code to the hex file into the identified Microbit disk. You can also click to download the webpage

image-20241230163557964

Recognize color. Press the button to appear a box, you can use this box to frame the color you want to use.

image-20241230104742818

Press and press the key for two seconds, let go and press it again to identify the color selected by the current box, and the red box appears at the same time.

image-20241230104751464

The X -coordinate and Y coordinates selected by the Microbit dot matrix will be displayed in the box.

QR code detection mode

When switching to color recognition mode,

image-20241230165323415

Unlimited circulation modification to direct output transmission data

image-20241230165628716

Download the program, you can directly pull the source code to the hex file into the identified Microbit disk. You can also click to download the webpage

image-20241230163557964

Searching the QR code generator with a mobile WeChat Mini Program, which belongs to the relative text, will generate a QR code and save it to the album. Below is identifying the QR code.

image-20241230170700383

Microbit points are printed on the identified text.

Face recognition mode

When switching the adult face recognition mode,

image-20241230171010000

Unlimited cycle modification is modified, read face recognition data, and then directly output transmission data

image-20241230171855668

Download the program, you can directly pull the source code to the hex file into the identified Microbit disk. You can also click to download the webpage

image-20241230163557964

 

Recognize the face. When you don't get the face, press the key button to indicate the face of the face

image-20241230103919060

The picture below appears that the record is successful, and the record is a face 1

image-20241230103928349

At this time, you can press and press the key for two seconds, and then release the key to recognize the current face.

image-20241230103938267

Microbit will print central coordinates and faces recognized.

Arduino
STM32

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文