At the end of this lesson, you will be able to:
control a HC-SR04 5v distance sensor
Robot:Bit extension
add the Sonar extension (see below)
nil
click on provided link to create a new GitHub repo
call the repo: TEJ2O.1 ⇢ Unit5-06
write a program that will tell the distance in cm to the sonar
Micro:Bit Sonar Extension
For the distance sensor, you will need to attach power and ground to 5V and then the other 2 pins to most likely P1 and P2 (the yellow ones). Remember P0 is also used by the buzzer!