This is a low-cost expansion board for Micro:bit, which is specifically used for the IO ports of Micro:bit. It has taken all the IO resources on the Micro:bit, and also has a buzzer on the board.
This is a low-cost expansion board for Micro:bit, which is specifically used for the IO ports of Micro:bit. It has taken all the IO resources on the Micro:bit, and also has a buzzer on the board. It is connected to the P0 pin through the jumper cap. The P0 pin can be released using a jumper cap. The small size is very suitable for small projects using Micro:bit.
It is consistent with Micro:bit programming, because IObit does not have its own drive chip (except buzzer). The building block that is generally used with IObit is to operate the IO port. Many sensors on the market return a high and low voltage. Flat, or an analog value. For actuators, the microbit needs to output high and low level to control. People who are not familiar with this aspect can search Netease Cloud Classroom: Xiaoyan Technology and find the arduino tutorial, which explains how to use the commonly used sensors on the market, the principle is the same.
Before using the building blocks, you must first understand the control method or reading method of the electronic module you are using.
Most newbies will fall out of here because they often ignore setup pull-ups or pull-downs during initialization. So the level state will fail after reading it once. Therefore, we must pay attention to this. Micro:bit itself does not help to set up and down by default, you need to set it yourself.
In response to the analog reading, because the analog reading will return a value of 0-1023, it is always inconvenient to display it with a dot matrix screen. So here we take advantage of the unique serial port debugging function of the MakeCode offline version produced by Xiaoyan. First, download the program shown in the figure to open the serial port. In step 2, the console of the device will appear, you can see the data returned in real time.
Digital read here does not need to set up and down
Simulated writing an example of a flashing light
The most commonly used IO port operation is one of these four types. After you master it, you should have no problem with the commonly used sensors on the market. Another thing to note is that the sensors on the market are 5v and 3.3V compatible. But some can only work in 5V. For example, the blue ultrasonic wave that Taobao sells can ordinarily only work in 5V. If IObit is connected, the number read back will always be 0, because the module is not working properly!
Insert the USB power supply (5V 1A) as shown in Figure 1. Press the blue button at 2, and the red indicator light at 3 will light up. You can use the left 5V interface.
Toggle switch to turn off the buzzer function (see the silk screen on the back of the board for status)
All the pins in the Micro:bit have been taken out without any reservation (Note: there are no P17 and P18 on the Micro:bit, it’s not that the IObit is not taken out)
Yellow corresponds to the different IO pins
Red corresponds to 3.3V/5V (with silkscreen)
Black corresponds to GND
The gold fingers of the Micro:bit are used to draw 3v, gnd, P1, P2, and P3 respectively. This is for users who prefer to use alligator clips
Compact size socket
The two outermost holes are approximately 4.8 mm in diameterand are compatible with Lego friction pins with a spacing of 48mm.
You can plug in a 3.5mm jack audio device and play the sound of the P0 pin.
If you haven’t gotten started with Micro:bit, first get started with Micro:bit, this is the operating premise.
Use music blocks directly in MakeCode to CQ0056.png
If you use P0, remember to turn the buzzer toggle switch off (because the buzzer is combined with P0)