Croco:kit sensor starter kit for micro:bit Tutorial 4.7 Simple pedometer
1.Learning goals
After downloading the program, you can see the microbit LED dot matrix display ‘Hello!’, put the microbit in your hand, just lick your hand, current count will plus one.
When we press the A key to switch the display temperature, and press the A key again to switch back to the display steps.
2.Preparation
Hardware:
- 1 X Micro:bit Board
- 1 X Micro USB Cable
- 2 X AAA battery
- 1 X Battery box
- 1 X Rubber band
- 1 X PC
Mode 1 online programming: First, we need to connect the micro:bit to the computer by USB cable. The computer will pop up a USB flash drive and click on the URL in the USB flash drive: http://microbit.org/ to enter the programming interface. Add the Yahboom package: https://github.com/lzty634158/Croco-Kit to program.
Mode 2 offline programming: We need to open the offline programming software. After the installation is complete, enter the programming interface, click【New Project】, add Yahboom package: https://github.com/lzty634158/Croco-Kit , you can program.
!Note: S1 be set to the ON, S2 be set to the IO, and S3 to the NC.
3.Connection
Put two AAA batteries in the battery box,
Then use a rubber band to fix the micro:bit board and battery box on the your hand.
4. Search for blocks
5. Combine blocks
The code of the experiment: 29.Simple pedometer.rar
Buy Yahboom Croco:kit sensor starter kit for micro:bit