Cov txheej txheem:

CAR yooj yim CAR Arduino IR Tswj: 5 Kauj Ruam
CAR yooj yim CAR Arduino IR Tswj: 5 Kauj Ruam

Video: CAR yooj yim CAR Arduino IR Tswj: 5 Kauj Ruam

Video: CAR yooj yim CAR Arduino IR Tswj: 5 Kauj Ruam
Video: DIY: Fan Mask Tutorial in 4 minutes - How to make a fabric mask 2024, Kaum ib hlis
Anonim
Image
Image

Hauv qhov haujlwm no kuv yuav qhia koj yuav ua li cas thiaj ua lub tsheb tswj los ntawm TV chaw taws teeb tswj. rau qhov no peb yuav siv lub tshuab txais infrared. Nws yuav qhia koj yuav ua li cas thiaj tau txais thiab txiav txim siab lub pob khawm tau txais.

Kauj Ruam 1: Sau Cov Ntsiab Lus

Cov Ntsiab Lus
Cov Ntsiab Lus
Cov Ntsiab Lus
Cov Ntsiab Lus
Cov Ntsiab Lus
Cov Ntsiab Lus

Cov npe:

  1. iR Tus Txais
  2. Arduino ib
  3. L298N lub cev muaj zog tiv thaiv
  4. Plexi 17 cm x 10 cm
  5. 4x TT iav Tsav
  6. 4x tig
  7. Roj teeb 9V
  8. Roj teeb txuas
  9. Hlau
  10. Hloov

Kauj ruam 2: Schema

Schema
Schema

Schema:

Arduino rau L298N:

  • D8 to HLB 1
  • D9 to HLB 2
  • D10 to HLB 3
  • D11 to AWM 4
  • Vin to 5V
  • GND to CSY

Txais rau Arduino:

  • Kev lees paub rau lub dav hlau D -7
  • Vcc to 5V
  • GND to CSY

Kauj ruam 3: Montage

Montage
Montage
Montage
Montage
Montage
Montage

Kauj Ruam 4: Nyeem Txoj Cai khawm

Nyeem khawm khawm
Nyeem khawm khawm
Nyeem khawm khawm
Nyeem khawm khawm
Nyeem khawm khawm
Nyeem khawm khawm

IR Decoder:

Rau kev ua haujlwm ntawm peb tus neeg txais khoom, peb xav tau Arduino-IRremote-master lub tsev qiv ntawv.

  • Download tau lub tsev qiv ntawv:
  • Qhib Arduino Lub Tswv Yim
  • Xaiv: Sketch-> Xws li Tsev Kawm Ntawv-> Ntxiv. ZIP Library-> xaiv Arduino-IRremote-master.zip.

Tam sim no peb yuav tso cov duab kos rau peb cov arduino thiab qhib Serial Monitor. Tam sim no siv TV lub chaw taws teeb tswj, taw tes rau ntawm tus txais thiab nias ib lub pob. Hauv lub qhov rai saib xyuas lub ntsej muag koj yuav pom lub pob chaws.

Kauj ruam 5: Sketch

Kos duab
Kos duab

Tam sim no luam theej cov lej cim rau iR_Car.ino kos duab.

Pom zoo: