Cov txheej txheem:

Animated Chocolate Box (nrog Arduino Uno): 3 Kauj Ruam (nrog Duab)
Animated Chocolate Box (nrog Arduino Uno): 3 Kauj Ruam (nrog Duab)

Video: Animated Chocolate Box (nrog Arduino Uno): 3 Kauj Ruam (nrog Duab)

Video: Animated Chocolate Box (nrog Arduino Uno): 3 Kauj Ruam (nrog Duab)
Video: I found THIS in my fish tank 😳 2024, Kaum ib hlis
Anonim
Animated Chocolate Box (nrog Arduino Uno)
Animated Chocolate Box (nrog Arduino Uno)

Ib zaug kuv pom lub thawv zoo nkauj ntawm qhob noom xim kasfes hauv khw. Thiab qhov kev xav tau tshwm sim rau kuv kom ua qhov khoom plig txaus los ntawm lub npov no - lub thawv uas muaj duab nrog chocolate.

Peb xav tau dab tsi:

  1. Сlear yas chocolate box
  2. 9V roj teeb
  3. Roj teeb cable adapter
  4. USD 1 GB
  5. Arduino Ib
  6. TFT Shield rau Arduino

Kauj Ruam 1: Kauj Ruam 1. Npaj Lub Thawv

Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv
Kauj Ruam 1. Npaj Lub Thawv

Ua ntej tshaj, koj yuav tsum qhib lub thawv - maj mam muab daim kab xev kub kaw kom tsis txhob rhuav nws. Tau txais cov ntsiab lus ntawm lub thawv: khoom qab zib thiab yas thim rov qab Hauv yas thaub qab txiav lub qhov rais rau TFT shild thiab roj teeb 9V.

Kauj Ruam 2: Kauj Ruam 2. Arduino Uno thiab TFT Shield Npaj

Kauj Ruam 2. Arduino Uno thiab TFT Shield Preparation
Kauj Ruam 2. Arduino Uno thiab TFT Shield Preparation
Kauj Ruam 2. Arduino Uno thiab TFT Shield Preparation
Kauj Ruam 2. Arduino Uno thiab TFT Shield Preparation
Kauj Ruam 2. Arduino Uno thiab TFT Shield Preparation
Kauj Ruam 2. Arduino Uno thiab TFT Shield Preparation
  1. Sketch rau Arduino Uno

    Yuav tsum rub lub tsev qiv ntawv https://github.com/YATFT/YATFT/archive/master.zip. Hauv Arduino Uno koj yuav tsum tau teeb tsa cov duab kos hauv qab no:

    github.com/YATFT/YATFT/blob/master/example/TFT_shield_SD2TFT/TFT_shield_SD2TFT.ino

  2. Hloov cov vis dis aus thiab kaw ntawm micro SD

Kuv tau kho cov vis dis aus luv luv los ntawm daim vis dis aus rub tawm los ntawm YouTube. Txhawm rau ua yeeb yaj kiab hauv TFT daim ntaub thaiv nws yuav tsum tau hloov pauv mus ua cov ntaub ntawv nrog qhov txuas ntxiv *.rgb:

Rub tawm qhov kev hloov pauv ntawm https://ffmpeg.org/download.html rau koj lub operating system. Nruab rau hauv computer. Hloov cov ntaub ntawv nrog cov lus txib hauv qab no:

ffmpeg -i video.avi -s 320x240 -pix_fmt rgb565 video.rgb

Sau qhov tshwm sim video.rgb cov ntaub ntawv (264MB) rau daim npav microsd (FAT32) thiab ntxig nws rau hauv daim iav TFT. Peb koom ua ke Arduino Uno thiab daim iav tiv thaiv TFT. Tam sim no peb tau npaj rau lub rooj sib tham zaum kawg.

Kauj Ruam 3: Kauj Ruam 3. Rooj Sib Tham Kawg

Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg
Kauj Ruam 3. Los Ua Ke Kawg

Hauv theem kawg peb ua qhov kev sib dhos zaum kawg ntawm txhua yam khoom siv:

  • Peb txuas rau Arduino Uno cable adapter 9V.
  • Ua tib zoo muab daim thaiv npog nrog Arduino Uno nyob hauv qab ntawm lub thawv.
  • Muab lub thauv yas tso rau saum. Kua nplaum ntawm ntug ntawm qhov screen ib daim kab xev kub, uas thaum pib tau ua tib zoo tshem tawm ntawm lub thawv.
  • Peb txuas lub roj teeb 9V, peb tso nws los ntawm lub qhov rai tshwj xeeb hauv qab ntawm lub npov. Muab cov qhob noom xim kasfes qab zib tso rau hauv cov cell kom cov khoom qab zib qhwv tsis kaw qhov screen.
  • Kaw lub thawv nrog lub hau pob tshab. Txaus siab rau daim vis dis aus:-)

Pom zoo: