Day 3: Robotics, Motors
Concepts Covered: Controlling physical systems, motors, and servomotors; use of breakout boards
Activities:
Introduce Motor Control using ElecFreaks Breakout Board , and add the Motorbit extension.
If the breakout board is not available, you can use an L298 H-Bridge or similar device and learn how to vary motor speed using analogWrite functions. or use the Keyes Studio Breakout board with https://github.com/sbcshop/Micro-Bit-Motor-Driver or https://github.com/kou1okada/ks4033
Main Project: Build Robotic Cars- see https://sites.google.com/aceraschool.org/mrjonathansengineering/lessons/5-robotic-car?authuser=0
Students can enhance their robots by incorporating an ultrasonic sensor for avoidance behaviors https://sites.google.com/aceraschool.org/mrjonathansengineering/lessons/5-robotic-car
Parts Needed: Microbit, MicroUSB to USB-A cable, 3V MicroBit battery, USB-A--->USB-C adaptor; ElecFreaks breakout boards; TT Motors and wheels(2/unit); Caster wheels; 6V 'AA' battery pack; 4 AA batteries per unit; RCWL-1601 ultrasonic sensors; cardboard or foamcore
BUILD:
Program Robotic Car
https://sites.google.com/aceraschool.org/mrjonathansengineering/lessons/7-robotcar-programming?authuser=0
Extensions: Elecfreaks MotorBit; Neopixel; Makerbit Ultrasonic
First Program: If motors turn the wrong direction, swap the motor pins
Full Program: