Cov txheej txheem:
- Kauj ruam 1: Sib dhos
- Kauj ruam 2: Nta Siv - Neeg rau zaub mov
- Kauj Ruam 3: Siv Circuit
- Kauj ruam 4: Source Code: Master
- Kauj ruam 5: Source Code: Qhev
- Kauj Ruam 6: Txheeb Xyuas: Kho vajtse
- Kauj ruam 7: Saleae Software Installation
- Kauj Ruam 8: Kho Chaw Ib puag ncig rau Peb Kev Xeem
- Kauj Ruam 9: Kho Chaw Ib puag ncig rau Peb Kev Xeem
- Kauj Ruam 10: Txhim Kho Ib puag ncig rau Peb Kev Xeem
- Kauj Ruam 11: Kho Chaw Ib puag ncig rau Peb Kev Xeem
- Kauj Ruam 12: Txhim Kho Ib puag ncig rau Peb Kev Xeem
- Kauj ruam 13: Kev ntes: Txheej txheem cej luam
- Kauj Ruam 14: Kev Ntsuas: Qhov tshwm sim ntawm Kev Tshawb Fawb Kev Ntsuam Xyuas
- Kauj Ruam 15: Kev ntes: Channel 0 thiab Cov Ntaub Ntawv (SDA)
- Kauj Ruam 16: Kev ntes: Channel 1 thiab Clock (SCL)
- Kauj Ruam 17: Capture: Channel 2 thiab Serial (TX0)
- Kauj Ruam 18: Txhim Kho Ib puag ncig rau Peb Kev Xeem
- Kauj Ruam 19: Kev ntes: Oscilloscope thiab Analyzer
- Kauj Ruam 20: Capture: Soj Ntsuam Qhov Ua Tsis Tau (piv txwv ntawm Kev Ua Phem Tsis Ua Haujlwm)
- Kauj ruam 21: Rub tawm Cov Ntaub Ntawv
Video: Qhib Koj Lub Qhov Muag! Logical Analyzer: 21 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Tus kws tshawb fawb logic ua kom yooj yim rau koj pom ntawm lub tsheb ciav hlau, uas yog cov khoom taug kev hauv kab kev sib txuas lus. Yog li, nws qhib koj lub qhov muag txhawm rau txheeb xyuas teeb meem. Vim li cas qhov no tseem ceeb? Nws yog kev txhim kho tau zoo heev thiab cov cuab yeej kuaj pom qhov ua txhaum uas tuaj yeem txuag koj lub sijhawm. Hauv cov vis dis aus niaj hnub no, peb yuav tshuaj xyuas qhov tseem ceeb ntawm kev tshuaj xyuas qhov laj thawj, saib xyuas qee qhov kev cai ntawm kev coj ua thaum siv cov cuab yeej no, thiab ua piv txwv pom tias ua tsis tiav yam tsis muaj kev pab los ntawm tus kws tshuaj xyuas qhov laj thawj.
Hauv cov vis dis aus no, Kuv siv tus nqi pheej yig (ib ncig $ 35) thiab ua qauv zoo, nrog cov duab sib tham thiab software pub dawb.
Kauj ruam 1: Sib dhos
Kauj ruam 2: Nta Siv - Neeg rau zaub mov
• Jumpers rau kev sib txuas
• 2 Arduinos (peb siv 2 Mega Arduinos 2560)
• Kev Tshawb Fawb Kev Ntsuas (peb siv Saleae)
• USB txuas txuas rau Arduino thiab tshuaj ntsuam xyuas.
• Oscilloscope (xaiv tau)
• Protoboard
Kauj Ruam 3: Siv Circuit
Ntawm no peb muaj cov txheej txheem, uas qhia pom kev saib xyuas ntawm peb tus pin: TX0, SDA, thiab SCL. Peb muaj ob tus Arduinos: tus tswv thiab tus qhev.
Kauj ruam 4: Source Code: Master
Hauv Kev Teeb, peb yuav suav nrog lub tsev qiv ntawv rau i2c kev sib txuas lus. Peb nkag mus rau hauv lub network raws li Tus Xib Hwb thiab pib ua ntu 0. Hauv Loop, peb tau thov qhev cov ntaub ntawv bytes rau kev sib txuas lus nrog peb tus lej Arduino 8, raws li peb tau hais hauv qhov piv txwv. Peb luam tawm hauv cov ntawv xov xwm, uas yuav raug tshuaj xyuas nrog cov ntsuas kev xav, cov bytes tau txais.
#include // suav nrog cov ntaub ntawv hauv kab ntawv rau kev sib txuas I2C tsis muaj dab tsi teeb tsa () {Wire.begin (); // Entra na rede como Mestre (endereço é opcional para o mestre) Serial.begin (115200); // inicia a serial 0} void loop () {Wire.requestFrom (8, 6); // requisita 6 bytes de dados do escravo de endereço 8 hos (Wire.available ()) {// enquanto houver bytes para receber… char c = Hlau.read (); // recebe cada byte e armazena como caracter Serial.print (c); // envia o caracter pela serial (na verdade vai para o buffer)} ncua (500); // ua tsaug ntau}
Kauj ruam 5: Source Code: Qhev
Hauv txoj cai qhev no, kuv rov suav nrog lub tsev qiv ntawv rau i2c kev sib txuas lus. Kuv nkag mus rau hauv network ua qhev nrog qhov chaw nyob 8. Peb sau npe qhov kev thov thiab koom nrog nws nrog "thov" ua haujlwm. Koj tsis tas yuav ua dab tsi ntawm lub voj, tsuas yog muab 0.1 ncua sijhawm thib ob.
Thaum kawg, peb muaj kev thov ua haujlwm uas yuav ua tiav thaum qhov kev thov tshwm sim los ntawm Tus Xib Hwb tshwm sim, uas tau sau npe hauv Setup. Peb teb, thaum kawg, nrog cov lus ntawm 6 bytes.
#include // inclui a biblioteca para comunicação I2C void setup () {Wire.begin (8); // entra na rede como escravo com endereço 8 Wire.onRequest (requestEvent); // sau npe los ntawm cov xwm txheej de requisiçao // e koom nrog à função requestEvent} lub voj void () {ncua (100); // não faz nada tsis muaj loops, apenas aguarda 0, 1 segundo} // função que será executada quando ocorrer o evento de requisição pelo mestre // foi registrada como evento tsis muaj teeb meem void requestEvent () {Wire.write ("teste"); // teb com uma mensagem de 6 bytes}
Kauj Ruam 6: Txheeb Xyuas: Kho vajtse
Qauv tus nqi mus txog: 24 MHz
Logic: 5 V txog 5.25 V
Cov qib qis qis 0.8 V
Qib theem pib 2.0 V
Cov tswv yim cuam tshuam txog li 1 Mohm lossis ntau dua
Kauj ruam 7: Saleae Software Installation
Qhov kev zov me nyuam uas tau txais cov ntaub ntawv khaws los ntawm tus kws tshuaj xyuas cov laj thawj thiab txiav txim siab cov khoom tuaj yeem rub tawm ntawm qhov txuas hauv qab no:
Kauj Ruam 8: Kho Chaw Ib puag ncig rau Peb Kev Xeem
Kuv qhia qhov cuam tshuam ntawm no, uas kuv nyiam tshwj xeeb vim tias nws tau huv.
Kauj Ruam 9: Kho Chaw Ib puag ncig rau Peb Kev Xeem
Nov yog qee qhov kev xaiv teeb tsa:
• Los ntawm txhaj rau lub npe channel, peb tuaj yeem hloov nws.
• Peb tuaj yeem txiav txim siab seb ib txoj hauv kev twg yuav ua lub hauv paus rau kev ntes thiab daim ntawv nrhiav pom.
• Los ntawm txhaj thiab tuav tus lej xov tooj, koj tuaj yeem hloov koj txoj haujlwm hauv daim ntawv teev npe.
• Los ntawm kev nyem rau ntawm lub iav, peb tuaj yeem teeb tsa cov vis dis aus pom, nthuav dav …
•… lossis zais cov channel. Peb yuav zais txhua txoj hauv kev uas peb yuav tsis siv.
Kauj Ruam 10: Txhim Kho Ib puag ncig rau Peb Kev Xeem
Nyem rau ntawm qhov xub ntawm lub pob "Pib", muaj cov kev xaiv ntawm Tus Qauv Piv Txwv thiab lub sijhawm teev cia.
Rau qee qhov laj thawj, yog tias software pom tias tus nqi tsis tuaj yeem tswj tau, cov lus yuav raug nthuav tawm thiab txiav tus nqi yuav raug txo kom txog thaum muaj txiaj ntsig zoo.
Kauj Ruam 11: Kho Chaw Ib puag ncig rau Peb Kev Xeem
Peb tseem yuav suav nrog cov txheej txheem tshuaj ntsuam xyuas. Ua ntej nws yog I2C, ua raws cov lus txhais ntawm WIRE lub tsev qiv ntawv, thiab koom nrog cov channel raug. Thaum kawg, peb yuav qhia tus kws tshuaj xyuas rau asynchronous serial. Peb yuav tsum tau ceev faj txhawm rau kho qhov ntsuas kom raug raws li kev sib dhos.
Kauj Ruam 12: Txhim Kho Ib puag ncig rau Peb Kev Xeem
Hauv "Decoded Protocols" tab, peb yuav tsum txheeb xyuas cov txheej txheem tshuaj ntsuam xyuas twg tau qhib. Muaj, cov ntaub ntawv yuav tshwm sim. Hauv tab "Cov lus piav qhia", peb tuaj yeem ntxiv qee qhov txiaj ntsig rau kev pom tau zoo dua. Tsuas yog nyem rau ntawm lub cim "ntxiv ntsuas".
Kauj ruam 13: Kev ntes: Txheej txheem cej luam
Hauv lub vijtsam ntes, qhov program qhia cov ntaub ntawv qhia lub plawv dhia ntawm SDA, SCL, thiab TX0.
Kauj Ruam 14: Kev Ntsuas: Qhov tshwm sim ntawm Kev Tshawb Fawb Kev Ntsuam Xyuas
Ntawm no, peb pom qhov tshwm sim ntawm kev ntes. Hauv "Decoded Protocols" tab, peb muaj:
• Tus neeg rau zaub mov thov rau tus qhev nrog tus lej 8.
• Tus qhev teb, rau tus cim: "t", "e", "s", "t", "e" thiab qhov chaw nyob.
• Txhua tus tau ua raws los ntawm ACK ntsis (lees paub) qhia qhov raug txais tos byte, tshwj tsis yog NACK (Tsis lees paub) qhov chaw cim.
• Tom ntej no, peb pom qhov kev txiav txim siab ntawm TX0 cov lej, qhia txog cov cim tau txais thiab xa mus rau Arduino IDE cov xov tooj cua.
Kauj Ruam 15: Kev ntes: Channel 0 thiab Cov Ntaub Ntawv (SDA)
Hauv daim duab no, peb muaj lub plawv dhia ntawm SDA kab. Nco ntsoov tias txhua qhov kis tau tuaj yeem pom.
Kauj Ruam 16: Kev ntes: Channel 1 thiab Clock (SCL)
Tam sim no, peb nyob ntawm no txoj kev tsheb nqaj hlau ntawm kab SCL. Koj tuaj yeem tshawb xyuas cov ncauj lus kom ntxaws los ntawm kev tso tus nas hla lub teeb liab, zoo li koj pom hauv daim duab. Peb tuaj yeem pom tias lub moos zaus nyob ntawm 100 kHz.
Kauj Ruam 17: Capture: Channel 2 thiab Serial (TX0)
Raws li rau txoj kev tsheb nqaj hlau ntawm kab TX0, peb tuaj yeem pom Pib me ntsis thiab cov ntsiab lus ntawm txhua qhov me ntsis. Peb muaj byte sawv cev rau tus ua cim "e."
Kauj Ruam 18: Txhim Kho Ib puag ncig rau Peb Kev Xeem
Ntawm no peb muaj ntau txoj kev xaiv los nyeem cov ntaub ntawv.
Kauj Ruam 19: Kev ntes: Oscilloscope thiab Analyzer
Saib ntawm no ntawm qhov screen kuv ntes los ntawm kuv oscilloscope. Lub logic analyzer teeb liab sawv cev tsuas yog ntsuas siab thiab qis, tab sis nws tsis sawv cev rau lub teeb liab zoo. Qhov no tuaj yeem pom zoo tshaj plaws ntawm oscilloscope.
Kauj Ruam 20: Capture: Soj Ntsuam Qhov Ua Tsis Tau (piv txwv ntawm Kev Ua Phem Tsis Ua Haujlwm)
Tam sim no, Kuv yuav qhia qhov piv txwv ntawm kev ua tsis tiav, uas tau tshwm sim rau kuv. Kuv tau nrog GPRS tus qauv, hom siv hauv xov tooj ntawm tes, daim npav SIM, sim txuas rau ESP32. Tab sis nws tsuas yog tsis txuas. Tom qab ntawd kuv tau tshuaj xyuas lub zog hluav taws xob, txuas xov, thiab hloov lub rooj tsavxwm. Kuv tau ua txhua yam, tab sis tsis muaj dab tsi kho nws. Kuv txiav txim siab muab tso rau hauv kev txheeb xyuas qhov tseeb: Kuv pom tias ESP teeb liab ntawm UART 115200 pib tsis sib xws. Ntawd yog, ESP32 tau ua si dab tsi yuav tsum yog 115, 200 ntawm qhov sib txawv nrawm dua qhov no.
Qhov ua yuam kev no, uas tau txheeb xyuas los ntawm tus neeg cais tawm, tau tshwm nrog X hauv liab. Hauv kuv qhov kev nkag siab, txoj haujlwm hais tias lub ntsiab lus uas muaj qhov me ntsis yog ib nrab ntawm cov neeg tsiv mus nyob rau lub sijhawm. Raws li qhov kev hloov pauv no nce ntxiv, tej zaum yuav muaj lub sijhawm thaum txhua yam tsis sib xws, yog li cov ntaub ntawv tsis mus txog lwm sab. Feem ntau nws tuaj txog, tab sis SIM800 nkag siab thiab yog tias nws tsis yog qhov tseeb, cov ntaub ntawv tsis mus txog lwm qhov kawg.
Kuv tsis paub tias qhov no yog qee yam uas tshwm sim ntau zaus lossis tsis yog, tab sis nws tau tshwm sim rau kuv, thiab yog li kuv txiav txim siab hais txog cov ncauj lus no ntawm no. Yog li kuv tau ua dab tsi? Kuv qeeb. Yog tias koj tso 9, 600, 19, 200, mus txog 38, 400, nws ua haujlwm, uas tsis tshwm sim nrog 115, 200.
Kauj ruam 21: Rub tawm Cov Ntaub Ntawv
INO
Pom zoo:
Xus Pumpkin Nrog Tsiv Tsiaj Animatronic Qhov Muag - Lub taub dag no tuaj yeem dov nws lub qhov muag!: 10 Kauj Ruam (nrog Duab)
Xus Pumpkin Nrog Tsiv Tsiaj Animatronic Qhov Muag | Lub Taub Hau No Tuaj Yob Nws Lub Qhov Muag!: Hauv Phau Ntawv Qhia no, koj yuav kawm paub yuav ua li cas taub dag Xus uas ua rau txhua tus ntshai thaum nws lub qhov muag txav mus. Kho lub ntsuas hluav taws xob ultrasonic ntsuas qhov nrug mus rau tus nqi raug (kauj ruam 9), thiab koj lub taub dag yuav ua rau txhua tus neeg uas tsis kam noj tswm ciab
Eyeballing Koj Cov Ntawv Muag Qhov Muag: qhov BME60B Project: 9 Kauj Ruam
Eyeballing Koj Daim Ntawv Pom Qhov Muag: BME60B Project: Los Ntawm: Hannah Silos, Sang Hee Kim, Thomas Vazquez, Patrick Viste Raws li Michigan Technology University, tus diopter yog ib qho
Covid-19 Daim npog qhov ncauj uas qw ntawm koj yog tias koj kov koj lub ntsej muag: 4 kauj ruam
Covid-19 Daim npog qhov ncauj uas qw ntawm koj yog tias koj kov koj lub ntsej muag: Tsis tuaj yeem nres kov koj lub ntsej muag? Khaws cov khoom siv hluav taws xob no mus rau lub npog ntsej muag uas koj muaj thiab koj yuav nco ntsoov tas li tsis txhob ua qhov ntawd
Ntsej Muag Hloov Qhov Muag Qhov Muag - Ua Dab Tsi: 14 Kauj Ruam (nrog Duab)
Lub ntsej muag hloov qhov ntsej muag - Ua Dab Tsi: Koj ua dab tsi thaum koj tsis tuaj yeem txiav txim siab yam koj xav ua rau Xus? Ua txhua yam. Lub npog ntsej muag yog suav nrog daim npog 3D luam tawm dawb, lub paj yeeb raspberry, lub projector me me thiab lub roj teeb. Nws muaj peev xwm kwv yees txhua yam thiab txhua yam
Tsis Siv Neeg Qhov Muag Qhov Muag Qhib: 11 Kauj Ruam
Tsis Siv Neeg Qhov Muag Tsis Pom Qhov Muag: http: //contraptionmaker.info Peb nyob hauv 150 xyoo qub tsev ua liaj ua teb nrog lub qhov rais qub. Txawm hais tias muaj rwb thaiv tsev thiab ib sab tshiab, nws zoo li nyob hauv lub lauj kaub, thaum lub caij ntuj no. Txhawm rau tiv thaiv qhov teeb meem no peb teeb tsa yas hla lub qhov rais los sim thiab