This activity is part of the Citilab Course. Check it out!
Windshield Wiper
Stepper motors
Stepper motors are a type of motor that rotate by small steps in one direction or the other.
Stepper motors are very precise and versatile, since they can move by precise angles as well as full-turns. For example, stepper motors are used in to move the print head in plotters and 3D printers.
A typical model is the 28BYJ-48. It works at 5 Volts and allows you to take 512 steps per lap.
Operation of stepper motors
- These motors have several windings that are activated to achieve the rotary movement.
For each winding there is a specific cable to activate it.
To use them you need a specific "driver" circuit that applies the appropriate voltages.
The Citilab ED1 board incorporates 2 outputs prepared for this type of motor.
"ED1 Stepper Motor" Library
- To work with the 28BYJ-48 stepper motors you need to use the ED1 Stepper Motor library found in the Others category.
- There are blocks to work with the 2 motors independently and a specific one to move the two motors at the same time.
Challenge 1: Make a wiper with the speed controlled by a potentiometer.
Solution to challenge 1
This activity is part of the Citilab Course.
⬅️ Previous activity | Next activity ➡️ |
---|
© per Citilab Edutec 2019-2022.
Aquesta obra té una llicència CC-BY-SA 4.0.