Cov txheej txheem:
- Kauj Ruam 1: 3EEPROM Txheej Txheem Kho Vajtse
- Kauj Ruam 2: 25AA- / 25LC- SPI EEPROM
- Kauj Ruam 3: 24AA- / 24LC I2C EEPROM
- Kauj Ruam 4: DS2431 1-Wire EEPROM
- Kauj Ruam 5: Xaus
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:31
Yog tias koj tau txais ib qho ntawm Hack a Day's Bus Pirates, koj ua dab tsi nrog nws? Kawm paub txog 1-xaim, I2C, thiab SPI EEPROMs nrog 3EEPROM tshawb xyuas pawg thawj coj (peb hu nws yog THR-EE-PROM). EEPROM yog ib hom nco nti uas khaws cov ntaub ntawv yam tsis muaj lub zog txuas ntxiv. Nws muaj txiaj ntsig zoo rau kev khaws cov ntaub ntawv ruaj khov hauv cov xov tooj cua me me, lossis tuav cov nplooj ntawv kev cai hauv lub vev xaib mini. EEPROMs tuaj nyob rau ntau qhov ntau thiab txheej txheem. 3EEPROM muaj peb yam EEPROM chips: DS2431 (1-Wire), 24AA- (I2C), thiab 25AA- (SPI). Txhua qhov peb tau pom yav dhau los ntawm Hack Ib Hnub, tab sis txhua qhov kev qhia siv qhov sib txawv ntawm Bus Pirate kho vajtse thiab kho vajtse, nws nyuaj rau tus pib ua raws kev siv Tsheb Npav Pirate v2go. DS2431, 24AA-, thiab 25AA- EEPROMs nrog Bus Pirate v2go. Peb kuj tseem tau txais tag nrho cov cav sib tham ua cov ntawv hauv kab ntawv yog li koj yuav tsis nco ib qho lus tshwj xeeb. PCBs yog kwv yees li $ 10, cov khoom siv txog $ 15, xa mus thoob ntiaj teb. Peb yuav tsum npaj pab pawg yuav khoom ntawm 10 PCBs lossis 20 cov khoom siv kom pib. Yog tias koj txaus siab rau Tsheb Npav Pirate, version 3 tab tom los. Kuv tsis tuaj yeem suav nrog qee cov qauv txheej txheem thiab HTML cov lus hauv Cov Lus Qhia, koj tuaj yeem pom thawj daim ntawv tshaj tawm ntawm Cov Ntawv Tsis Txaus Siab blog.
Kauj Ruam 1: 3EEPROM Txheej Txheem Kho Vajtse
Lub hom phiaj ntawm tsab ntawv no yog kawm txog EEPROM thiab peb txoj kev tsheb npav sib xws. Ua ntej, peb saib 3EEPROM PCB, tom qab ntawd peb ua qauv qhia txhua EEPROM siv Bus Bus Pirate universal serial interface tool. Yog tias koj tsis muaj Tsheb Npaum Pirate, koj tseem tuaj yeem ua raws vim qhov kev txiav txim yooj yim ntawm kev ua haujlwm sib xws tseem zoo ib yam txawm koj yuav siv lawv li cas. CircuitFull size schematic [PNG]. Peb tau tsim cov Circuit thiab PCB siv cov dawb software ntawm Cadsoft Eagle. Koj tuaj yeem rub tawm cov txheej txheem thiab PCB los ntawm Bus Pirate SVN archive. Qhov 3EEPROM PCB tuav DS2431 1-Wire EEPROM (IC1), 24AA- I2C EEPROM (IC4), thiab 25AA- SPI EEPROM (IC5). The DS2431 (IC1) thim lub zog tawm ntawm lub npav 1-Hlau, nws tsis muaj tus pin fais fab sab nraud thiab tsis xav tau lub tshuab txiav tawm. IC2 thiab IC3 tsis muaj qhov khoob ntxiv rau 1-Cov khoom siv ntxiv, zoo li lwm DS2431 lossis DS1822 qhov ntsuas kub. C1 (0.01uF) yog nyob ntawm yeem thiab tsuas yog xav tau yog IC2 lossis IC3 muaj neeg nyob nrog lub zog 1-Hlau ntaus ntawv. 1-Hlau xav tau lub zog rub tawm qhov siab, qhov siab tshaj ntawm 2.2K ohms. Lub Tsheb Npav Pirate tus neeg tsav nkoj rub tawm tus neeg tawm tsam yog 10K, tsis muaj zog txaus los ua kom muaj zog DS2431 thaum sau. 3EEPROM tshawb xyuas pawg thawj coj suav nrog 1.8k ohm, 1/8th watt rub-up resistor (R1) ntawm 1-Wire npav kom tsis muaj qhov rub tawm ntxiv resistor xav tau. Qhov 24AA- (IC4) thiab 25AA- (IC5) txhua tus tau txais 0.1uF capacitor los txiav lawv los ntawm cov khoom siv hluav taws xob (C2, C3). Tej zaum koj tsis xav tau cov capacitors hauv qhov yooj yim Circuit Court, peb tshem tawm lawv los ntawm pawg thawj coj hauv kev ua qauv qhia. Lub tsheb npav I2C siv los ntawm 24AA- kuj yuav tsum tau rub tawm cov neeg tawm tsam, tab sis Tsheb Npav Pirate tus tsav tsheb hauv 10K ohm rub tawm cov neeg tawm tsam txaus. Lub Circuit Court tau siv los ntawm VCC thiab GND tus pin ntawm jumper 3. Muaj ob lub VCC tus pin, ib qho yog rau lub zog, lwm qhov yog rau Bus Pirate tus rub-up resistor voltage input pin (Vpullup). PCBWe ua lub Circuit Court thiab PCB siv freeware version ntawm Cadsoft Eagle. Koj tuaj yeem rub tawm cov txheej txheem thiab PCB los ntawm Bus Pirate SVN cov ntawv khaws tseg. Yog tias koj xav tau kev npaj ua haujlwm PCB lossis 3EEPROM cov khoom siv, peb yuav tuaj yeem npaj cov pab pawg yog tias 10 lossis 20 tus neeg txaus siab. Daim ntawv teev npe R1 1800 ohm resistor (1/8th watt) C2, 3 0.1uF capacitor/10volts+JP1-4 0.1 "txiv neej tus pin headerIC1 DS2431 1K 1-wire EEPROM TO-92IC4 ** 24AA014-I/P I2C EEPROM DIP8IC5 ** 25AA010A-I/P SPI EEPROM DIP8ICS4, 5 8 tus pin DIP qhov rau IC5, 6 ** IC4, IC5 tuaj yeem yog qhov loj me, peb txuas rau cov chips me me, peb siv 128bytes thiab 128Kbytes. Kuv tsis suav nrog qee cov qauv thiab HTML cov ntxhuav hauv Kev Qhia Ntawv, koj tuaj yeem pom thawj daim ntawv tshaj tawm ntawm Cov Ntawv Tsis Txaus Siab blog.
Kauj Ruam 2: 25AA- / 25LC- SPI EEPROM
Kev tawm tsam EEPROM txhua qhov zoo li zoo ib yam. Peb yuav sau ob peb tus lej rau tus nti, thiab tom qab ntawd nyeem lawv. Txhua lub cuab yeej muaj cov xwm txheej uas thov ib zaug koj xav sau ntau dua ob peb qhov txiaj ntsig, xws li nplooj ntawv loj thiab txwv kev txwv. Nyeem ntxiv txog cov no hauv kab ntawv rau koj lub cuab yeej tshwj xeeb. Pull-up resistors yog qhov teeb meem feem ntau, txheeb xyuas qhov rub tawm tus pin siv cov ntawv qhia zaub mov 'v' hauv Bus Pirate davhlau ya nyob twg. Chip: 25AA, SPI EEPROM (1Kbyte). Bus: SPI. Pull-up resistors tsuas yog xav tau rau kev sib xyaw ua hluav taws xob cuam tshuam. Power xav tau: 1.8volts rau 5.5volts (AA), 2.5volts rau 5.5volt (LC). References: cov ntaub ntawv, Hack ib hnub ua qauv qhia kom tiav Bus Bus Pirate session log rau qhov kev qhia no. Kuv tsis tuaj yeem suav qee qhov kev teeb tsa thiab HTML cov lus hauv Cov Ntawv Qhia, koj tuaj yeem pom qhov qub ntawm Cov Ntawv Tsis Txaus Siab blog. AA ntu khiav los ntawm 1.8volts txog 5.5volts, thaum 25LC- ntu muaj 2.5volt yam tsawg kawg nkaus yuav tsum tau. C3 (0.1uF) decouples SPI EEPROM los ntawm cov khoom siv hluav taws xob. Kev sau tiv thaiv (WP) thiab tuav tus pin tuaj yeem tswj tau los ntawm microcontroller, tab sis peb xiam lawv los ntawm kev tuav cov pins no siab. SPI cov npav npav, CS, DO, CLK, thiab DI, raug coj mus rau lub taub hau JP4. Teeb Yog tias koj siv Bus Pirate, txuas nws mus rau 3EEPROM lossis 25AA- IC raws li qhia hauv daim duab duab hauv qab no. SPI ib txwm tsis xav tau rub tawm cov neeg tawm tsam. Kev cuam tshuam hauv Lub Tsheb Npav Pirate lub dav hlau nias 'm' rau hom ntawv qhia zaub mov thiab xaiv SPI. Kho kho lub tsev qiv ntawv SPI rau tus pin tus lej ib txwm, siv qhov tsis raug rau txhua lwm yam SPI hom teeb tsa. Pab kom cov khoom siv fais fab (loj 'W') ntawm SPI hom tam sim. Thaum kawg, tau txais daim ntawv tshaj tawm hluav taws xob kom ntseeg tau tias lub zog siv hluav taws xob ua haujlwm ('v'). Pull-up resistors tsis xav tau rau qhov kev qhia no. Yog tias koj xav cuam tshuam nrog EEPROM siv los ntawm 5volts, siv SPI lub tsev qiv ntawv hauv qhib qhib tus lej (HiZ) tus pin hom thiab pab kom rub tawm cov neeg tawm tsam nrog Vpullup tus pin (Vpu) txuas nrog EEPROM lub zog siv. Kauj ruam 1, tua sau-tiv thaiv 'SPI> [0b110] CS ENABLED <<< nti xaiv enabledWRITE: 0x06 <<< lov tes taw sau tiv thaiv commandCS DISABLED <<
Kauj Ruam 3: 24AA- / 24LC I2C EEPROM
Chip: 24AA, I2C EEPROM (1Kbyte). Bus: I2C, rub-resistors xav tau. Power xav tau: 1.8volts rau 5.5volts (24AA), 2.5volts rau 5.5volt (24LC). References: datasheet, Hack Ib hnub ua qauv qhia. Ua tiav Tsheb Npav Pirate ntu kev sib tham rau qhov ua qauv qhia no. Kuv tsis tuaj yeem suav qee qhov kev teeb tsa thiab HTML cov lus hauv Cov Lus Qhia, koj tuaj yeem pom qhov qub ntawm Cov Ntawv Tsis Txaus Siab blog. IC4 yog 24AA- series I2C EEPROM los ntawm Microchip, cov EEPROMs no tuaj rau hauv tuj ntawm qhov ntau thiab tsawg. AA ntu ua haujlwm los ntawm 1.8volts txog 5.5volts, thaum 24LC- ntu muaj 2.5volt yam tsawg kawg nkaus xav tau A 0.1uF capacitor (C2) decouples IC4 los ntawm lub hwj chim. Kev sau tiv thaiv tus pin (WP) tuaj yeem tswj tau los ntawm lub microcontroller, tab sis rau qhov ua piv txwv yooj yim no peb kaw nws nrog kev txuas rau hauv av. I2C npav npav, SDA thiab SCL, raug coj tawm mus rau header JP2. Qhov chaw nyob feem ntau 24AA EEPROMs yog 1010AAAS, nrog plaub qhov kawg txiav txim siab los ntawm chaw nyob pins (A0, A1, A2) thiab nyeem/sau hom xaiv me ntsis (S). Txhua qhov chaw nyob me ntsis yog hauv qhov piv txwv no, yog li sau qhov chaw nyob ntawm EEPROM yog 10100000 (nplooj ntawv nplooj ntawv 6). Teeb Yog tias koj siv Bus Pirate, txuas nws mus rau 3EEPROM lossis 24AA- IC raws li qhia hauv daim duab duab hauv qab no. I2C yog lub npav npav ob tog uas xav tau rub tawm cov neeg tawm tsam ntawm ob tus pin. Koj tuaj yeem siv Bus Pirate's on-board pull-up resistors los ntawm kev txuas Vpullup (Vpu) tus pin rau 3.3volt fais fab mov thiab ua kom lawv nyob hauv lub davhlau ya nyob twg. Kev cuam tshuam kev ceeb toom: Tsis yog txhua I2C EEPROMs ua haujlwm ib yam. Piv txwv li, 24AA01 me me, muaj qhov sib txawv kiag li hais thiab hais kom ua. Nco ntsoov xyuas cov ntawv teev npe rau koj cov nti. Nias 'm' hauv Bus Pirate lub davhlau ya nyob twg thiab xaiv I2C los ntawm cov ntawv qhia zaub mov. Pab kom cov khoom siv hluav taws xob (loj 'W') thiab cov khoom tiv thaiv rub tawm ('p', xaiv 2) ntawm I2C sai. Tau txais daim ntawv tshaj tawm hluav taws xob ('v') kom paub tseeb tias cov khoom siv hluav taws xob tau qhib thiab Vpullup tus pin txuas nrog qhov hluav taws xob. I2C> (0) <<
Kauj Ruam 4: DS2431 1-Wire EEPROM
Chip: DS2431, 1-wire EEPROM (1Kbyte). Bus: 1-Wire, <2.2Kohm pull-up resistor required. Power requirements: 2.8volts to 5.25volts. References: datasheet, Hack ib hnub ua qauv qhia kom tiav Bus Bus Pirate session log rau qhov ua qauv qhia no. Kuv tsis tuaj yeem suav qee qhov kev teeb tsa thiab HTML cov lus hauv Cov Lus Qhia, koj tuaj yeem pom qhov qub ntawm Cov Ntawv Tsis Txaus Siab blog.. 1-Hlau xav tau lub zog rub tawm qhov siab, qhov siab tshaj ntawm 2.2Kohms. Lub Tsheb Npav Pirate tus neeg tsav nkoj rub tawm tus neeg tawm tsam yog 10K, tsis muaj zog txaus los ua kom muaj zog DS2431 thaum sau. Koj yuav tsum siv 2.2Kohm lossis me dua sab nraud tiv thaiv ntawm lub zog thiab 1-Hlau npav npav. Yog tias koj muaj teeb meem sau cov ntaub ntawv, xyuas kom tseeb tias koj qhov rub tawm cov neeg tawm tsam loj txaus. 3EEPROM tshawb xyuas pawg thawj coj suav nrog 1800 ohm rub tawm tus neeg tawm tsam (R1) ntawm 1-Wire tsheb npav yog li tsis xav tau lwm tus tiv thaiv sab nraud. Teeb Yog tias koj siv Bus Pirate, txuas nws mus rau 3EEPROM board lossis DS2431 raws li qhia hauv daim duab duab hauv qab no. DS2431 tsis xav tau tus pin fais fab mov, nws tau siv ntawm 3EEPROM pawg thawj coj los ua lub zog loj rub tawm tus tiv thaiv rau 1-Hlau npav. Kev sib cuam tshuam Xovxwm 'm' hauv Bus Pirate lub davhlau ya nyob twg thiab xaiv 1-Wire hom. Pab kom cov khoom siv hluav taws xob nyob hauv nkoj (loj 'W') thiab tshawb xyuas qhov ntsuas hluav taws xob (v). Kauj Ruam 1, nrhiav lub cuab yeej chaw nyob 1-WIRE> (0xf0) <<< 1-Wire search macro 1WIRE ROM COMMAND: SEARCH (0xF0) Pom cov cuab yeej ntawm: Macro 1WIRE chaw nyob 1.0x2D 0x54 0xD2 0xEF 0x00 0x00 0x00 0x00 0x2B <<< DS2431 cim tshwj xeeb*DS2431 1K EEPROM <<
Kauj Ruam 5: Xaus
Xaus qhov qauv no qhia txog EEPROM nco, thiab qhia txog kev siv Bus Pirate nrog peb yam kev cai: 1-Wire, I2C, thiab SPI. qhov xav tau ntau dua 1-Hlau npav nrog cov khoom siv sib kis tau zoo. Peb tuaj yeem muaj 3EEPROM tshawb xyuas lub rooj tsav xwm PCBs lossis cov khoom siv tsim tawm ntawm Seeed Studio. PCBs yog kwv yees li $ 10, cov khoom siv txog $ 15, xa mus thoob ntiaj teb. Peb yuav tsum npaj pab pawg yuav khoom ntawm 10 PCB lossis 20 cov khoom siv kom pib.
Pom zoo:
Roomba Explorer: 4 Kauj Ruam
Roomba Explorer: Los ntawm kev siv MATLAB thiab iRobot's Create2 Robot, txoj haujlwm no yuav tshawb xyuas thaj tsam sib txawv ntawm qhov chaw tsis paub. Peb tau ua haujlwm ntsuas lub ntsej muag ntawm Neeg Hlau los pab tswj kev phom sij. Los ntawm kev tau txais duab thiab yees duab pub los ntawm Raspberry Pi uas
Keyboard Shortcuts rau Internet Explorer !!: 4 Kauj Ruam
Keyboard Shortcuts rau Internet Explorer !!: Cov lus qhia no yuav qhia koj qee qhov txiaj ntsig keyboard luv rau tshawb hauv internetPlease subscribe to my channelThanks
Yuav Ua Li Cas Thiaj Li Cyber Pirate!: 4 Kauj Ruam
Yuav Ua Li Cas Thiaj Li Cyber Pirate!: Kuv tsis muaj lub luag haujlwm rau ib qho teeb meem kev cai lij choj; P
HD44780 LCD rau I2C Adapter Board rau Bus Pirate: 9 Kauj Ruam
HD44780 LCD rau I2C Adapter Board rau Bus Pirate: Cov cim pheej yig LCDs raws li HD44780 chipset los ntawm ntau qhov ntau thiab tsawg: 2x16, 4x20, thiab lwm yam. 8 ntsis xav tau tag nrho 11 kab ntawv, 4bit xav tau 7 (6 rau kev sau nkaus xwb). Ib txhia
Yuav Ua Li Cas Hloov Koj Li Lus Facebook rau Pirate! (tsis hloov lossis Dl): 3 Cov Kauj Ruam
Yuav Ua Li Cas Hloov Koj Li Lus Facebook rau Pirate! (tsis muaj Kev Hloov lossis Dl): A txias thiab lom zem tshaj plaws ua. Tsis muaj kev hloov pauv lossis rub tawm xav tau. Nws tau tsim los tiag los ntawm pab pawg facebook. (Thov nco tseg: Txhua tus email thiab ntawv xov xwm yuav tuaj hauv pirate ib yam nkaus) (Thov zam txim rau thawj daim duab, nws tsuas yog ib qho kuv tuaj yeem pom ntawm