Micro:bit Experiment 10: Motor —— Elecfreaks Mirco: Bit Starter Kit Course
by ElecFreaks in Circuits > Electronics
1677 Views, 3 Favorites, 0 Comments
Micro:bit Experiment 10: Motor —— Elecfreaks Mirco: Bit Starter Kit Course
![fp.jpg](/proxy/?url=https://content.instructables.com/FK6/9SJ7/J836IKQ2/FK69SJ7J836IKQ2.jpg&filename=fp.jpg)
Motor is a kind of device which can transfer electric energy into kinetic energy according to the law in electromagnetic induction. In this experiment, we are going to use a switch to control the start and stop of a motor.
Component List
![1.jpg](/proxy/?url=https://content.instructables.com/FII/9LNJ/J836IL6U/FII9LNJJ836IL6U.jpg&filename=1.jpg)
Hardware:
1 x Micro:bit Board
1 x Micro-B USB Cable
1 x Microbit Breadboard Adapter
1 x Transparent Breadboard - 83 * 55 mm
1 x 5V Miniature Motors
1 x TIP 120 NPN Transistor
1 x 1N4007 Diodes
1 x 100 Ohm Resistors
1 x Breadborad jumper wire 65pcs pack
2 x Alligator Clip Wires
Tips: If you want all components above, you may need Elecfreaks Micro:bit Starter Kit.
Software:
Microsoft Makecode Online Editor
Major Component Introduction
Hardware Connection
Programming
Please open Microsoft Makecode, write your code in the edit area. I would like to suggest you program by yourself first.
Of course, you can see the whole program in the link below. Just click "Edit" on the top right corner of the interface to edit your program, then click "Download" to download your code into Micro:bit.Code Explanation
Experiment Result
![1](https://www.elecfreaks.com/wp-content/uploads/2017/09/1-6.gif)
Question
Relative Readings
Start Your Micro:bit Programming Trip
Micro:bit Experiment 01: LED Scroller —— Elecfreaks Micro:bit Starter Kit Course
Micro:bit Experiment 02: Button —— Elecfreaks Mirco:bit Starter Kit Course
Micro:bit Experiment 03: Trimpot —— Elecfreaks Mirco:bit Starter Kit Course
Micro:bit Experiment 04: Photocell —— Elecfreaks Mirco:bit Starter Kit Course
Micro:bit Experiment 05: RGB LED —— Elecfreaks Mirco:bit Starter Kit Course
Micro:bit Experiment 06: Self-lock Switch —— Elecfreaks Mirco:bit Starter Kit Course
Micro:bit Experiment 07:Temperature Sensor —— Elecfreaks Mirco: bit Starter Kit Course
Micro:bit Experiment 08:Servo —— Elecfreaks Mirco: bit Starter Kit Course
Micro:bit Experiment 09:Buzzer —— Elecfreaks Mirco: bit Starter Kit Course