Cov txheej txheem:
Video: Ntxiv 24LC256 EEPROM rau Arduino Due: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Arduino vim tsis muaj eeprom. Cov lus qhia no ntxiv ib qho thiab tso cai rau koj khaws cov txiaj ntsig hauv cov cim tsis hloov pauv uas yuav muaj sia nyob hloov kho arduino hloov tshiab.
Kauj ruam 1: Breadboarding
Muaj qee cov lus qhia zoo tiag tiag ntawm no: https://www.hobbytronics.co.uk/arduino-external-eepromKuv tsuas yog ua raws lawv xwb. tus pin 1 txog 4 thiab tus pin 7 yog hauv av. tus pin 8 txuas nrog 3.3V cov khoom siv ntawm lub rooj tsav xwm. Qhov daj (tus pin 6) thiab dawb (tus pin 5) xov hlau txuas nrog rau i2c SDA (cov ntaub ntawv) thiab SCL (moos) tus pin ntawm lub rooj tsav xwm (suav 21 thiab 20)).
Kauj ruam 2: Sijhawm Sijhawm
Nov yog qee qhov ntawm cov lej uas kuv siv hauv kuv daim duab. Ua ntej tshaj plaws, suav nrog Cov ntawv xov tooj Lub taub hau nyob ib qhov twg ze rau saum koj daim duab: / * Siv 24LC256 EEPROM kom txuag chaw * / #suav nrog Tom qab ntawd ntxiv qee qhov haujlwm los nyeem thiab sau bytes los ntawm EEPROM (Kuv tsuas yog saib xyuas tus kheej bytes tab sis muaj nplooj ntawv sau qhov tshwj xeeb hauv nti ib yam nkaus). Nco tseg muaj lub ntsiab lus tseem ceeb ntawm 0x50.. qhov no yog qhov chaw nyob ntawm lub nti ntawm lub tsheb npav i2c (koj tuaj yeem txuas ntau dua ib qho i2c yam ntawm lub tsheb npav i2c thiab xaiv qhov twg koj xav tham nrog los ntawm kev hloov chaw nyob). / * Ob txoj haujlwm no pab peb sau mus rau 24LC256 EEPROM nti */ #define EEPROM_ADDR 0x50 tsis muaj EEPROM_write (unsigned int addr, byte data) {int rdata = data; Wire.beginTransmission (EEPROM_ADDR); Wire.write ((int) (addr >> 8)); // MSB Wire.write ((int) (addr & 0xFF)); // LSB Hlau.write (rdata); Wire.endTransmission (); //Serial.print("EEPROM sau: addr: "); //Serial.print(addr); //Serial.print (""); //Serial.println(data); ncua (5); } byte EEPROM_read (unsigned int addr) {byte cov ntaub ntawv = 0xFF; Wire.beginTransmission (EEPROM_ADDR); Wire.write ((int) (addr >> 8)); // MSB Wire.write ((int) (addr & 0xFF)); // LSB Wire.endTransmission (); Wire.requestFrom (EEPROM_ADDR, 1); yog (Wire.available ()) cov ntaub ntawv = Wire.read (); //Serial.print("EEPROM nyeem: addr: "); //Serial.print(addr); //Serial.print (""); //Serial.println(data); ncua (5); xa cov ntaub ntawv; } Koj tuaj yeem tsis pom qhov Serial.print (…) kab yog tias koj xav pom qee qhov kev debug tso tawm. Hauv kev teeb tsa arduinos () ua haujlwm koj pib lub tsev qiv ntawv xaim thiab tuaj yeem nyeem thawj qhov tseem ceeb. Ntawm no kuv nyeem hauv ob bytes (tus chij thiab max_cc), ob lo lus (lean_min thiab lean_max) thiab cov lus ntawm kab lus sd_max [3]: // nyeem qhov tseem ceeb khaws tseg hauv EEPROM Wire.begin (); chij = EEPROM_read (0); max_cc = EEPROM_read (1); lean_min = lo lus (EEPROM_read (3), EEPROM_read (2)); lean_max = lo lus (EEPROM_read (5), EEPROM_read (4)); rau (int j = 0; j <3; j) {sd_max [j] = lo lus (EEPROM_read (7 j*2), EEPROM_read (6 j*2)); } Nov yog qhov me me ntawm cov cai uas sau lawv rau hauv EEPROM: EEPROM_write (0, tus chij); EEPROM_write (1, max_cc); EEPROM_write (2, lowByte (lean_min)); EEPROM_write (3, highByte (lean_min)); EEPROM_write (4, lowByte (lean_max)); EEPROM_write (5, highByte (lean_max)); rau (int j = 0; j <3; j) {EEPROM_write (6 j*2, lowByte (sd_max [j]))); EEPROM_write (7 j*2, highByte (sd_max [j])); } Hais txog nws tiag.
Kauj Ruam 3: Txuas Nws
Hlau nws mus rau qee lub veroboard txhawm rau ntswj rau hauv ib lub thawv thiab cov haujlwm tau ua tiav.
Pom zoo:
Yuav Tsim Li Cas thiab Ntxig Ib Lub Rooj Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: 11 Cov Kauj Ruam
Yuav Tsim Li Cas thiab Ntxig Cov Lus Thiab Ntxiv Kab Ntxiv Thiab/lossis Kab Rau Cov Lus Hauv Microsoft Office Word 2007: Koj puas tau muaj cov ntaub ntawv ntau uas koj ua haujlwm nrog thiab xav rau koj tus kheej … " Kuv yuav ua li cas ntawm cov ntaub ntawv no saib zoo dua thiab nkag siab yooj yim dua? " Yog tias yog, tom qab ntawd lub rooj hauv Microsoft Office Word 2007 yuav yog koj cov lus teb
RaspberryPi 3/4 Extension Board rau Ntxiv Cov Nta Ntxiv rau Raspberry Pi: 15 Cov Kauj Ruam (nrog Duab)
RaspberryPi 3/4 Extension Board rau Ntxiv Nta Ntxiv rau Raspberry Pi: peb paub tias raspberry pi 3/4 tsis tuaj nrog ua hauv ADC (analog to digital converter) thiab RTC (lub sijhawm tiag tiag) yog li kuv tsim PCB uas muaj 16 channel 12bit ADC, RTC, SIM7600 4G module, thawb cov nyees khawm, tso tawm, USB fais fab tawm, 5V fais fab tuag, 12V
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rov Ua Rau Lawv rau 12V.: 3 Cov Kauj Ruam
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rewiring Lawv rau 12V: Kuv txoj kev npaj tau yooj yim. Kuv xav txiav cov phab ntsa uas siv hluav taws xob LED teeb ua ib daim ces rov txuas nws kom khiav tawm 12 volts. Lwm txoj hauv kev yog siv lub zog hloov pauv, tab sis peb txhua tus paub tias lawv tsis muaj txiaj ntsig zoo, puas yog? Txoj cai? Los yog lawv?
Yuav Ua Li Cas Ntxiv Cov Neeg Siv Los Ntawm NUMA rau Koj Luam Ntawm N Siv NumADD Firefox Ntxiv Rau: 4 Cov Kauj Ruam
Yuav Ua Li Cas Ntxiv Cov Neeg Siv Los Ntawm NUMA rau Koj Luam Ntawm N Siv NumADD Firefox Ntxiv Ntxiv: Txhua tus siv ntawm Metanet's N tus neeg siv qib database NUMA yuav paub tias qhov cuam tshuam ntawm qhov cuam tshuam yog rau theej tus neeg siv tsim qib rau koj daim ntawv theej ntawm game. NumADD, tshem tawm qhov xav tau rau kev theej thiab muab tshuaj txhuam thiab ua kom hloov pauv qib ua haujlwm ntawm ib tus nas
Ntxiv Pc Sync Jack rau Nikon Sc-28 Ttl Cable (siv Auto Settings rau lub Koob Yees Duab Flash thiab Ua Rau Lub Koob Yees Duab Tawm !!): 4 Kauj Ruam
Ntxiv Pc Sync Jack rau Nikon Sc-28 Ttl Cable (siv Auto Settings rau ntawm Lub Koob Yees Duab Flash thiab Ua Rau Lub Koob Yees Duab Tawm Tsam !!): Hauv cov lus qhia no kuv yuav qhia koj yuav tshem tawm ib qho ntawm cov khoom ntiag tug 3pin TTL txuas txuas ntawm ib sab ntawm Nikon SC-28 tawm lub koob yees duab TTL cable thiab hloov nws nrog tus qauv PC txuas txuas. qhov no yuav tso cai rau koj siv lub siab nyem, s