Cov txheej txheem:
- Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
- Kauj Ruam 2: Tsim TRRS Audio Cable
- Kauj Ruam 3: Teeb Raspberry PI
- Kauj Ruam 4: Txuas LCD Zaub rau Raspberry Pi, Teeb thiab Kuaj
- Kauj Ruam 5: Kev Xeem System
- Kauj Ruam 6: Hloov Kho Duab Duab thiab Rooj Sib Tham Kawg
Video: Thawj Tswj Hwm Lub Sijhawm Suav Rov Qab Los (Wifi): 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Txheej txheem cej luam: Countdown moos zoo ib yam li cov khoom lag luam, nrog ob peb twists:
a) Thaum lub sijhawm ua tiav lub hom phiaj, lub moos suav rov qab: nthuav tawm cov lus tshaj tawm, thiab ua suab nrov thiab nkauj mp3 - qhov xwm txheej no, R. E. M. nkauj: "Nws Yog Qhov Kawg Ntawm Lub Ntiaj Teb Raws Li Peb Paub Nws (Thiab Kuv Zoo Li Cas)." Ua si hauv Youtube
b) Koj tuaj yeem hais qhia lub sijhawm tseeb ntawm qhov xwm txheej yav tom ntej mus rau feeb thiab thib ob.
c) Wifi moos muaj nuj nqi tshem tawm lub sijhawm drift, thiab tso cai yooj yim dua-huab cua rov ua dua tshiab rau cov xwm txheej yav tom ntej.
Cheebtsam tseem ceeb: Raspberry Pi, 16 x 2 LCD, thiab lub zog hais lus tau teeb tsa hauv khw muag khoom duas 5x7 daim duab thav duab.
Kev Txawj Ntse Qib: Paub txog teeb tsa Raspberry Pi thiab khiav tsis tau taub hau, Linux cov lus txib yooj yim thiab cov kev pab cuam nab nab, thiab me ntsis ntawm cov laug (3 xov hlau).
Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej
Qhov:
- Raspberry Pi qauv B+ lossis tom qab thiab rooj plaub
- USB powered speaker nrog 3.5 mm audio input. Tus hais lus kuv siv yog khoom pub dawb, tab sis tus neeg hais lus no zoo li ze … hais lus. Qhov zoo tshaj plaws ib yam nrog rau daim foos xwm txheej.
- 2 micro USB cables thiab ob lub chaw nres nkoj them nyiaj - xaiv tau xim liab khawm xaim hlua
- 5x7 daim duab duab
- Sparkfun Audio Cable TRRS - 18 "(pigtail) CAB -11580
- Digikey CP-3502-ND 3.5 hli lub tso suab ntsaws
- 3/4 "tuab hardboard lossis plywood txog 5" los ntawm 8"
- I2C 2X16 LCD zaub module
- 4 poj niam rau poj niam dupont jumper xov hlau (100 lossis 200 mm ntev yog qhov zoo)
- USB wifi adapter
Cov Cuab Yeej:
- Kub kua nplaum phom
- Soldering hlau
- Hlau hlua
- Band los yog jig pom
Kauj Ruam 2: Tsim TRRS Audio Cable
Muab cov xim daj, liab, thiab ntsuab coj los ntawm Sparkfun Audio Cable TRRS-18 (pigtail) CAB-11580 rau Digikey CP-3502-ND 3.5 mm lub tso suab ntsaws li qhia hauv daim duab
Kauj Ruam 3: Teeb Raspberry PI
a) Teeb Raspberry Pi, nco ntsoov qhib I2C thiab SHH, tseem teeb tsa wifi thiab nco ntsoov koj tuaj yeem txuas rau raspberry pi hauv "hom tsis muaj hau". Phau ntawv qhia.
b) Tsim qhov project subdirectory - Kuv hu kuv li "trump" los muab cov ntaub ntawv xav tau rau hauv.
mkdir tug
cd trwb
pwd hais kom ua yuav tsum tawm los/tsev/pi/trump
c) Luam koj cov suab thiab cov nkauj nkauj rau hauv/tsev/pi/trump. Cov ntaub ntawv npe yuav tsum yog DRUMROLL.wav thiab zaj nkauj remsong.mp3 los ua haujlwm nrog as-is python program peb yuav ntxiv tom qab. Koj tuaj yeem siv cov npe cov ntaub ntawv sib txawv, tab sis tom qab ntawd koj yuav tsum tau kho cov ntaub ntawv nab. Kuv tsis tuaj yeem muab cov ntaub ntawv no rau kev cai lij choj - tab sis koj tuaj yeem pom ntau lub suab cuam tshuam cov ntaub ntawv suav nrog hauv Windows OS, thiab tau kawg rub cov nkauj los ntawm iTunes, Amazon …
Hint - rau kev txav cov ntaub ntawv rov qab los ntawm kuv lub PC thiab RasPi, Kuv siv cov haujlwm pabcuam winSCP
Kauj Ruam 4: Txuas LCD Zaub rau Raspberry Pi, Teeb thiab Kuaj
a) Txuas lub LCD rau Raspberry PI siv 4 tus poj niam rau poj niam jumper. Txuas tus SDA tus pin ntawm RasPi mus rau GPIO SDA tus pin ntawm LCD, thiab SCL tus pin ntawm RasPi mus rau SCL tus pin ntawm LCD, tseem txuas rau 5 volt thiab hauv av pins los ntawm RasPi rau LCD.
b) Kom tau txais koj li RasPi tham nrog LCD - nkag mus rau Raspberry Pi hauv lub taub hau hom, thiab saib phau ntawv qhia PROGRAMMING THE LCD NROG PYTHON los ntawm Circuit Basics. Koj yuav tsum ua kom tiav yam tsawg ntu ntu hu ua: INSTALLING THE RPLCD LIBRARY and WRITE TO DISPLAY IN 8 BIT MODE. Xyuas kom koj tuaj yeem tso saib "Nyob Zoo Ntiaj Teb" ntawm LCD. Tsis txhob mus ntxiv ntxiv kom txog thaum qhov no ua tiav.
Kauj Ruam 5: Kev Xeem System
a) Khaws lub LCD txuas nrog, tseem txuas TRRS audio cable ntawm tus hais lus thiab RasPi (TRRS cable kawg rau RasPi). Txuas ob qho RasPi thiab tus hais lus rau lub zog. Saib daim duab saum toj no.
b) Luam cov ntawv cntDwnSng.py rau hauv koj phau ntawv teev npe. Txog kev ntsuas lub hom phiaj, hloov kho cov ntaub ntawv txhawm rau hloov pauv hnub tim rau qee zaum txog 10 feeb tawm los ntawm txhua lub sijhawm koj tab tom sim qhov kev xeem:
Cov ntsiab lus hais kom ua -
hloov mus rau trump directory"
cd trwb
kho nrog:
nano cntDwnSng.py
hloov sej program hnub tim qhov tseem ceeb:
# nkag lub sijhawm thiab hnub tim ntawm hnub no = 20
hli = 1
xyoo = 2017
teev = 12
feeb = 00
nqi = 0
c) txuag cov program nab hab sej thiab hais kom ua:
nab hab sej cntDwnSng.py
d) Qhov kev cia siab tshwm sim yog: LCD suav lub sijhawm kom txog thaum nws mus txog xoom lub sijhawm, tom qab ntawd lub suab nrov ua si, tom qab ntawd cov lus LCD nthuav tawm, thiab thaum kawg zaj nkauj mp3 ua si. Yog tias txhua yam mus zoo koj tuaj yeem rov pib hnub tim qhov tseem ceeb.
Kauj Ruam 6: Hloov Kho Duab Duab thiab Rooj Sib Tham Kawg
a) Qhib cov duab thav duab thav duab txhawb nqa caj npab sab-rau-sab kom tshem tawm ntawm nraub qaum.
b) Luam tawm Cov Ntaub Ntawv Qhib Chaw (yog-j.webp
c) Txiav tag nrho cov pins uas nyob ze rau ntawm lub vijtsam kom tau txais qhov yaug ntau dua. Txuas LCD mus rau thav duab nraub qaum nrog cov kua nplaum kub thiab daim kab xev daim kab xev. Tsis txhob teeb lub LCD upside down!
d) Nrog ib pab pawg lossis jig pom, txiav tawm cov thav duab txhawb nqa ib daim duab thiab txuas rau daim duab thav duab sab nraub qaum nrog cov kua nplaum kub - saib xyuas kom ntseeg tau tias nws tau txuas ua ke.
e) Ntxig rau 4 dupont xov hlau mus rau RasPi GPIO tus pin ua ntej snapping RasPi rooj plaub ua ke.
f) Txuas Raspi thiab tus hais lus los thav duab txhawb nqa caj npab nrog kua nplaum kub. Ua kom tiav lwm qhov txuas ib kauj ruam dhau los. Yeem tau - khi lub USB fais fab cable ua ke nrog cov hlua liab xaim hlua.
g) Txhawm rau pib-khiav txoj haujlwm nab hab sej ntawm kev pib nkag mus hais kom ua:
sudo nano /thiab /profile
Scroll rau hauv qab thiab ntxiv kab hauv qab no:
sudo python /home/pi/trump/cntDwnSng.py
Ntaus Ctrl-X kom tawm mus, tom qab ntawd "Y" kom txuag raws li "Nkag mus" ob zaug.
h) Mus ntxiv - tam sim no koj muaj RasPi tswj lub peev xwm, koj tuaj yeem yooj yim ntxiv txawm tias muaj kev ua koob tsheej ntau ntxiv, saib Xyoo Tshiab Lub Sij Hawm Countdown Timer Nrog Lub foob pob hluav taws tso tawm lub peev xwm
Pom zoo:
YUAV UA LI CAS ROV QAB ROV QAB NYOB RAU HAUV QAB NTUJ NTUJ Siv MS Lo Lus YOOJ YIM: 12 Kauj Ruam
YUAV UA LI CAS ROV QAB ROV QAB NYOB RAU HAUV NTUJ NTAWV Siv MS Lo Lus YOOJ YIM: nyob zoo cov phooj ywg !! kuv rov !!!!! Kuv nco koj txhua tus :) kuv muaj cov lus qhia tshiab uas yooj yim heev !!! koj puas paub koj tuaj yeem kho cov duab hauv microsoft lo lus ?? yog koj tuaj yeem tshem rov qab lossis txhim kho daim duab ,,, yog tias koj tsis tau sim lwm cov apps koj tuaj yeem siv
Rov Qab/Rov Rov Los Li-Poob (Lithium Polymer) Roj Teeb!: 6 Cov Kauj Ruam
Rov Qab/Rov Rov Los Li-Poob (Lithium Polymer) Roj Teeb!: Roj teeb LiPo yuav tsum tsis txhob tso qis dua 3.0V/cell, lossis nws yuav ua rau lawv puas tas mus li. Ntau tus neeg them nyiaj tsis txawm tso cai rau koj them lub roj teeb LiPo qis dua 2.5V/cell. Yog li, yog tias koj yuam kev khiav koj lub dav hlau/tsheb ntev dhau, koj tsis muaj koj qhov qis
Kev tswj hwm tus kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Li Tachometer: 5 Cov Kauj Ruam (nrog Duab)
Kev Tswj Tus Kheej ntawm RPM ntawm Lub Cav Siv Lub Tswv Yim Los Ntawm IR Raws Lub Tachometer: Muaj ib txwm xav tau rau kev siv tshuab txheej txheem, ua nws yooj yim/tsis txaus ntseeg. cov txheej txheem rau dej/siv dej rau peb daim av me me.Qhov teeb meem ntawm tsis muaj kab khoom siv tam sim no
Yuav Ua Li Cas Rov Qhib Cov Ntawv Thaum Koj Rov Nkag Nkag Rov Los Tom Qab Koj Logoff: 5 Kauj Ruam
Yuav Ua Li Cas Rov Qhib Cov Ntawv Thaum Koj Rov Nkag Los Tom Qab Koj Logoff: Okay yog li qhov xwm txheej no, koj tab tom siv lub khoos phis tawj nrog ntau thiab ntau ntawm koj cov ntawv qhib tau qhib … Tom qab ntawd, koj niam tuaj txog tsev ntxov dua qhov xav tau! Koj paub zoo tias yog nws ntes koj siv lub khoos phis tawj, qhov twg koj yuav tsum tau pw hauv txaj vim yog
Lub Sijhawm Suav Rov Los Nrog LEDs: 3 Kauj Ruam
Lub Sijhawm Suav Rov Los Nrog LEDs: Cov no yog qee qhov ntawv sau luv luv txog 'moos suav rov qab' Kuv tau tsim 10 xyoo dhau los rau Y2K, Lub moos yog 4 taw square los ntawm sab xub ntiag. Nws yog hais txog 4 ntiv tes tuab, thiab sau rau ntawm lub tshuab microcontroller. Txhua ntu yog tsim los ntawm ib puag ncig 20x 10mm LEDS. Kuv ca