Electronic Chick:It Can Chirp According to the Light and Peck at What Is in Front of It.
by 2054406 in Circuits > Arduino
181 Views, 2 Favorites, 0 Comments
Electronic Chick:It Can Chirp According to the Light and Peck at What Is in Front of It.
In my hometown, chickens can be seen everywhere. Every morning, you can hear the loud sound of chickens. In order to hear the memorable sound in the city, we made this electronic chicken.It can chirp according to the light and peck at what is in front of it.
Supplies
Arduino Uno
Photocell
3x220 Ohm Resistors
Ultrasonic sensor
Buzzer
Servo
Wireway
1xBreadboard Wire
Chick Shape Making
The basic appearance of the chicken is shown in the picture. You can scale it up and down in equal proportion and add the decorations you want.You can use cardboard, wood and other materials. First make the shape of the chick, and then make holes according to the position of the wings and the size of the servo. Pay attention to cut slowly at the corner. Finally, the head and wings can be connected with a small board.
Line Connection
The circuit connection mode is shown in the figure.
Code
Start to Have Fun!!
This chick will sense the intensity of light through a photosensitive resistor, and when the outside brightness changes from light to dark, the chick will raise its head and chirp three times. The condition of the ringing is that the outside world changes from light to dark. In addition, we also imitate the chick pecking. When the ultrasonic sensor senses something in front of the chick, it will be curious to peck at the things in front of it, which is very lovely.