Cov txheej txheem:

Portable Ze Li Cas Ntsuas Nrog Arduino !: 9 Kauj Ruam (nrog Duab)
Portable Ze Li Cas Ntsuas Nrog Arduino !: 9 Kauj Ruam (nrog Duab)

Video: Portable Ze Li Cas Ntsuas Nrog Arduino !: 9 Kauj Ruam (nrog Duab)

Video: Portable Ze Li Cas Ntsuas Nrog Arduino !: 9 Kauj Ruam (nrog Duab)
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Kaum ib hlis
Anonim
Kev Ntsuas Kev Ntsuas Kev Ntsuas Nrog Arduino!
Kev Ntsuas Kev Ntsuas Kev Ntsuas Nrog Arduino!

Thaum koj nyeem Cov Lus Qhia no, koj yuav kawm paub tsim lub ntsuas qhov sib thooj uas koj tuaj yeem siv los ntsuas qhov nrug nruab nrab ntawm nws, thiab txhua yam koj taw tes rau. Nws siv PICO, Arduino sib xws-board, thiab ntau lwm yam khoom siv hluav taws xob uas twb muaj nyob hauv khw. Nov yog qhov haujlwm ntiag tug los ntawm peb tus phooj ywg zoo, Ala'a Yousef. Txhawm rau sim ua haujlwm ntawm PICO hauv txoj haujlwm yooj yim dua.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
  • DC-DC Boost Converter 3.3V-5V, ebay ($ 2.79)
  • Hlau
  • Ib qho Swb Hloov, ib pob ntawm 5 ntawm ebay ($ 3.83)
  • 2x8cm stripboard, ib pob ntawm 10 ntawm ebay ($ 2.60)
  • 3.7V 300mAh LiPO roj teeb, ebay ($ 8.35)
  • Qhov paub zoo SRF05 Ultrasonic sensor, ebay ($ 1.27)
  • 16x2 LCD Zaub, ib pob ntawm 10 ntawm ebay ($ 7.99)
  • LCD I2C Serial Interface Board. ebay ($ 0.99)
  • 16 tus pin 2.54mm poj niam ncaj header strip, ib pob ntawm 20 ntawm ebay ($ 1.85)
  • Pawg tswj hwm kev txhim kho PICO. Muaj nyob ntawm mellbell.cc ($ 17)
  • Txoj cai kaum 2.54 tus pin headers, pob ntawm 10x40pin ntawm ebay ($ 1.99)

Kauj ruam 2: Npaj LCD

Npaj LCD
Npaj LCD
Npaj LCD
Npaj LCD

Ntawm no, koj tso cov poj niam tus pin lub taub hau rau LCD tus pin-outs. Nws raug nquahu kom ua qhov no tsis txhob siv lub vijtsam rau I2C module, yog li koj tuaj yeem muaj qhov yooj yim ntawm kev tshem tawm thiab hloov nws nrog lwm hom kev tshuaj ntsuam uas koj xav siv.

Kauj Ruam 3: Tso Ultrasonic

Tso Ultrasonic
Tso Ultrasonic

Solder 5 tus pin ntawm lub ntsuas hluav taws xob ultrasonic mus rau ntug ntawm pawg thawj coj saib, yog li koj tau txais qhov loj tshaj plaws tuaj yeem ua haujlwm tau dawb nrog.

Kauj Ruam 4: I2C Module Tso

I2C Module Tso
I2C Module Tso
I2C Module Tso
I2C Module Tso
I2C Module Tso
I2C Module Tso

Muab thiab muab 4 tus pin ntawm I2C tus qauv (5V, SCL, SDA, GND) nyob rau lwm sab ntawm daim kab xev. Peb ua qhov no kom txuag tau thaj tsam ntau ntxiv nyob rau sab saum toj ntawm kab txaij rau cov khoom seem.

Kauj Ruam 5: PICO Board Placing

PICO Board Placing
PICO Board Placing

Muab PICO lub rooj tsav xwm nyob ib sab ntawm plaub tus pin ntawm I2C module thiab tawm tsawg kawg plaub kab ntawm kab ntawv ntawm PICO thiab I2C module pins.

Kauj Ruam 6: Npaj Boost Converter

Npaj Boost Converter
Npaj Boost Converter
Npaj Boost Converter
Npaj Boost Converter
Npaj Boost Converter
Npaj Boost Converter

Xaiv lub kaum sab xis tus pin lub taub hau kom zoo thiab muab ib tus pin rau txhua Hauv+, Hauv-, Tawm+, Tawm-. Vim tias koj yuav tsum tau muab tso rau hauv qhov chaw sawv ntsug kom txuag chaw.

Kauj Ruam 7: Kev Sib Txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Txuas koj cov khoom siv raws li qhia hauv daim duab.

(Pin) _ (PICO Pin)

SCL ……………………. D3

SDA ……………………. D2

Cov duab ……………………… A2

Echo ua ……………………. D4

Vcc …………………….. 5V

GND …………………… GND

Kauj ruam 8: Code

  • "Distance_Measurement.zip" yog daim duab kos rau Arduino IDE.
  • Cov seem ntawm cov ntaub ntawv yog tsev qiv ntawv uas yuav tsum suav nrog hauv Arduino IDE. Koj tuaj yeem suav nrog cov tsev qiv ntawv mus rau IDE los ntawm cov hauv qab no:
  1. Nyem rau ntawm "Sketch" ntawv qhia zaub mov hauv qhov toolbar
  2. Nyem rau ntawm "suav nrog Lub Tsev Qiv Ntawv"
  3. Nyem "Ntxiv. ZIP Library" thiab nrhiav cov ntaub ntawv zip ntawm lub tsev qiv ntawv xav tau

Kauj ruam 9: Nws Rocks

Nws Pob Zeb!
Nws Pob Zeb!
Nws Pob Zeb!
Nws Pob Zeb!
Nws Pob Zeb!
Nws Pob Zeb!

Tam sim no, koj muaj lub tshuab nqa tau, lub hnab tshos loj sib xws, uas tau npaj los ntsuas kev nrug deb txog 5 meters. Qhov no tau ua tiav los ntawm kev siv PICO, uas tso cai rau peb siv kab ntawv 2x8 cm hloov chaw ntawm pawg thawj coj loj.

Pom zoo: