5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



Croco:kit sensor starter kit for micro:bit Tutorial 4.5 Traffic indicator

Posted by Fiona Su on

Croco:kit sensor starter kit for micro:bit Tutorial 4.5 Traffic indicator

1.Learning goals

After downloading the program, we can see the word 'Hello!' on the Micro:bit LED dot matrix. 

The RGB light become green, when the color sensor detects green, the dot matrix module displays a moving person. After 10 seconds, the RGB light become red, when the color sensor detects red, the dot matrix module displays a standing person. The RGB lamp switches color every 10 seconds.

image.png

2.Preparation

Hardware: 

  • 1 X Micro:bit Board
  • 1 X Micro USB Cable
  • 1 X Diamond breakout 
  • 1 X Photosensitive module
  • 8 X Alligator clip
  • 1 X RGB light module
  • 1 X Dot matrix module
  • 1 X Color recognition module
  • 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.

image.png

!Note: S1 be set  to the ON, S2 be set  to the IO, and S3 to the NC.

3.Connection

image.png

image.png

4. Search for blocks

image.png

image.png

image.png

image.png

image.png

image.png

5. Combine blocks

image.png

The code of the experiment: 27.Traffic indicator.rar

Buy Yahboom Croco:kit sensor starter kit for micro:bit

Tutorial

0 comments

Leave a comment

Please note, comments must be approved before they are published