105
edits
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 71: | Line 71: | ||
For the <u>moving branch</u>, it was set a system with an HC-SR04 Ultrasonic Distance Sensor controlling a 15 kg Digital Servo Motor, through an Arduino Nano and a connective board. | For the <u>moving branch</u>, it was set a system with an HC-SR04 Ultrasonic Distance Sensor controlling a 15 kg Digital Servo Motor, through an Arduino Nano and a connective board. | ||
When the spectator approaches 60 cm of the branches, the servo motor starts to turn from 0 to 18 degrees, making the branches, attached to it, start to move. If the spectator approaches at a closer distance (40 cm), the servo motor turns from 0 to 58 degrees, making the branches move a little bit more and slower. | When the spectator approaches 60 cm of the branches, the servo motor starts to turn from 0 to 18 degrees, making the branches, attached to it, start to move. If the spectator approaches at a closer distance (40 cm), the servo motor turns from 0 to 58 degrees, making the branches move a little bit more, and slower. | ||
The Servo Motor received an extra supply of energy from an MB-102 3.3V/5V Power Module plugged into electricity and connected to the board of the 2nd System. | The Servo Motor received an extra supply of energy from an MB-102 3.3V/5V Power Module plugged into electricity and connected to the board of the 2nd System. | ||
Line 99: | Line 99: | ||
(The written code is at the end of the page) | (The written code is at the end of the page) | ||
edits