microbit configure camera

microbit configure camera1. Experiment preparation2. Experimental wiring3. Microbit building block import and simple instructions3.1 Open the programming website3.2 New project3.3 Add camera building blocks3.4 Introduction to the main building blocks4. Experimental operation and experimental results

1. Experiment preparation

2. Experimental wiring

Extended versionwifi camera
P16RX
P15TX
5V5V
GNDGND

image-2024022200016 image-2024022200017

3. Microbit building block import and simple instructions

3.1 Open the programming website

https://makecode.microbit.org/#

3.2 New project

image-2024022200001

image-2024022200002

3.3 Add camera building blocks

URL of the building blocks: (Just choose one of them, they are the same)

  1. https://github.com/yahboomtechnology/ESP32-wifi-Microbit
  2. https://github.com/LLY16888/ESP32-wifi-Microbit image-2024022200003

3.4 Introduction to the main building blocks

After the above building blocks are successfully introduced, the results as shown below will be displayed. image-2024022200004

  1. Open the URL https://makecode.microbit.org/# in the browser
  2. Then drag the hex file provided in this experiment into the browser that opens the URL, and it will open automatically.
  3. Program diagram of the source code of this project image-2024022200008

4. Experimental operation and experimental results

  1. From the source code, we can see that microbit will first initialize the serial port and then configure the working mode of the wifi camera.
  2. Then configure the wifi to connect according to the settings image-2024022200009 The wifi here needs to be changed to a wifi that can be connected
  3. If the connection is successful, the microbit will display the sta_ip:192.168.x.x address. If the connection is unsuccessful, the microbit will display sta_ip:null. If it is only configured in spontaneous hotspot mode, it cannot be checked. If you go to the IP address of sta_ip, the result of sta_ip:null will also be displayed.
  4. This is the configuration of spontaneous hotspots image-2024022200010 If the configuration is successful, the mobile phone can receive the wifi hotspot microbit_wifi. You can connect to this wifi by configuring a password or without a password, and the microbit will display the ip of "ap_ip:192.168.4.1" If you cannot find this name, check if it is configured to connect to wifi only mode (that is, the mode in the picture below), and the microbit will display the information "ap_ip:null" image-2024022200011
  1. Transparent data transmission based on IP connection
  1. View camera footage