Cov txheej txheem:

Arduino Attiny85 Smart Controller Controller: 3 Kauj Ruam
Arduino Attiny85 Smart Controller Controller: 3 Kauj Ruam

Video: Arduino Attiny85 Smart Controller Controller: 3 Kauj Ruam

Video: Arduino Attiny85 Smart Controller Controller: 3 Kauj Ruam
Video: Setting Up Arduino for programming an AtTiny85 Micro-controller. 2024, Kaum ib hlis
Anonim
Arduino Attiny85 Ntse Tus Kheej Tswj
Arduino Attiny85 Ntse Tus Kheej Tswj

Khoom siv

Puas yog koj ntxhov siab los ntawm cov kiv cua nrov? Kuv ua.

Kuv muaj ntau yam cuab yeej uas muaj kiv cua. Thiab qee qhov cuab yeej tus kiv cua ib txwm ua haujlwm ntawm qhov nrawm tshaj plaws. Yog li kuv ua rau nws nyob ntsiag to dua.

Kauj Ruam 1: Tsim, BOM

Tsim, BOM
Tsim, BOM
Tsim, BOM
Tsim, BOM
Tsim, BOM
Tsim, BOM

Nws tsim yog yooj yim. Tab sis kuv xav ua kom nws me me tiag.

Yog li kuv tuaj yeem tso kuv cov cuab yeej.

** yog li tsis muaj tus pin upload rau kos duab rub tawm **

Muaj qhov ntsuas qhov kub thiab qhov hloov pauv ntawm MOSFET.

Attiny85 txheeb xyuas qhov kub thiab yog tias kub siab ces nws tso tawm PWM zaus siab.

Thiab muaj ib lub hwj chim. Nws tuaj yeem siv los ua tus txiav txim.

Kuv ua nws raws li qhov ntsuas kub.

Yog tias kuv tig nws ces Attiny85 xav tias nws kub dua lossis txias dua qhov tseeb.

Yog li kuv tuaj yeem txav lub kiv cua qeeb dua lossis nrawm dua.

Tab sis nws tuaj yeem kho PWM lossis qhov kub siab tshaj lossis ib yam dab tsi yog tias koj hloov kho daim duab.

Kub sensor yog 100K thermistor

Kauj Ruam 2: Yuav Ua Li Cas Upload Sketch rau Attiny85

Yuav Ua Li Cas Upload Sketch rau Attiny85
Yuav Ua Li Cas Upload Sketch rau Attiny85
Yuav Ua Li Cas Upload Sketch rau Attiny85
Yuav Ua Li Cas Upload Sketch rau Attiny85

Kuv yuav tsis piav ntau. Muaj ntau phau ntawv zoo yog tias koj google nws.

Tab sis kuv tsis tau upload tus pin rau ntawm lub rooj tsavxwm. Yog li koj yuav tsum rub tawm ua ntej tso nws.

Kuv siv SOIC qhov (socket) los ntawm no:

Kauj ruam 3: Sketch

Kos duab
Kos duab
Kos duab
Kos duab
Kos duab
Kos duab

void teeb (tsis muaj dab tsi) {

TCCR0B = TCCR0B & 0b11111000 | 0b001; // hloov pauv PWM zaus.

Arduino's PWM zaus tau hnov. Yog li kuv hloov nws siab dua rau kuv tsis hnov nws.

Chav ntsuas kub yog Celsius thiab kuv tau teeb tsa nws yam tsawg kawg 25 txog qhov siab tshaj 35 degree.

Koj yuav tsum hloov nws raws li koj xav tau.

Pom zoo: