Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
- Kauj Ruam 2: Tsim CAN Npav Npav ntawm Breadboard
- Kauj ruam 3: Arduino Programming
- Kauj ruam 4: Xeem
- Kauj ruam 5: Tshawb nrhiav
- Kauj Ruam 6: (Ntxiv) Tsim CAN Bus Siv UTP
Video: Sparkfun CAN Bus Shield Tutorial: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Tau txais thiab xa xov siv Sparkfun CAN Bus Shield
CAN yog dab tsi?
Lub npav CAN tau tsim los ntawm BOSCH ua tus tswv ntau tus, tshaj tawm xov xwm uas qhia meej txog qhov siab tshaj plaws ntawm 1 megabit per second (bps). Tsis zoo li cov kev sib txuas ib txwm muaj xws li USB lossis Ethernet, CAN tsis xa cov ntaub ntawv loj taw tes-rau-taw tes los ntawm ntawm A mus rau ntawm B raws li kev saib xyuas ntawm tus tswv tsheb loj. Hauv CAN network, ntau cov lus luv luv xws li ntsuas kub lossis RPM tau tshaj tawm rau tag nrho lub network, uas muab cov ntaub ntawv sib xws hauv txhua qhov ntawm qhov system.
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
2 - Sparkfun CAN Bus Shield
2 - Arduino UNO
2 - 120 ohm resistors
1 - Daim ntawv qhia zaub mov
Jumper Hlau
CAN Bus Shield Library Download:
drive.google.com/open?id=1Mnf2PN_fAQFpo1ID…
Advanced (CAN Bus):
DB9 (Poj niam)
RJ45
UTP Kab
RJ45 2-Txoj Kev Splitter
RJ45 Ncaj Txuas
Cov Cuab Yeej:
Ntsia Hlau
RJ45 Crimper
Soldering Hlau
Kauj Ruam 2: Tsim CAN Npav Npav ntawm Breadboard
1. Mount CAN Bus Shield rau ib Arduino txhua
2. Hlau CAN_H thiab CAN_L tus pin ntawm daim ntaub thaiv mus rau lub khob cij
3. Txuas 120-ohm tshem tawm cov neeg tawm tsam hla txhua qhov kawg ntawm CAN_H thiab CAN_L kab
Kauj ruam 3: Arduino Programming
1. Rub tawm thiab teeb tsa CAN Bus Shield Library los ntawm qhov txuas muab saum toj no
Kho 1 Arduino los nyeem CAN cov lus
2. Qhib Arduino IDE
3. Mus rau Cov Piv Txwv Cov Ntaub Ntawv SparkFun CAN-Bus CAN_Read_Demo
4. Xaiv qhov chaw nres nkoj tsim nyog ntawm Thawj Arduino thiab Tshaj Tawm
Kho qhov thib 2 Arduino kom xa CAN lus
5. Qhib Arduino IDE tshiab
6. Mus rau Cov Piv Txwv Cov Ntaub Ntawv SparkFun CAN-Bus CAN_Write_Demo
7. Xaiv qhov chaw nres nkoj tsim nyog ntawm Arduino Thib Ob thiab Upload
Kauj ruam 4: Xeem
/*Ntxiv cov duab piv txwv ua haujlwm*/
Tom qab tso qhov program rau ob Arduinos…
1. Qhib Serial Monitors ntawm Thawj thiab Thib Ob Arduino
2. Teem Tus Nqi Baud rau 9600
3. Txheeb xyuas yog tias Cov Ntaub Ntawv tau txais los ntawm Thawj Arduino
Yog tias tsis tau txais cov ntaub ntawv:
1. Txheeb xyuas seb puas tsim nyog Port thiab Baud Rate rau txhua Arduino
2. Txheeb xyuas qhov sib txuas ntawm kab CAN_H thiab CAN_L
3. Txheeb xyuas cov kev sib txuas ntawm qhov kev txiav tawm cov resistors
Kauj ruam 5: Tshawb nrhiav
Tsim kev cai CAN lus
Kho qhov CAN_Write_Demo Program rau…
- hloov cov lus ID (message.id)
- hloov RTR ntsis (message.header.rtr)
- teev cov ntaub ntawv ntev (message.header.length)
- nkag mus rau koj tus kheej cov ntaub ntawv (message.data [x])
Kho qhov CAN_Read_Demo txhawm rau hloov kho koj li cas koj cov ntaub ntawv
- Luam cov lus ID (message.id)
- Luam cov lus ntev (message.header.length)
- Luam cov lus Cov Ntaub Ntawv (message.data [x])
Kauj Ruam 6: (Ntxiv) Tsim CAN Bus Siv UTP
CAN Bus siv hauv daim duab no yog 8-pin UTP cable.
Muaj ob hom kev sib txuas hauv daim duab no uas yog (DB9 - rau - RJ45) thiab (RJ45 - rau - RJ45)
DB9 rau RJ45
DB9 (pin 1- 8) = wO, O, wG, Bl, wBl, G, wBr, Br
RJ45 (pins 1-8) = wO, O, wG, Bl, wBl, G, wBr, Br
RJ45 - rau - RJ45 (Ncaj Ncaj)
RJ45 (pins 1-8) = wO, O, wG, Bl, wBl, G, wBr, Br
RJ45 (pins 1-8) = wO, O, wG, Bl, wBl, G, wBr, Br
RJ45 - rau - Terminator
RJ45 (pins 1-8) = wO, O, wG, Bl, wBl, G, wBr, Br
Terminator Resistor (wG, wBl)
Cov nodes tuaj yeem txuas nrog CAN Bus raws li koj nyiam thiab tus lej ntawm cov lej siv
Rau kev txuas ob -node, RJ45 Ncaj txuas tau siv nruab nrab ntawm (DB9 - rau - RJ45) Cables
Rau kev sib txuas 3 -node, 2 -Way splitter txuas ua ke nrog cov txuas ncaj kom ua "T" kev sib txuas ntawm txhua (DB9 - rau - RJ45) Cables
Rau 2+ node kev sib txuas (2 lossis ntau dua), 2-Way splitter tau txuas nrog lub txuas ncaj kom ua "T" txuas. Ib (RJ45 - rau - RJ45) Cable tau siv los txuas ob "T" nodes thiab a (DB9 - rau - RJ45) Cable tau siv los txuas "T" node rau CAN Bus Shield. RJ45 - rau - Terminator tau siv ntawm txhua "T" kawg ntawm CAN Bus
Pom zoo:
Tachometer/Scan Gauge Siv Arduino, OBD2, thiab CAN Bus: 8 Kauj Ruam
Tachometer/Scan Gauge Siv Arduino, OBD2, thiab CAN Bus: Txhua Toyota Prius (lossis lwm lub tsheb/tsheb tshwj xeeb) cov tswv yuav paub tias lawv cov dashboards yuav ploj ob peb lub xov tooj! Kuv lub prius tsis muaj cav RPM lossis ntsuas kub. Yog tias koj yog tus txiv neej ua tau zoo, koj yuav xav paub yam xws li sijhawm ua ntej thiab
Hack Koj Lub Tsheb Nrog Wio Terminal thiab CAN Bus: 7 Kauj Ruam
Hack Koj Lub Tsheb Nrog Wio Terminal thiab CAN Bus: Yog tias koj muaj kev nkag siab txog CAN Bus thiab Arduino cov phiaj xwm, thiab xav nyiag koj lub tsheb, tom qab ntawv cov lus qhia no tuaj yeem muab kev daws teeb meem rau koj vim li cas koj thiaj xav nyiag koj lub tsheb, Kuv tsis paub, tab sis qhov no yog qhov txaus nyiam qhov no pr
Lub Caij Nplooj Ntoos Zeeg rau Lub Tsheb Tso Lub Suab Tso Tawm (CAN Bus -> Key1): 6 Cov Kauj Ruam
Cov Kauj Ruam Log Rau Lub Tsheb Tso Lub Suab (CAN Bus -> Key1): Ob peb hnub tom qab yuav tsheb siv, kuv pom tias kuv tsis tuaj yeem ua suab paj nruag los ntawm kuv lub xov tooj los ntawm lub tsheb tso suab. Qhov kev ntxhov siab tshaj plaws yog lub tsheb muaj bluetooth, tab sis tsuas yog tso cai lub suab hu, tsis yog nkauj. Nws kuj tseem muaj Windows Phone USB chaw nres nkoj, tab sis kuv
Actobitty 2 Nrog TB6612FNG SparkFun Tsav Tsav Tsheb, Phau Ntawv Qhia Pib: 3 Kauj Ruam
Actobitty 2 Nrog rau TB6612FNG SparkFun Tsav Tsheb, Pib Qhia: Cov lus qhia no yog rau Actobitty 2 Neeg Hlau Nrog SparkFun ® TB6612FNG Tsav Tsheb
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib: 5 Kauj Ruam
Pom Studio CAN -BUS V2.0 Hacking - Pib Pib: Cov lus qhia no yog txhais rau cov pib uas twb paub lawv txoj kev ncig Arduino. Thawj qhov paub yuav ua li cas mus ib txwm mob thiab siv sijhawm nyob hauv ib qhov haujlwm. Tab sis kom txog thaum koj paub koj txoj hauv kev ib puag ncig koj yuav luag txhua lub sijhawm xav kom koj muaj ib tus neeg los