Cov txheej txheem:
- Kauj Ruam 1: Tau Arduino & RPi Kho Vajtse
- Kauj Ruam 2: Txuas DHT11 & LCD mus rau Arduino
- Kauj ruam 3: Program Arduino
- Kauj Ruam 4: Kev Ua Haujlwm Arduino, LCD & DHT11 Teeb
- Kauj Ruam 5: Txuas Raspberry Pi mus rau Arduino
- Kauj Ruam 6: RPi Python Code txhawm rau Nyeem USB Port Serial Data
Video: Kub & Vaum Los Ntawm Arduino mus rau Raspberry Pi: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Saib xyuas qhov kub thiab txias yog qhov tseem ceeb yog tias koj muaj lub tsev cog khoom, lossis muaj phiaj xwm yav tom ntej txhawm rau txhim kho koj lub tsev cog khoom mus rau hauv mini-smart-farm.
Rau kuv thawj Kev Qhia Kuv yuav qhia yuav ua li cas thiaj tsim tau ib qho qauv:
- Txuas DHT11 qhov ntsuas kub thiab av noo mus rau Arduino Mega 2560
- Program Arduino hauv C los nyeem cov ntaub ntawv sensor
- Muab cov ntaub ntawv ntsuas kub thiab av noo ntawm LCD txuas nrog Arduino
- Qhia Arduino kom xa cov ntaub ntawv ntsuas mus rau Raspberry Pi 3 Model B+
- Sau cov cai hauv Python los tso saib cov ntaub ntawv ntsuas
Vim li cas siv RPi thiab Arduino ua ke?
Kev sib txuas Arduino thiab RPi tuaj yeem tso cai rau muaj peev xwm loj yog tias koj xav tau I/O uas Arduino ua tau zoo ntawm thiab kev sib txuas lus network/ntau yam nyeem/pom uas RPi zoo dua ntawm.
Hauv lwm lo lus, peb yuav siv Arduino rau kev tswj hwm cov haujlwm hnyav thiab siv RPi rau suav cov haujlwm hnyav.
Ruggedized versions ntawm Arduinos muaj nyob ntawm Rugged-Circuits
Kauj Ruam 1: Tau Arduino & RPi Kho Vajtse
Arduino cov khoom siv pib yog npaj tau thiab tso cai rau koj sim nrog ntau hom kev ntsuas thiab khoom siv. Kev yuav cov khoom siv pib ua haujlwm pheej yig dua es tsis xaj ntau qhov sib txawv. Kuv tau muab qee qhov kev koom tes txuas hauv qab no taw tes rau Banggood thiab Amazon Asmeskas.
Arduino Starter Kit (Banggood)
Arduino Starter Kit (Amazon Asmeskas)
Element14 RPi 3 B+ Motherboard (Amazon Asmeskas)
Raspberry Pi 3 B+ Case (Amazon Asmeskas)
32GB Micro SD daim npav (Amazon Asmeskas).
Kauj Ruam 2: Txuas DHT11 & LCD mus rau Arduino
Kauj ruam 3: Program Arduino
#arduino-dht11-lcd2004
#Tus Sau: Vasoo Veerapen
#https://www.instructables.com/member/VasooV/ #Nyeem cov ntaub ntawv los ntawm DHT11 txuas nrog Arduino, nthuav tawm ntawm LCD2004 thiab xa cov ntaub ntawv hla mus rau Raspberry Pi
#suav nrog
#suav nrog
// LCD zaub tau txhais raws li tus lej 0x27 ntawm I2C npav
LiquidCrystal_I2C lcd (0x27, 20, 4);
// DHT11 txuas nrog tus pin 8
dht DHT; #define sensorPin 8
// Raspberry Pi txuas nrog Serial 0
#define serialPi Serial
void teeb tsa () {
lcd.begin (20, 4); // Pib lub interface rau lub vijtsam LCD, thiab qhia qhov ntev (dav thiab qhov siab) ntawm cov zaub lcd.init (); lcd.backlight (); serialPi.begin (9600); // Arduino rau tus saib xyuas txuas}
void voj () {
// Nyeem cov ntaub ntawv sensor
int sensorData = DHT.read11 (sensorPin); ntab kub = DHT.temperature; ntab ntub = DHT.humidity;
// Luam kub
lcd.setCursor (0, 0); lcd.print ("Kub"); lcd.print (kub); lcd.print ("C");
// Sau cov av noo
lcd.setCursor (0, 1); lcd.print ("Vaum"); lcd.print (av noo); lcd.print (" %");
// Xa cov ntsuas kub thiab av noo mus rau Raspberry Pi
serialPi.print ("");
// Tos 10 vib nas this
ncua (10000); }
Kauj Ruam 4: Kev Ua Haujlwm Arduino, LCD & DHT11 Teeb
Kauj Ruam 5: Txuas Raspberry Pi mus rau Arduino
Kauj Ruam 6: RPi Python Code txhawm rau Nyeem USB Port Serial Data
#rpi-arduino-dht11
#Raspberry Pi nyeem cov ntaub ntawv ntsuas kub thiab av noo los ntawm Arduino
ntshuam serial, hlua, sijhawm
#Hauv qhov piv txwv no /dev /ttyUSB0 tau siv
#Qhov no tuaj yeem hloov pauv hauv koj rooj plaub rau/dev/ttyUSB1,/dev/ttyUSB2, thiab lwm yam. Ser = serial. Serial ('/dev/ttyUSB0', 9600)
#Cov kab hauv qab no ua haujlwm zoo li no:
#Yog tias cov ntaub ntawv muaj nyob tam sim no, nyeem kab ntawv, txiav txim siab cov ntaub ntawv UTF8, #… tshem cov kab tom ntej ntawm kab cim #… faib cov ntaub ntawv mus rau qhov kub thiab txias #… tshem tawm qhov pib thiab xaus cov lus qhia () #… luam tawm cov ntawv thaum Tseeb: yog ser.in_waiting> 0: raws = ser.readline () cookedserial = raws li.decode ('utf-8'). Strip ('\ r / n') datasplit = cookedserial.split (',') kub = datasplit [0].strip ('') luam tawm (kub) luam tawm (av noo)
Pom zoo:
Xa Cov Ntaub Ntawv ntawm Wireless Kub thiab Vaum Sensor mus rau Excel: 34 Cov Kauj Ruam
Xa Cov Ntaub Ntawv ntawm Wireless Kub thiab Vaum Sensor mus rau Excel: Peb tab tom siv ntawm no NCD Qhov Kub thiab Vaum qhov ntsuas, tab sis cov kauj ruam nyob sib npaug rau ib qho ntawm cov khoom ncd, yog li yog tias koj muaj lwm yam ncd wireless sensors, muaj kev saib xyuas dawb ib sab. Los ntawm kev nres ntawm cov ntawv no, koj yuav tsum
ESP8266 Nodemcu Kev Ntsuas Kub Siv DHT11 ntawm Lub Vev Xaib Hauv Zos - Tau Chav Kub & Vaum ntawm Koj Tus Kheej: 6 Kauj Ruam
ESP8266 Nodemcu Kev Ntsuas Kub Siv DHT11 ntawm Lub Vev Xaib Hauv Zos | Tau Txais Chav Kub & Vaum ntawm Koj Tus browser: Nyob zoo cov neeg niaj hnub no peb yuav ua kom cov av noo & ntsuas xyuas qhov kub thiab txias siv ESP 8266 NODEMCU & DHT11 kub sensor. Kub thiab av noo yuav tau los ntawm DHT11 Sensor & nws tuaj yeem pom ntawm qhov browser uas lub vev xaib yuav tswj hwm
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 - Saib Xyuas Qhov Kub Kub & Qhov Kub Kub ntawm M5stick-C Nrog DHT11: 6 Cov Kauj Ruam
ESP32 Raws M5Stack M5stick C Huab Cua Saib Nrog DHT11 | Saib Xyuas Qhov Kub thiab Qhov Ntsuas Kub ntawm M5stick-C Nrog DHT11: Nyob zoo cov neeg, hauv cov lus qhia no peb yuav kawm paub yuav ua li cas cuam tshuam DHT11 ntsuas kub nrog m5stick-C (pawg tswj hwm kev txhim kho los ntawm m5stack) thiab tso tawm ntawm cov zaub ntawm m5stick-C. Yog li hauv qhov kev qhia no peb yuav nyeem qhov ntsuas kub, av noo & heat kuv
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: 5 Kauj Ruam
Yuav Ua Li Cas Siv DHT11 Kub Sensor Nrog Arduino thiab Luam Kub Kub thiab Vaum: Lub DHT11 sensor tau siv los ntsuas kub thiab av noo. Lawv yog cov khoom siv hluav taws xob nrov tshaj plaws.Qhov DHT11 cov av noo thiab ntsuas kub ua rau nws yooj yim ntxiv cov av noo thiab ntsuas kub rau koj li DIY cov phiaj xwm hluav taws xob. Nws yog rau
Kub thiab Vaum Cov Ntaub Ntawv Logger Los Ntawm Arduino rau Android Xov Tooj Nrog SD Card Module Ntawm Bluetooth: 5 Kauj Ruam
Kub thiab Vaum Cov Ntaub Ntawv Logger Los Ntawm Arduino rau Android Xov Tooj Nrog SD Card Module Via Bluetooth: Nyob Zoo Txhua Tus, Qhov no yog thawj qhov kev qhia Kuv tau ua, vam tias kuv yuav pab cov neeg tsim khoom raws li kuv tau txais txiaj ntsig nrog nws. Feem ntau peb siv cov ntsuas hauv peb cov phiaj xwm tab sis nrhiav txoj hauv kev los khaws cov ntaub ntawv, khaws nws thiab hloov nws Cov Xov Tooj lossis lwm yam khoom siv tam sim ntawd