Note: * indicates required fields.
[Please fill in during the registration stage↓]
* 1. Self-introduction of myself/team
I am a self-taught embedded engineer who has served as a technical leader in many companies, mainly engaged in security and IoT related industries. I am a creative and persevering geek~
* In 2019, I taught myself front-end, back-end, desktop, linux, python and other development knowledge at home, established the Yunzhe Innovation Team, and implemented the Yunzhe smart home project. Yes, there is only me in the team at present, hahaha~
* This is my personal website [Yunzhe Innovation](http://www.yunzhecx.cn/).
*
* 2. Briefly introduce the project.
This project is designed to realize the function of hatching chickens and ducks. It has basic temperature control, circulating air, automatic swing and other functions.
To discuss the project, you can scan the QR code to join the QQ group
! [Yunzhe Innovation Group Chat QR Code.png]

< br>
[Please fill in during the competition stage↓]
* 1. Describe the project details.
This project consists of stm8 main control, relays, fans, ds18b20 temperature module, servos, foam insulation box, etc.;
the system uses 220v power supply, and controls the shoe dryer through the relay to continuously heat the foam box. When the temperature reaches the set temperature, the heating stops.
* 2. Describe the challenges and problems faced by the project.
Small incubators are suitable for home use and are fun and educational. Successfully hatching a life is a very meaningful and interesting thing, especially for children. It is a magical thing to cultivate awe of life and exercise patience.
It takes 21 days to complete the hatching of a chick, and it takes at least 21 days to develop a good habit. It is worth trying for people with ideas.
Last year, the price of chickens and ducklings was very expensive. A newly hatched white duck cost more than 10 yuan, and a newly hatched chicken also cost 5 to 8 yuan. So why not hatch it yourself?
I searched for the corresponding incubator on Tbao. Depending on the number of hatchings, small home incubators are all around 300 yuan, so why not do it yourself?
After searching for relevant incubation conditions on the Internet, I began to design it myself and made two versions of incubators with different functions. This is one of the projects.
* 3. Describe the key points involved in the hardware and software parts of the project
1) Temperature Temperature is an important condition for the development of poultry embryos. Usually the most suitable temperature is 37.5~39℃.
Temperature. The best temperature is 37.8 degrees for 1-19 days.
The hatching period is 36.9-37.2 degrees for 19-21 days .
2) Humidity
Humidity is also a necessary condition for incubation.
The relative humidity should be maintained at 55%-60%.
3) Ventilation During the development of the embryo, it continuously absorbs oxygen and emits carbon dioxide.
4) Turning the eggs (turning the eggs) is to prevent the embryo from adhering to the eggshell, increase the activity of the embryo, promote the absorption of nutrients, and also to make the eggs evenly heated;
5) The position of the eggs is to increase the incubation volume, reduce embryo ectopic position, and facilitate embryo development. The large end of the eggs must be kept upward during incubation.
6) Candling. The eggs before incubation are strictly candled, and unqualified eggs are removed. Candling is performed three times on the 6th, 11th, and 17th days of incubation.
![Image 20200920-002.jpg]

7) Main code
< br>
```
while( 1 )//motoTurnAngle(0);
{
moto_time--;
if( moto_time == 0 )
{
motoTurnAngleSlowly();
moto_time = MOTO_TIME;
}
_delay_ms( 300 );
send_num( 0x20, 0x60,(float ) moto_time );
_delay_ms( 300 );
// DS18IO=DS18IO_PC7;
tep = DS18B20_ReadTemperature();
//-----------------------------------------------------------------------------
//Less than 37.5 or greater than 38.5 alarmif
( tep < 37 || tep > 39 )
{
ALARM_HIGH;
}
else ALARM_LOW;
//-----------------------------------------------------------------------------
if( tep > 37.5 && tep < 38 )
{
LED2_OFF();
LED1_ON();//Green
}
if( tep < = 37.5)
{//Yellow
LED2_ON();
LED1_ON();
}
if( tep >=38)
{//Red
LED2_ON();
LED1_OFF();
}
//-----------------------------------------------------------------------------
if( tep >= 37.5 && tep < 37.75 )
{
//reshot_speed = 2;
_delay_ms( 10 );
RESHOT_HIGH;
}
if( tep < 37.5 )//Turn on heating
{
//reshot_speed = 1;
_delay_ms( 10 );
RESHOT_HIGH;
}
if( tep > 38 )
{
//reshot_speed = 0;
_delay_ms( 10 );
RESHOT_LOW;
}
//-----------------------------------------------------------------------------
send_tep( 0x20, 0x40, tep );
}
```
< br>
* 4. The project material list is shown
in the attachment
* 5. Upload project pictures
5.1. Print the contest logo on the PCB. Failure to do so will be considered as giving up the competition
! [WeChat Picture_20200913160428.jpg]

5.2. Other project pictures
Empty board photos
! [WeChat Picture_20200913160422.jpg]

< br>
Shell pecking photos
! [WeChat Picture_20200901225042.jpg]

! [WeChat Picture_20200913161650.jpg]

* 6. Demonstrate your project and record it as a video
and upload it. 6.1. Upload the video to the official website of the competition.
6.2. Notes on the video title and link on Bilibili B
: ①: Video requirements: Please shoot in horizontal mode, with a resolution of no less than 1280×720, in Mp4/Mov format, and a single video size limited to 100M; ②: Video upload: Please upload it to the official website of the competition and Bilibili B ([www.bilibili.com](www.bilibili.com)) at the same time. The top 10 projects on Bilibili B will receive a cash reward of 1,000-5,000 yuan, and other uploaded projects will receive a 100 yuan free threshold coupon for the LiChuang Mall; ③: Video title: The 5th LiChuang Electronic Design Competition: {Project Name}-{Video Module Name}; such as the 5th LiChuang Electronic Design Competition: "Autonomous Driving" project-Team Introduction.
< br>
[The 5th LiChuang Electronic Design Competition: Personal Introduction and Project Introduction](https://www.bilibili.com/video/BV1Ja4y177WC) (Personal introduction using smart home project)
< br>
< br>
* 7. Is it the first public release?
7.1. Has the project been published or won awards before? Please indicate
if no
. 7.2. If the project is optimized on the original basis, please indicate that the optimized part
is published for the first time
. * 8. Open source documentation
[https://gitee.com/yunzhecx_cn/stm8hatchV1.0](https://gitee.com/yunzhecx_cn/stm8hatchV1.0)< br>
< br>
< br>
< br>
* 9. References
Click the link for more details: [https://www.szlcsc.com/go/dsxq](https://www.szlcsc.com/go/dsxq)