Cov txheej txheem:

Tus Cwj Pwm Neeg Hlau Nrog Hauv Tsev Arduino: 7 Kauj Ruam
Tus Cwj Pwm Neeg Hlau Nrog Hauv Tsev Arduino: 7 Kauj Ruam

Video: Tus Cwj Pwm Neeg Hlau Nrog Hauv Tsev Arduino: 7 Kauj Ruam

Video: Tus Cwj Pwm Neeg Hlau Nrog Hauv Tsev Arduino: 7 Kauj Ruam
Video: Tus Cawm Seej Hloov Neeg Txoj Hmoo (HD) 2024, Kaum ib hlis
Anonim
Gesture Robot Nrog Hauv Tsev Arduino
Gesture Robot Nrog Hauv Tsev Arduino

Hauv kab ntawv no peb yuav piav qhia yuav ua li cas txhim kho ib qib zuj zus Kev Tswj Lub Cev Nrog Peb Tus Kheej Hauv Tsev Arduino. Qhov no suav nrog nws ua haujlwm li cas; tag nrho cov tshuab, cov khoom siv, thiab lwm yam.

Peb vam tias koj nyiam nws peb ntau peb tau nrhiav pom dab tsi yog kev tshawb fawb tom qab Arduino

Arduino yog dab tsi?

Arduino yog lub platform siv hluav taws xob qhib raws qhov yooj yim-rau-siv-kho vajtse thiab software. Cov laug cam Arduino tuaj yeem nyeem cov tswv yim, zoo li, teeb ntawm lub ntsuas pa, ntiv tes ntawm lub pob lossis ntau txoj haujlwm nyuaj dua.

Koj tuaj yeem qhia koj pawg thawj coj ua dab tsi los ntawm kev xa cov txheej txheem qhia rau microcontroller ntawm lub rooj tsavxwm. Txhawm rau ua li ntawd koj siv Arduino cov lus programming (raws li thaiv), thiab Arduino Software (IDE), raws li Kev Ua Haujlwm. Nws yog siv los ntawm tus kws kos duab, cov tub ntxhais kawm, cov kws tshaj lij thiab cov kws tshaj lij, siv feem ntau rau cov khoom siv tab sis kuj tseem tuaj yeem siv peb qhov kev sim lom zem me ntsis.

Tau qhov twg los:

Nws Ua Haujlwm Li Cas:

Tom qab ua tiav kev tsim peb Homemade Arduino thiab Lub Cev Tswj Lub Tsheb, peb yuav teeb tsa Arduino kom paub txog lub ntsuas cua thiab peb txav mus los ntawm txhais tes.

Arduino yuav muab txuas rau lub hnab looj tes kom nws yooj yim los tuav, koj kuj tseem tuaj yeem pom hauv txoj haujlwm twg uas ua rau koj muaj qhov tsawg tshaj plaws.

Kauj Ruam 1: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Homemade Arduino:

  • Breadboard (440 rau 840 Tie Point)
  • 22 AWG Hlau (Ntau Yam Xim)
  • 2 LEDs (Txhua Xim)
  • 2220 Ohm Resistors (Liab, Liab, Xim av)
  • 7805 Voltage Regulator
  • 1 10k Ohm Resistors (Xim av, Dub, Liab)
  • 2 10 uF Capacitors
  • 16 MHz Clock Crystal
  • 222 pF Cov Capacitors
  • Me Momentary Tact Hloov
  • TTL - 232R3V3 USB. Serial Converter Cable
  • ATMEGA328 lossis ATMEGA 168
  • Roj teeb 9v

Lub Cev Tswj Lub Tsheb:

  • Arduino Lilypad lossis Hauv Tsev Arduino
  • Acceloremeter
  • RF 433 Qauv
  • HT12E thiab HT12D
  • Tsav Tsheb L293DNE
  • BO Tsav thiab Log
  • Pawg Thawj Tswj Hwm
  • 29v Roj teeb
  • Ntoo
  • Roj teeb
  • 7805 Voltage Regulator
  • Hlau
  • 2 330k Ohm Resistors

Ntxiv:

  • USB 2 Hlau
  • Txiv neej thiab poj niam Hlau
  • Hnab looj tes
  • Tin
  • Hluav Taws Xob Cov Hluav Taws Xob
  • Arduino
  • Phom phom

Kauj Ruam 2: Arduino: Teeb Fais Fab

Arduino: Teeb Lub Hwj Chim
Arduino: Teeb Lub Hwj Chim
Arduino: Teeb Fais Fab
Arduino: Teeb Fais Fab
Arduino: Teeb Fais Fab
Arduino: Teeb Fais Fab

Ua ntej tshaj, peb yuav tsum teeb tsa Lub Hwj Huam tsis muaj dab tsi yuav ua haujlwm. (Liab = hwj chim, Dub = hauv av)

1. Ntxiv lub zog thiab hauv av rau hauv qab ntawm BroadBoard, qhov Voltage Regulator yuav yog.

2. Ntxiv lub zog thiab hauv av rau hauv qab ntawm Broadboard, txuas txhua txoj kev tsheb nqaj hlau.

3. Muab Voltage Regulator los ntawm sab xis, tom qab ntawd ib qho 10 uF Capacitors rau nws sab laug thiab lwm qhov ntawm txoj kev tsheb nqaj hlau.

4. Ntxiv cov LED los ntawm ib sab ntawm Cov Lus Taw Qhia, yog peb lub zog ntsuas; thiab 220 Ohm Resistor nruab nrab ntawm txoj kab tsheb nqaj hlau thiab nruab nrab.

Tam sim no peb muaj Lub Hwj Huam Teeb.

Kauj Ruam 3: Pin Mapping: ATMEGA328/168

Pin Mapping: ATMEGA328/168
Pin Mapping: ATMEGA328/168
Pin Mapping: ATMEGA328/168
Pin Mapping: ATMEGA328/168
Pin Mapping: ATMEGA328/168
Pin Mapping: ATMEGA328/168

Tam sim no peb yuav nqes mus rau tag nrho peb cov khoom.

Txhawm rau tiv thaiv ib qho RESET thaum txheej txheem tso 10k Ohm Capacitor rau RESET Pin.

1. Ntxiv 16MHz Clock Crystal ntawm Pin 9 thiab 10, thiab ntxiv Ob 22 pF Capacitors khiav mus rau hauv av ntawm txoj kev tsheb nqaj hlau sab laug.

2. Ntxiv khawm Me me kom koj tuaj yeem rov pib dua Arduino thaum twg koj xav tau thiab npaj nws rau kev ua haujlwm, thiab ntxiv cov xaim me me rau hauv qab sab laug ceg ntawm Hloov mus rau RESET.

3. Thaum kawg ntxiv lub xaim hluav taws xob rau tus Pin 19, txuas nws mus rau LED (ceg ntev rau Hlau) thiab tso lwm 220 Ohm Resistor mus rau txoj kev tsheb nqaj hlau. (Sim ntsais muag LED)

Koj tab tom pom yuav luag ua haujlwm Arduino.

Kauj ruam 4: Bootloading thiab Programming

Bootloading thiab Programming
Bootloading thiab Programming

Bootloader yog dab tsi?

Bootloader yog ib qho ntawm cov cai uas ua ntej ib qho kev ua haujlwm khiav haujlwm; yeej tsis muaj nws tsis muaj dab tsi wouls tshwm sim.

Arduino Bootloading:

Yog tias koj muaj ATMEGA328 tshiab koj yuav tsum tau hlawv lub bootloader rau nws.

Nov yog qhov txuas uas koj tuaj yeem ua raws:

Txoj Haujlwm:

Txuas lub TTL-232R3V3 USB mus rau lub protoboard, tom qab ntawd muab nws ua ke nrog cov xov hlau mus rau ATMEGA328; xyuas tias koj lub roj teeb 9v tsis txuas nrog.

Qhib Arduino IDE thiab hauv Cov Piv Txwv kos duab cov ntaub ntawv, hauv qab Digital, thauj Blink sketch

Hauv qab cov ntawv xaiv Serial Port, xaiv COM chaw nres nkoj uas koj siv nrog koj lub USB cable.

Tam sim no nias lub cim upload thiab tom qab ntawd ntaus lub khawm pib dua; yog tias txhua yam ua haujlwm raug tha tha LED ntawm tus Pin 13 yuav ntsais muag, beacuse yog programm rau qhov ntawd.

Thaum koj ua tiav txoj haujlwm nyob qhov twg koj xav tau, hauv qhov no Lub Cev Tswj Lub Tsheb, koj tuaj yeem txuas nws thiab koj li koj li 9v Roj teeb rau lub zog.

Kauj Ruam 5: Tes Taw Tsheb: Lub Tsev Qauv

Lub Cev Tsheb: Lub Tsev Qauv
Lub Cev Tsheb: Lub Tsev Qauv

Pib tsim cov qauv ntawm lub tsheb nrog cov ntoo, cov ntoo me me, 2 thaiv rau pem hauv ntej thiab tom qab (qhov log mus) thiab ib qho loj nyob nruab nrab rau kev txhawb nqa; muab tshuaj txhuam nws nrog rab yaj phom

Tom qab ntawd muab cov motors tso rau ntawm txhua sab thiab ntsaws 4 lub log. Weld lub zog npau taws hauv av rau txhua lub cav.

Txiav 15x15cm Saquare, txiav nws kom nws haum rau tus qauv (hauv paus)

Kauj Ruam 6: Kev Tshaj Tawm Circuit Court

Kev Tshaj Tawm Circuit Court
Kev Tshaj Tawm Circuit Court

Tam sim no peb tab tom pib ua haujlwm tsim cov Transmitter Circuit thiab Programming.

Txheeb xyuas cov vis dis aus los ntawm 3.36 txog 6.17: Kev Tshaj Tawm Circuit Court

Coding rau Tus Cwj Pwm Tsheb:

Download Npaj:

Kauj Ruam 7: Txais Circuit

Txais Circuit
Txais Circuit

Tam sim no pib carfting tus txais Circuit

Txheeb cov vis dis aus txij li 6:18 txog 8:34: Lub Circuit Reciever

Download Npaj:

Thaum kawg txhuam txhua yam rau lub hauv paus thiab nws npaj txhij ua haujlwm tiav.

Proyect thawj tsim los ntawm Tapendra Mandal; Channel Txuas

Pom zoo: