WordPress database error: [Table './meandr_base/anzpz_usermeta' is marked as crashed and last (automatic?) repair failed]
SELECT user_id, meta_key, meta_value FROM anzpz_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC

2

Voltmeter, thermometer and clock on the ATMega8

Устройство (назову его “VTC”), представленное в этом проекте, содержит в себе функции 3-х устройств: вольтметр, термометр и часы. Выполнено оно на микроконтроллере семейства AVR ATMega8.
Funcionalno VTC operates in one mode, which is selected by pressing the button:

Digital voltmeter You can measure DC voltages from 0 to 25 volts. ATMEGA8 is used as a controller, which taktuetsja the internal RC-generator 8 MHz. DC voltage measurements are made using the built-in controller and 10 bit ADC. Measured voltage divider through R9, R10 arrives at the entrance ADC0 (PortC. 0 p. 23). After the change, the measurement result is displayed on the 4-th bit indicator with common anode (in my case, RL-C5620). Pay attention that they are of different sizes may vary cokolevkoj and inclusion (OA and OK).

Thermometer allows you to measure the teperaturu from -50 to + 85 gadusov. I would like to point out that because the temperature indication given 3 digits, then tenths of displayed only in the range − 9.9. +85° c, and temperatures are displayed without tenths. At temperature from -10 and lower decile more than 0.5 degrees is shown by the inclusion of a point (as in the fourth picture below).

Room temperature of 20.6 degrees Room temperature
"плюсовая" температура, 8,4 градусов “плюсовая” температура, погашен незначащий ноль
The temperature is below zero temperatures below zero
Temperature-12.5 degrees Temperature-12.5 degrees
-20 degrees Such maximum low temperature I managed to measure (in the freezer the fridge)

The thermometer Sensor DS18B20, mikroshemka serves as a reading of the data on the current temperature and making the necessary changes to the measurement result display indicator.

Watches. Counting time occurs constantly, regardless of which mode is selected. In addition, in the event of a main power switch to the VTC, jenorgosberegajushhij mode, disabling the indication and going to sleep. In this mode, the VTC consumes 10uA.

Переключение между режимами вольтметра и термометра производится кнопкой S1: один раз нажали – вольтметр, ещё раз – термометр, ещё раз -часы и так по кругу.

Кнопка S2 необходима для перехода из режима часов в режим установки времени. При переходе в этот режим, начинают моргать разряды, отображающие часы, еще раз нажимаем – моргают минуты. Кнопками S3 (“+”) и S4 (“-” ) выставляем нужное время. Кнопка S5 резервная и в этом проекте пока не исспользуется, поэтому ее устанавливать не нужно.

Supervisory radio amateur may notice connection mismatch digits indicator. The thing is that the 3-rd level indicator are two points that need them for hours and they are here isspolzujutsja only in clock mode. So I concluded in the program information first on the first level, then 2nd, 4th, 5th and then 3 (only if the clock mode).
Buttons management connected to seemingly have the same busy indicator the port, but it is, there is no error. Let me explain: once happen at all output serial digits port switches direction, i.e. becomes entrance and scans the existence of pressed buttons, and then changes direction and becomes the port output. This process is repeated again and again.

Sleep to feed you can apply any batteries from 3 to 4.5 volts. The presence of the main voltage is controlled by CPU port inlet PB. 5 (17) through a chain of VD3 and R22.
Transistors are p-n-p low power, you can apply the BC558, suit also 2SA733 or our CT 361. Diode VD4 must be applied with low resistance transition, I isspolzoval 1N5817, the others can put a 1N4001 (1N4002-1N4007).
Separate attention must be paid to the FuseBits. In our case (for CodeVision AVR) they are billed as follows:
vtc.rar [185.23 Kb] (count: 713) The firmware on the controller.
vtc_n.rar [176.61 Kb] (count: 501) Прошивка контроллера с сигнализацией гололеда: при температуре от +1 до -3 градуса, моргает значек “градус”, привлекая тем самым дополнительное внимание.
vtc-1_v2.2b.rar [28.58 Kb] (count: 519) Firmware version v2.2b
In this version of voltage measurement up to 40 volts
vtc-1-v2.2p.rar [18.38 MB] (count: 151) Firmware version v2.2p
By popular demand, firmware which in clock mode blinks separating comma (for those who did not manage to find the time indicator)
pcb_vtc-1.rar [161.87 Kb] (count: 614) PCB format P-CAD.
pcb_igumich.rar [13.28 Kb] (count: 271) PCB Layout format for IC DIP package
pcb_boba.rar [31.9 MB] (count: 264) PCB Layout format for IC DIP package

I put this device in the power supply. It is very convenient. Here's the video:

Dear customers with this project with MK in DIP package, if you would like to share their version of the printed circuit board, share in the comments references, files, or images.

All questions to ask forum

первоисточник avrlife.pp.ua

admin

2 Comments

  1. WordPress database error: [Table './meandr_base/anzpz_usermeta' is marked as crashed and last (automatic?) repair failed]
    SELECT user_id, meta_key, meta_value FROM anzpz_usermeta WHERE user_id IN (1973) ORDER BY umeta_id ASC

">class="comment byuser comment-author-tyomanik even thread-even depth-1">

Сейчас разрабатываю печатку. сделаю обезательно поделюсь

  • WordPress database error: [Table './meandr_base/anzpz_usermeta' is marked as crashed and last (automatic?) repair failed]
    SELECT user_id, meta_key, meta_value FROM anzpz_usermeta WHERE user_id IN (11011) ORDER BY umeta_id ASC