Опубликовано 2013-03-21 10:56:23 автором Ruslan Climate control in the incubator for AVR It was like this : my godfather decided to start breeding with/farm poultry, and came to me for advice, what and how to organize it all, to automate the whole process. Since I have a great godfather builder and is not trained in digital electronics and programming, I took him to the incubator for electronics that would monitor the temperature in the working environment, turned the eggs several times a day, cooled incubator workspace and believed from the beginning of time vysedki. And you had all the information displayed on the seven segment led- indikator.Shema entire device . The unit can be divided into three blocks . - Temperature measurement is implemented with the help of sensors ds18b20
scheme connection to the micron and output it to the seven-segment LED - load switching in an alternating current, implemented a simple switch and turn off light bulbs with the aid of the triac and triac optodrayvera
- switching and reverse a DC motor, is implemented on H bridge
Next had to develop a program to manage it all
operation of the device can be briefly described as follows:
microcontroller is commanding a temperature sensor, and then - click on the temperature measurement. The sensor measures the temperature inside the device and stores it in its internal register.
Measuring the temperature inside the incubator
Temperature information for the convenience of the user is displayed on the LED- display. The microcontroller reads the data from the register sensor and converts them to normal. There is also the range of variation of the temperature necessary for the proper operation of the device. These values are compared with read, and depending on this, the microcontroller makes appropriate steps: Turn the lights that heat inside the unit.
Output of the temperature on the LED- display
Controller included incandescent
Due to the technological need one every two hours controller includes an electric motor to turn over the eggs. For this, the controller delivers the PWM signal ( frequency kNz 2 ) for a certain H-bridge arm. Generation PWM signal is made with a timer - counter, which operates on a "fast PWM ".
In this application certain values stored in registers timer - counter. Duty cycle affects the engine power. Another function that can be performed using H-bridge - it's the reverse motor. This is accomplished by incorporating the various arms of the H- bridge, which is done by software.
For user convenience is realized by output display some additional information, namely, the number of days, hours, minutes and during which the device works.
After 21 days in the incubator chickens appear.
The incubator hatching chicken
Комментарии - (5) gabygaby говорит: program atmega8? Laszlo Gabanyi говорит: It is a good project .
hoan говорит:
Алексей говорит: Здравствуйте! могли бы вы взяться за написание ПО инкубатора на мега8 по моему тех заданию и схеме? если интересно почта alexeyga@i.ua hai говорит: goog
Добавить комментарийДля отправки комментария вы должны авторизоваться.
|