Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Schematic
- Kauj ruam 2: SD Module
- Kauj Ruam 3: Txuas Tus Hais Lus
- Kauj Ruam 4: Txuas UNO Power & Upload Code
- Kauj ruam 5:
Video: Arduino I²C ™ EEPROM BYTEBANGER: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Tsis ntev los no kuv dhau los ua kev txaus siab nrog I²C EEProms tom qab khaws qee qhov los ntawm lub TV qub qub tom qab kuv tau muab tshem tawm.
Kuv scoured internet sim nrhiav cov ntaub ntawv ntau ntxiv txog lawv- xws li Datasheets, & Tutorials ntawm yuav ua li cas cov khoom no ua haujlwm thiab tuaj yeem siv tau. Kuj ceeb tias, cov ntaub ntawv tau tawg thiab qee qhov tsis txaus … cov ntaub ntawv tau yooj yim pom, thiab muaj qee qhov kev qhia (suav nrog cov vis dis aus) uas qhia qee txoj hauv kev yooj yim rau nkag mus rau eeproms kev ua haujlwm. Kuv tseem tsis txaus siab rau qhov kuv xav ua, yog li kuv txiav txim siab teeb tsa kuv lub thawv ntim khoom thiab sau kuv tus lej, nrog rau ob peb lub tsev qiv ntawv Arduino… thiab I²C ™ EEPROM BYTEBANGER yug!
Cov kev qhia qhia kuv pom tsis muaj qee yam uas kuv xav ua, xws li nyeem thiab sau cov ntaub ntawv los ntawm thiab rau eeprom ntau dua li ib byte ib zaug. Kuv kuj xav kom muaj qhov kev xaiv pov tseg cov ntaub ntawv eeprom mus rau daim npav SD, ntxiv rau thauj cov ntaub ntawv CSV los ntawm daim npav SD thiab rov ua haujlwm eeprom.
Ntxiv qee cov ntaub ntawv tswj hwm lub luag haujlwm thiab tswj kev teeb tsa rau txoj cai tiag tiag sib npaug qhov kuv ntseeg tias yog daim ntawv thov Arduino zoo heev uas koj yuav txaus siab! Kuj ceeb tias, cov khoom siv uas koj xav tau muaj tsawg… sau qhov chaws yog ib qho nyuaj… uas yog xov xwm zoo rau koj txij li uas tau muab rau ntawm no rau koj rub tawm.
Kuv xav kom ntseeg tau tias kuv tuaj yeem ua txhua yam ntawm no siv Arduino UNO vim tias tseem zoo li yog tus tswj hwm micro nrov heev, thiab kuv xav yog "yog nws ua haujlwm ntawm UNO, tom qab ntawd nws yuav tsum ua haujlwm ntawm txhua yam" uas yog tej zaum muaj tseeb los ntawm kev hloov pauv cov cai me ntsis rau koj tus tswj hwm tshwj xeeb.
Khoom siv
Koj yuav xav tau:
ib qho Arduino UNO R3 nrog USB cable tsawg kawg 1 (thiab txog 8) I²C EEPromsan SD Card modulea hais lus lossis piezo buzzer (xaiv tau) lub khob cij txuas
Kauj ruam 1: Schematic
Siv cov txheej txheem Fritzing saum toj no thiab cov duab los ua cov lus qhia los nqes koj tus eeprom (s), SD Module, thiab xaiv tus hais lus.
Kuv pom nws yog qhov zoo tshaj los pib nrog eeproms.
Muab lawv tso rau ntawm daim ntawv qhia zaub mov raws li qhia, them sai sai rau qhov sib nrug ntawm eeproms. Check cov ntawv teev npe rau koj qhov tshwj xeeb eeprom tab sis kuv tau pom tias feem ntau ntawm I²C PDIP8 eeproms muaj tib tus pinout:
Pins 1-3 yog Chaw Nyob rau eeprom. Pin 4 txuas nrog hauv av. Pin 5 yog SDA (cov ntaub ntawv) uas txuas rau UNO SDA tus pinPin 6 yog SCL (moos) uas txuas rau UNO SCL pinPin 7 yog WP (Sau Tiv Thaiv) uas txuas nrog rau groundPin 8 yog VCC txuas nrog +5v
Kuv pom nws yooj yim los pib los ntawm kev ntxiv VCC thiab cov xov hlau hauv av rau txhua tus eeprom ua ntej. (yog tias koj tsuas yog siv ib qho eeprom qhov no yooj yim heev!)
Tom ntej no xaim SDA kab thiab SCL kab mus rau I²C npav.
Txij li thaum peb tuaj yeem hais txog 8 eeproms ntawm I²C npav peb yuav khi txhua txoj kab SDA ua ke thiab ib yam li nrog SCL kab. Yog tias koj pom hauv daim duab, Kuv tau siv txoj kab hluav taws xob ntxiv raws li I²C npav. Yog tias koj tsis muaj kev tsheb nqaj hlau ntxiv, koj tuaj yeem ua raws Fritzing schematic.
Tam sim no khi tag nrho WP (tus pin7) rau hauv av. Peb xav kom muaj peev xwm sau ntawv mus rau eeprom tom qab tag nrho…
Tam sim no peb yuav txuas tus SD Module…
Kauj ruam 2: SD Module
Koj li SD Module tej zaum yuav txawv me ntsis ntawm qhov kuv tau siv, tab sis lawv txhua tus yeej zoo ib yam. (Koj tseem tuaj yeem siv lub micro SD daim npav adapter los ntawm nws tus kheej … tab sis qhov ntawd yog phiaj xwm yav tom ntej)
Saib cov pins ntawm SD Module ntawm sab laug mus rau sab xis lawv yog:
CS- Chip SelectSCK- Serial ClockMOSI- Master Out/ Slave InMISO- Master In/ Slave OutVCC- +5vGROUND3.3 (tsis siv)
Txuas CS rau UNO tus pin 8 Txuas SCK rau UNO tus pin 13 Txuas MOSI rau UNO tus pin 11 Txuas MISO rau UNO tus pin 12
Kauj Ruam 3: Txuas Tus Hais Lus
Tus Hais Lus lossis Piezo buzzer yog qhov kev xaiv ua tiav.
Txuas Tus Hais Lus rau hauv av thiab UNO tus pin 7.
Txoj cai siv qee lub suab nrov, tab sis tsis tseem ceeb rau kev ua haujlwm. (qhov tseeb qee zaum kuv tshem tus neeg hais lus thaum kuv tsis xav hnov lub suab. Koj tuaj yeem teeb tsa hloov ib yam nkaus.)
Kauj Ruam 4: Txuas UNO Power & Upload Code
Txuas hauv av thiab +5v los ntawm UNO rau koj lub khob cij fais fab.
Tsis txhob hnov qab txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau ua kom muaj txiaj ntsig.
Tam sim no tsuas yog ntsaws koj UNO rau hauv koj lub computer thiab xa cov chaws!
I²C EEPROM BYTEBANGER tus lej yog qhov dav heev thiab kuv yuav ua cov vis dis aus qhia txhua yam ntawm cov yam ntxwv, tab sis nws kuj tseem muaj qhov zoo piav qhia nrog cov lus pom.
Kuv zoo siab tos txais koj los rau npe rau kuv tus YouTube Channel uas koj yuav pom sai sai no cov vis dis aus qhia, nrog rau ntau cov phiaj xwm yuav los.
Catch-ya-tom qab-bye!
~ TSIM
Pom zoo:
Yuav Ua Li Cas Thiaj Tsav Tsheb LCD Nrog I²C Interface: 12 Cov Kauj Ruam
Yuav Ua Li Cas Thiaj Li Tsav Tsheb LCD Nrog I²C Interface: Liquid Crystal Displays (LCD) tau siv dav rau kev lag luam thiab kev lag luam vim tias lawv lub ntsej muag zoo, tus nqi qis thiab, kev siv hluav taws xob tsawg. Cov khoom no ua rau LCD daws teeb meem rau cov cuab yeej siv roj teeb
Nyeem thiab Sau Cov Ntaub Ntawv rau Sab Nraud EEPROM Siv Arduino: 5 Kauj Ruam
Kev Nyeem Ntawv thiab Sau Cov Ntaub Ntawv rau Sab Nraud EEPROM Siv Arduino: EEPROM sawv rau Hluav Taws Xob Erasable Programmable Read-Only Memory.EEPROM yog qhov tseem ceeb thiab muaj txiaj ntsig zoo vim nws yog daim ntawv tsis hloov pauv ntawm kev nco. Qhov no txhais tau tias txawm tias thaum lub rooj tsavxwm raug tshem tawm, EEPROM nti tseem khaws cov haujlwm uas
Koj Arduino's Inbuilt EEPROM: 6 Cov Kauj Ruam
Koj Arduino's Inbuilt EEPROM: Hauv kab lus no peb yuav tshuaj xyuas EEPROM sab hauv hauv peb pawg Arduino. Dab tsi yog EEPROM qee tus ntawm koj yuav hais? EEPROM yog Electrically Erasable Programmable Read-Only Memory. Nws yog daim ntawv uas tsis hloov pauv uas tuaj yeem nco tau
Arduino EEPROM Chaw Pib Pib: 5 Cov Kauj Ruam
Arduino EEPROM Chaw Pib Pib Ua Haujlwm: Nyob Zoo Txhua Tus, Txhua Arduino muaj lub cim xeeb me me hu ua EEPROM. Koj tuaj yeem siv qhov no los khaws cov chaw rau koj txoj haujlwm uas qhov kev xaiv raug xaiv yuav raug khaws cia ntawm lub zog mus thiab lawv yuav nyob rau lwm lub sijhawm koj ua lub zog Arduino. Kuv muaj ib
Dot² - Kev Sib Tham Sib Tham Rooj: 12 Cov Kauj Ruam (nrog Duab)
Dot² - Kev Sib Tham Sib Tham Rooj: Thaum kuv xyaum ua haujlwm, Kuv tau tsim cov lus sib tham uas koj tuaj yeem khiav cov duab, qee qhov txaus nyiam LED Teeb thiab yog, Ua si tsev kawm ntawv qub ua si !! Kuv tau txais kev tshoov siab los tsim lub rooj kas fes no los ntawm crt4041's Music Visualiser Table yog tswj