Cov txheej txheem:
- Kauj ruam 1: Txuas LCD Screen
- Kauj Ruam 2: LCD Screen - Test Code
- Kauj Ruam 3: Ntxiv Kub & Vaum Sensor
- Kauj Ruam 4: Kub & Vaum Sensor - Kuaj Cov Cai
- Kauj Ruam 5: Teeb Meem Ua Ke
Video: Sensors Lab - Temp: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hauv chav kuaj no koj yuav siv lub vijtsam LCD los tso saib cov av noo thiab ntsuas kub tam sim no rau ib puag ncig.
Kho vajtse koj yuav xav tau:
- Arduino Ib
- LCD Screen
- Potentiometer
- Kub/Vaum ntsuas
- Cov qhob cij
- Hlau/Txuas
Tsev qiv ntawv xav tau:
- Ua kua
- SimpleDHT
Txoj cai ntsuas ntsuas tau muab los ntawm Elegoo cov qauv piv txwv. Koj tuaj yeem nruab ib lub tsev qiv ntawv tsim nyog los ntawm tus tswj lub tsev qiv ntawv lossis rub tawm thiab teeb tsa cov ntaub ntawv.zip nyob hauv Libraries.zip ntawm D2L.
Kauj ruam 1: Txuas LCD Screen
Lub vijtsam LCD yuav xav tau ntxig ncaj qha rau hauv lub khob cij. LCD lub vijtsam pins txuas nrog Arduino raws li kev txiav txim hauv qab no:
- Hauv av
- Fais fab
- Tus Pin 12
- Tus pin 11
- Tus pin 10
- Tus pin 9
- Npliag
- Npliag
- Npliag
- Npliag
- Tus Pin 8
- Hauv av
- Pin 7
- Potentiometer (Txuas rau lub zog thiab hauv av)
- Fais fab
- Hauv av
Kauj Ruam 2: LCD Screen - Test Code
#suav nrog // Tshem tawm qhov nruab nrab ntawm
// pib lub tsev qiv ntawv nrog tus lej ntawm tus lej sib cuam tshuam LiquidCrystal lcd (7, 8, 9, 10, 11, 12); void teeb () {// teeb tsa LCD tus lej ntawm kab thiab kab: lcd.begin (16, 2); // Luam tawm cov lus rau LCD. lcd.print ("Nyob Zoo, Ntiaj Teb!"); } void loop () {// teeb tus cursor rau kab 0, kab 1 // (ceeb toom: kab 1 yog kab thib ob, txij li suav pib nrog 0): lcd.setCursor (0, 1); // luam tus lej thib ob txij li rov pib dua: lcd.print (millis () / 1000); }
Kauj Ruam 3: Ntxiv Kub & Vaum Sensor
Ntxig qhov ntsuas kub thiab av noo rau hauv daim ntawv tais. Koj yuav tsum txuas nws mus rau Arduino siv cov hauv qab no:
- Tus Pin 2
- Lub zog (+5v) kev tsheb nqaj hlau
- Cov tsheb nqaj hlau
Kauj Ruam 4: Kub & Vaum Sensor - Kuaj Cov Cai
//www.elegoo.com
//2016.12.9 #include // for DHT11, // VCC: 5V or 3V // GND: GND // DATA: 2 int pinDHT11 = 2; SimpleDHT11 dht11; teeb tsa tsis muaj dab tsi () {Serial.begin (9600); } void loop () {// pib ua haujlwm… Serial.println ("================================================="); Serial.println ("Qauv DHT11 …"); // nyeem nrog cov ntaub ntawv piv txwv raw. byte kub = 0; byte av noo = 0; byte cov ntaub ntawv [40] = {0}; yog (dht11.read (pinDHT11, & kub, & av noo, cov ntaub ntawv)) {Serial.print ("Nyeem DHT11 ua tsis tau tejyam"); rov qab; } Serial.print ("Qauv RAW Khoom:"); rau (int i = 0; i 0 && ((i + 1) % 4) == 0) {Serial.print (''); }} Serial.println (""); Serial.print ("Qauv OK:"); Serial.print ((int) kub); Serial.print (" *C,"); Serial.print ((int) cov av noo); Serial.println (" %"); // DHT11 tus qauv piv txwv yog 1HZ. ncua (1000); }
Kauj Ruam 5: Teeb Meem Ua Ke
Koj tau muab cov piv txwv piv rau LCD Screen thiab Kub sensor. Koj cov kauj ruam kawg rau kev sim yog ua ke ob qho piv txwv no kom koj qhov ntsuas kub yuav tshwm ntawm LCD Screen. Koj tuaj yeem hloov cov lus kom nws tuaj yeem tshwm ntawm ob kab uas muaj rau lub vijtsam LCD.
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
RC Taug Qab Neeg Hlau Siv Arduino - Kauj Ruam Ib kauj ruam: 3 Kauj Ruam
RC Tracked Robot Siv Arduino - Kauj Ruam Ib Nrab: Hav guys, Kuv rov qab los nrog lwm tus neeg hlau txias chassis los ntawm BangGood. Vam tias koj tau dhau los ntawm peb cov phiaj xwm yav dhau los - Spinel Crux V1 - Tus Cwj Pwm Tswj Tus Neeg Hlau, Spinel Crux L2 - Arduino Xaiv thiab Muab Neeg Hlau nrog Robotic caj npab thiab Badland Braw
Kawm Yuav Ua Li Cas Kos Tus Tswm Ciab - Kauj Ruam Ib Kauj Ruam: 6 Kauj Ruam
Kawm Yuav Ua Li Cas Thiaj Li Tswmciab - Kauj Ruam Ib kauj ruam: Cov tswm ciab no siv sijhawm 10 feeb los kos yog tias koj ua raws kuv cov kauj ruam ua tib zoo
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: 9 Kauj Ruam
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: Cov ntawv qhia no yog qhia koj yuav tsim lub Caj Npab Caj Npab ntawm koj tus kheej li cas