프로젝트
GitHub에서 보기
sandeepmistry/arduino-CAN
소개
CAN 버스를 사용해 데이터를 송수신하는 Arduino 라이브러리입니다.
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalArduino CAN
An Arduino library for sending and receiving data using CAN bus.
Compatible Hardware
- Microchip MCP2515 based boards/shields
- Espressif ESP32's built-in SJA1000 compatible CAN controller with an external 3.3V CAN transceiver
Microchip MCP2515 wiring
| Microchip MCP2515 | Arduino |
|---|---|
| VCC | 5V |
| GND | GND |
| SCK | SCK |
| SO | MISO |
| SI | MOSI |
| CS | 10 |
| INT | 2 |
CS and INT pins can be changed by using CAN.setPins(cs, irq). INT pin is optional, it is only needed for receive callback mode. If INT pin is used, it must be interrupt capable via attachInterrupt(...).
NOTE: Logic level converters must be used for boards which operate at 3.3V.
Espressif ESP32 wiring
Requires an external 3.3V CAN transceiver, such as a TI SN65HVD230.
| CAN transceiver | ESP32 |
|---|---|
| 3V3 | 3V3 |
| GND | GND |
| CTX | GPIO_5 |
| CRX | GPIO_4 |
CTX and CRX pins can be changed by using CAN.setPins(rx, tx).
Installation
Using the Arduino IDE Library Manager
- Choose
Sketch->Include Library->Manage Libraries... - Type
CANinto the search box. - Click the row to select the library.
- Click the
Installbutton to install the library.
Using Git
cd ~/Documents/Arduino/libraries/
git clone https://github.com/sandeepmistry/arduino-CAN CAN
API
See API.md.
Examples
See examples folder.
For OBD-II examples, checkout the arduino-OBD2 library's examples.
License
This library is licensed under the MIT Licence.
관련 프로젝트 살펴보기
불러오는 중…