โข Programming Language: Arduino
โข 3D printing
โข Function of Encoder
- ๐๐๐ป๐ฐ๐๐ถ๐ผ๐ป ๐ญ: we takes the value of the Photo Transistor(A) and We make the status of LED to be changed when the value has been changed. If the sensors are covered, LED become 'ON'. ('OFF' if sensors are not covered up)
- ๐๐๐ป๐ฐ๐๐ถ๐ผ๐ป ๐ฎ: If we run the code, motor rotates clockwise. And then outputs the rotation direction and the number of rotations. Once the switch is pressed in the process, the rotation direction is recognized through the photo sensor. Then it prints out the information about the rotation direction and the number of rotations. If the switch is pressed again, it rotates clockwise. And it also outputs the direction of rotation and the corresponding number of rotations.
- ๐๐๐ป๐ฐ๐๐ถ๐ผ๐ป ๐ฏ: The switch is pressed once, the motor rotates three and a half turns clockwise. Switch is pressed twice motor rotates counterclockwise.
Comments