Cov txheej txheem:

Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb: 5 Kauj Ruam
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb: 5 Kauj Ruam

Video: Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb: 5 Kauj Ruam

Video: Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb: 5 Kauj Ruam
Video: 5-дневное путешествие на поезде через 3 000 км на север и юг Японии по очень низкой цене. (Кюсю) 2024, Kaum ib hlis
Anonim
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb
Moos Nrog IR Chaw Taws Teeb rau Lub Sijhawm/Hnub Teeb

Nov yog lub moos yooj yim ua los siv cov khoom muaj nyob hauv. Microcontroller siv yog qhov pheej yig STM32F030F4P6. Cov zaub yog 16x2 LCD nrog I2C hnab (PCF8574).

Lub moos hluav taws xob tuaj yeem tsim los siv cov laug cam me me thiab TSSOP28 lub rooj tsav xwm hloov pauv, raws li qhia.

Kauj ruam 1: Cov ntaub ntawv

  • STM32F030F4P6 MCU NCO
  • PCF8563 RTC lossis tau txais cov qauv ua tiav
  • LCD 1602 nrog I2C hnab ev khoom
  • prototyping cov laug cam
  • IR Chaw taws teeb tswj los ntawm Bluetooth/MP3 player module - IR Chaw Taws Teeb
  • 38KHz IR Txais - TSOP1738
  • Crystals (12MHz rau MCU, 32.768KHz rau RTC)
  • Ntau yam khoom siv raws li cov ncauj lus kom ntxaws hauv schematic
  • xov hlau, txuas, thiab lwm yam.

Yuav tsum muaj USB txuas txuas txuas rau qhov ua kom pom qhov program mus rau MCU.

Kauj ruam 2: Schematic thiab Source Code

Schematic thiab Source Code
Schematic thiab Source Code

Kauj Ruam 3: Programming MCU

Tom qab txuas lub MCU raws li cov txheej txheem, cov phiaj xwm tuaj yeem ua rau pom hauv MCU yooj yim siv USB txuas txuas.

Txuas USB Serial adapter's TX rau MCU's PA10 (USART1_RX), thiab tus adapter RX rau MCU's PA9 (USART1_TX).

Siv lub jumper kom luv Pins 1 thiab 2 ntawm P1 header (xa mus rau schematic, tsuas yog Boot0 tus pin yuav tsum tau teeb tsa raws li Boot1 tus pin tsis muaj nyob hauv MCU no), thiab ua kom lub zog hluav taws xob coj MCU mus rau hauv hom bootloading.

Cov ntaub ntawv siv tau zoo rau cov phiaj xwm STM32 MCU nyob hauv cov lus qhia no: Flashing STM32

Tom qab teeb tsa qhov program, tshem qhov luv ntawm Pins 1 thiab 2 ntawm P1, thiab Pins luv 2 thiab Pin 3, tom qab ntawd hloov lub zog ntawm lub rooj tsavxwm, thiab MCU yuav tsum pib ua qhov haujlwm flashed.

Kauj Ruam 4: Teeb Sijhawm thiab Hnub Tim

Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim
Teem Sijhawm thiab Hnub Tim

Txhawm rau teeb Hnub/Sijhawm, nias lub MENU khawm ntawm cov chaw taws teeb (xa mus rau daim duab tswj chaw taws teeb rau cov duab qhia chaw).

LCD qhia * Teeb Sijhawm thiab Teeb Hnub. * Taw tes rau qhov kev xaiv tam sim no.

Siv INCREASE/DECREASE (+/-) khawm kom txav * tus pointer. Cov nyees khawm 2 no kuj tseem siv rau kev hloov pauv lub sijhawm/hnub tseem ceeb.

Siv SELECT khawm los xaiv.

LEFT/RIGHT cov nyees khawm yog txav tus cursor mus rau lub sijhawm/hnub ua haujlwm, ua raws li INCREASE/DECREASE cov nyees khawm kom hloov tus nqi sib xws. Txhawm rau xauv qhov kev hloov pauv, nyem lub pob SELECT.

RETURN khawm tau siv los tawm sijhawm/sijhawm teeb tsa.

Kauj Ruam 5: Mus Ua Ntej thiab Tsim Ib Zaug, Nws Tsis Pheej Yig thiab Muaj Kev Zoo Siab

Zoo, lub npe hais txhua yam. Tom qab sib sau cov ntaub ntawv, nws yuav tsum tsis txhob siv ntau dua ib nrab hnub los tsim.

Tom ntej no.. Muab nws tso rau hauv lub hnab zoo, siv lub zog txhab nyiaj..

Ua tsaug rau kev nyeem ntawv.

Pom zoo: