Last lesson we learned about the Arduino Servo motor and several sensors that respond to it.
We started to connect the motor to the circuit. Then we used an example code from the Arduino software so that we could control the value of the moving angle. The value must be between 100 and 200! The motor can move from 0 to 180 degree. The little rotation button helped to control the motor. If you turn it, the motor will respond to it (depending on the value that is written in the code). The potentiometer is a simple knob that provides a variable resistance. In addition it has 3 "legs": The middle part is for the data. The ones on the left and right are for power.
We also tried some sounds with another component of the Arduino box. There are several possibilities to play a melody. Of course it is just peeping/frequence but you can say how long and how often it is played. There has to be resistance to the !
In action with movement and sound:
We started to connect the motor to the circuit. Then we used an example code from the Arduino software so that we could control the value of the moving angle. The value must be between 100 and 200! The motor can move from 0 to 180 degree. The little rotation button helped to control the motor. If you turn it, the motor will respond to it (depending on the value that is written in the code). The potentiometer is a simple knob that provides a variable resistance. In addition it has 3 "legs": The middle part is for the data. The ones on the left and right are for power.
We also tried some sounds with another component of the Arduino box. There are several possibilities to play a melody. Of course it is just peeping/frequence but you can say how long and how often it is played. There has to be resistance to the !
In action with movement and sound: