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.

微信图片_20210620203804.jpg

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

src=http___oscimg.oschina.net_oscnet_48afe6f389118b412db0f5ee596ce172163.jpg&refer=http___oscimg.oschina.jpg
src=http___5b0988e595225.cdn.sohucs.com_images_20171102_613d17c96bec4ea782ac2a3ef9b6e6ed.jpeg&refer=http___5b0988e595225.cdn.sohucs.jpg
src=http___upload-images.jianshu.io_upload_images_1362450-13310a1cd8243cb8.jpg_imageMogr2_auto-orient_strip_imageView2_1_w_300_h_240&refer=http___upload-images.jianshu.jpg
src=http___gloimg.chinabrands.cn_cbcn_pdm-provider-img_straight-product-img_20181028_T033972_T0339720010_source-img_202244-2457.jpg&refer=http___gloimg.chinabrands.jpg

Arduino Uno

Photocell

3x220 Ohm Resistors

Ultrasonic sensor

Buzzer

Servo

Wireway

1xBreadboard Wire

Chick Shape Making

QQ截图20210618211330.png

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

微信图片_202106202038041.png
微信图片_20210620203804.png

The circuit connection mode is shown in the figure.

Code

QQ截图20210620215550.png
QQ截图20210620215604.png

Start to Have Fun!!

b9b2ad559b54efd2e6e582e04a058c11

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.