Puas muaj kev sib txuas lus tsheb npav Arduino?
Puas muaj kev sib txuas lus tsheb npav Arduino?

Video: Puas muaj kev sib txuas lus tsheb npav Arduino?

Video: Puas muaj kev sib txuas lus tsheb npav Arduino?
Video: zoo nkauj cuag puas tau muaj txiv Tub huas Xyooj MV 2023 2024, Hlis ntuj nqeg
Anonim

Los ntawm Wikipedia, Controller Area Network ( YOG ) tsheb npav yog "tsheb tsheb npav tus qauv tsim los tso cai rau microcontrollers thiab khoom siv sib txuas lus nrog ib leeg nyob rau hauv ib lub tsheb yam tsis muaj lub computer host." Cov khoom siv no ua tau kuj tseem raug xa mus rau hauv cov chaw tswj hluav taws xob (ECUs).

Ib yam li ntawd, koj tuaj yeem nug, kev sib txuas lus puas siv Arduino?

Tswj Cheeb Tsam Network ntawm yooj yim YOG yog tus qauv tsheb npav uas tso cai rau Microcontroller thiab nws cov khoom siv peripheral sib txuas lus tsis xav tau ib lub tswv cuab lossis lub computer. Tsim los ntawm Robert Bosch GmbH, YOG yog raws tu qauv yog lub ntsiab siv nyob rau hauv tsheb rau kev sib txuas lus nruab nrab ntawm ib chav tswj thiab nws cov khoom.

Tsis tas li, tuaj yeem ua raws cai nrog Arduino? Raws li Arduino tsis muaj ib qho inbuilt YOG port, ib YOG module hu ua MCP2515 yog siv. Qhov no YOG module yog interfaced nrog Arduino los ntawm kev siv SPI kev sib txuas lus.

Yuav siv li cas UA raws tu qauv hauv Arduino.

Pin npe Siv
SI SPI master output qhev input lead
SCLK SPI Clock pin
INT MCP2515 cuam tshuam tus pin

Kuj kom paub, tsheb npav tuaj yeem siv Arduino?

Lub Serial YOG - BUS muab koj Arduino los yog lwm yam MCU nrog muaj peev xwm rau kev sib txuas lus CAN Bus , xws li nyiag koj lub tsheb. Qhov no Grove YOG - BUS module yog tswj los ntawm UART, uas txhais tau tias yog tias koj MCU muaj UART interface, qhov serial no CAN BUS muaj nyob.

PUAS YOG IB TUG npav npav?

Lub Controller Area Network ( YOG ) uas tseem hu ua CAN tsheb npav yog cov lus raws tu qauv. Tus arbitration identifier ( ID ) teb rau txhua kis YOG thav duab qhia cov pob ntawv tseem ceeb. Qhov qis dua ID tus nqi me ntsis qhia txog qhov tseem ceeb dua ntawm pob ntawv.

Pom zoo: