Starter Guide
www.adeept.com
- 118 -
3. Experimental code:
Lesson 33 Ultrasonic control DC motor->code->microbit-Ultrasonic+DC-
motor.hex
Lesson 33 Ultrasonic control DC motor->code->Ultrasonic_control_DC
motor.py
4. Click “flash” and download the code onto the micro: bit
The closer the obstacle is detected by the ultrasonic, the slower the
rotational speed is.
Effect Picture: