Cov txheej txheem:
- Kauj ruam 1: Txuas Tus Sucker
- Kauj Ruam 2: Txuas Pins 3 & 8 rau Lub Hwj Chim (hom Anode) lossis Hauv av (hom Cathode)
- Kauj Ruam 3: Nyem Arduino rau Calibration
- Kauj ruam 4: Tam sim no Cia Peb Pib Calibrating. (Ntu A, Arduino Pin 1, LED Pin 7)
- Kauj Ruam 5: Txuas ntu B (Arduino Pin 2, LED Pin 6)
- Kauj Ruam 6: Txuas ntu C (Arduino Pin 3, LED Pin 4)
- Kauj Ruam 7: Txuas ntu D (Arduino Pin 4, LED Pin 2)
- Kauj Ruam 8: Txuas ntu E (Arduino Pin 5, LED Pin 1)
- Kauj Ruam 9: Txuas ntu F (Arduino Pin 6, LED Pin 9)
- Kauj Ruam 10: Txuas ntu G (Arduino Pin 7, LED Pin 10)
- Kauj Ruam 11: Txuas ntu DC (Arduino Pin 8, LED Pin 5)
- Kauj Ruam 12: Tidy Up thiab Hais, 'kev huv yog nyob tom ntej ntawm Vajtswv' thiab luag ntxhi vim tias koj li 8 zoo li ntxim nyiam li Heck
- Kauj Ruam 13: Ua Tus Txheeb Ze los Qhia Tawm Koj Cov Txuj Ci Txuj Ci
Video: Arduino 7 Segment (5011BS, Common Anode or Cathode) Tutorial: 13 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Peb yuav ua qhov no ua haujlwm! Hom cathode lossis Anode.
Kauj ruam 1: Txuas Tus Sucker
Kauj Ruam 2: Txuas Pins 3 & 8 rau Lub Hwj Chim (hom Anode) lossis Hauv av (hom Cathode)
Siv 330 tus tiv thaiv, 1k ua rau lub teeb ci dhau. Quaj 'lub zog' hauv cov leeg ntawm Clarkson thaum ua tiav cov theem no. (Tseem ceeb)
Pins 3 thiab 8 yog cov pins nruab nrab sab saum toj thiab hauv qab.
Kauj Ruam 3: Nyem Arduino rau Calibration
Rub tawm Xya Segment tsev qiv ntawv thiab nruab rau Arduino IDE.
github.com/DeanIsMe/SevSeg/archive/master….
Txhawm rau nruab nws, qhib Arduino IDE, mus rau Sketch> suav nrog Tsev qiv ntawv> Ntxiv. ZIP Library, tom qab ntawd xaiv SevSeg ZIP cov ntaub ntawv uas koj rub tawm.
Tam sim no peb yuav tsum nyem Arduino los sau tus lej 8 nrog tus lej kom peb tuaj yeem txuas nws tau.
chaws:
#include "SevSeg.h" SevSeg sevseg;
void teeb tsa () {
byte numDigits = 1; // peb tab tom siv cov lej ib zaug tso saib byte digitPins = {}; // tawm qhov khoob rau ib tus lej tso saib byte segmentPins = {1, 2, 3, 4, 5, 6, 7, 8}; // xaiv ib qho 8 tus pin bool resistorsOnSegments = muaj tseeb; byte hardwareConfig = COMMON_ANODE; sevseg.begin (hardwareConfig, numDigits, digitPins, segmentPins, resistorsOnSegments); }
void voj () {
sevseg.setNumber (8, 0); // Luam 8, 0 txhais tau tias Tus lej zauv yog siv, 1 tig nws tawm. sevseg.refreshDisplay (); // Yuav tsum txuas ntxiv ua tus lej}
Kauj ruam 4: Tam sim no Cia Peb Pib Calibrating. (Ntu A, Arduino Pin 1, LED Pin 7)
Tam sim no, peb yuav ntsuas los ntawm A-DC raws li, ib ntawm ib qho.
Saib cov cai no, nws yog tus tsiaj ntawv los ntawm A-DC.
Peb tab tom qhia rau Arduino tias:
pin 1 = A, pin 2 = B, pin 3 = C
pin 8 = DC
Yog li tam sim no, txuas ntu A rau tus pin 1. (tus pin 7 ntawm LED)
byte segmentPins = {1, 2, 3, 4, 5, 6, 7, 8}; // xaiv ib qho 8 tus pin
Kauj Ruam 5: Txuas ntu B (Arduino Pin 2, LED Pin 6)
Kauj Ruam 6: Txuas ntu C (Arduino Pin 3, LED Pin 4)
Kauj Ruam 7: Txuas ntu D (Arduino Pin 4, LED Pin 2)
Kauj Ruam 8: Txuas ntu E (Arduino Pin 5, LED Pin 1)
Kauj Ruam 9: Txuas ntu F (Arduino Pin 6, LED Pin 9)
Kauj Ruam 10: Txuas ntu G (Arduino Pin 7, LED Pin 10)
Kauj Ruam 11: Txuas ntu DC (Arduino Pin 8, LED Pin 5)
Kauj Ruam 12: Tidy Up thiab Hais, 'kev huv yog nyob tom ntej ntawm Vajtswv' thiab luag ntxhi vim tias koj li 8 zoo li ntxim nyiam li Heck
Kauj Ruam 13: Ua Tus Txheeb Ze los Qhia Tawm Koj Cov Txuj Ci Txuj Ci
Luam & muab tshuaj txhuam zoo li nws kub, peb tsuas yog tweaking lub voj loj.
void loop () {rau (int i = 0; i <10; i ++) {sevseg.setNumber (i, 0); sevseg.refreshDisplay (); // Yuav tsum txuas ntxiv ua kom pom tus lej ncua (1000); }}
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
Arduino MAX7219 7-Segment Display Tutorial: 5 Kauj Ruam
Arduino MAX7219 7-Segment Display Tutorial: MAX7219 yog IC uas tau siv los tsav 7-ntu LEDs (txog 8 tus lej), thaiv cov lus qhia (bar qhia), thiab 64 tus LEDs uas yog comon cathodes. Txhawm rau sib txuas lus nrog lub microcontroller, MAX7219 siv SPI kev sib txuas lus. Yog li tsav 64 L
Yuav Ua Li Cas Deduce Polarity of Common Electronics Components: 7 Cov Kauj Ruam
Yuav Ua Li Cas Thiaj Li Tsum Tsis Pom Zoo ntawm Cov Khoom Siv Hluav Taws Xob: Puas tau sim rov siv LED, tsuas yog tsis paub tias sab twg yog qhov zoo lossis tsis zoo? Tsis txhob ntshai ntxiv lawm! Hauv cov lus qhia no, Kuv yuav muab tswv yim rau koj yuav ua li cas thiaj pom qhov sib txawv ntawm cov khoom siv hluav taws xob ib txwm muaj
DIY Mini Bass Synth: Meeblip Anode: 10 Kauj Ruam (nrog Duab)
DIY Mini Bass Synth: Meeblip Anode: Nov yog kuv thawj qhov kev qhia ntawm kev tsim cov khoom plig monosynth: meeblip anode, los ntawm kos. , uas tau ua los muab rau koj
Macro Photography Lub Teeb Tau Siv Cov Teeb Txias Cathode: 9 Cov Kauj Ruam (nrog Duab)
Macro Photography Lub Teeb Pom Kev Siv Lub Teeb Cathode Txias: Thaum tua siv lub tsev pheeb suab teeb pom kev siv lub teeb qis yog qhov muaj txiaj ntsig zoo. CCFL (txias cathode fluorescent teeb) pom hauv LCD cov ntxaij vab tshaus yog qhov zoo rau lub hom phiaj no. CCFL thiab cov teeb pom kev tawg tawg tuaj yeem pom pom hauv lub khoos phis tawj tawg