Skip to main content

Questions tagged [can-bus]

CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other

Filter by
Sorted by
Tagged with
-1 votes
0 answers
20 views

Stuck connecting Arduino Uno with MCP2515 and SD card reader [closed]

The MCP2515 uses the same digital pins (11,12, and 13) as the SD. How can I share them between the modules ? I am using this to read the data from the OBD2 and display it on the LCD screen (so far no ...
LiiTo Olivera's user avatar
1 vote
2 answers
117 views

Create a system of hot swap firmware update on Arduino Nano?

Is it allowed by Arduino Nano architecture, to develop a Sketch, divided into two segments: The one, that accepts through a CAN-bus a the new version of the firmware itself and writes it into the ...
Andrew's Quest's user avatar
0 votes
1 answer
75 views

Creating firmware redundancy on Arduino Nano

Is there an established system, that, if a new version of the application is uploaded to Flash, switches to it automatically, but keeps the old one for the cases if, due to some problems, we need to ...
Andrew's Quest's user avatar
1 vote
0 answers
23 views

Sparkfun canbus shield with LSM6DS33 dual SPI problem

Hello fellow arduino users! I have a question regarding using the Sparkfun Canbus shield in conjunction with the LSM6DS33 sensor on a dual SPI configuration. I have managed to get theese two to ...
Paul Boutsiadis's user avatar
1 vote
0 answers
409 views

ESP32 - TWAI Timing Problems (cant receive messages below 5ms period)

I am currently trying to read an existing canbus (Car) with my ESP32 Rev3. I got it to work fine with an external MCP2515 shield using a default library. But when i connect an transceiver and trying ...
C.E.'s user avatar
  • 119
-2 votes
1 answer
528 views

VP230 CAN Bus Transceiver

How does one read can packets from a VP230 Can Bus transceiver? I also have a MCP2515 which I've gotten to work, but the VP230 is a lot smaller. I haven't been able to find any information about ...
Gregor Gregoric's user avatar
1 vote
1 answer
172 views

Communicate with Sparkfun CAN Bus Shied [closed]

i have a Arduino Mega 2560 R3 and a Sparkfun CAN Bus Shied. Im using the SparkFun_CAN-Bus_Arduino_Library-master. I want to communicate over SPI (they have diffrent SPI pins), so i had to change it in ...
Pablo's user avatar
  • 19
1 vote
2 answers
913 views

Can an MCP2515 CANBUS controller be used for two-way communication?

I tried searching code for an MCP2515 with Arduino on Arduino Forums, Instructables, Electronics Hub, YouTube, etc. All of them showed code for a transmitter node and a receiver node, sensors on one ...
spiders.here's user avatar
3 votes
2 answers
7k views

What are the correct pins for TWAI (CAN) on ESP32?

compared to the microchip's PICs: pic16f's does not have an onboard CAN peripheral. so you need an SPI - CAN controller (like MCP2515). some PIC18f's have an onboard CAN controller, and only need a ...
Fernando Ernesto's user avatar
2 votes
1 answer
588 views

seeeduino can-bus shield v2: can't read can bus and write on SD card

I'm using a seeeduino V4.0 and a CAN-BUS shield v2.0 with industrial grade SD card. I'm using the default library given by the wiki of seeed. I've simulate a can bus with two mcp2515. I can read it ...
Thanatheos's user avatar
2 votes
0 answers
241 views

CAN bus communication and LCD updation

I am trying to communicate arduino uno with CAN bus using MCP2515 shield. Data sending and receiving both things are done. Whatever data received is displayed on LCD. CAN bus receive is done using ...
dev_elec's user avatar
0 votes
1 answer
540 views

SPI transactions in Arduino

I have a task where I should do SPI transactions in interrupt mode. Means I have to handle data in IRQ handler (both for tx and rx bytes). How should I approach? I have a arduino board (2560) and a ...
ProPlayerMaxUltra's user avatar
1 vote
0 answers
399 views

CAN Bus Shield Initialization Failed

The Problem I've been working on a project that requires the use of a CAN Bus Shield v2 on an Arduino. For most of the time it has worked great, completely as intended. But recently, I was trying to ...
Martin Eldredge's user avatar
1 vote
0 answers
134 views

Car freaks out on CANBUS shield connection

So, I'm trying to connect to my car's CAN-BUS (via the OBD2). I initially ordered a cheep shield then an even cheaper module to provide connection between my uno and the car. Using the module I was ...
Иво Недев's user avatar
1 vote
0 answers
533 views

STM32duino Can bus library

I couldn't find any library for can bus for STM32duino (Maple Mini) on arduino or even on STMcubeIDE I found one library on github but it doesn't compile it has a lot of error (its a fork of the ...
Jwdsoft's user avatar
  • 111
1 vote
1 answer
559 views

How to display CAN BUS information on EPS32 web server?

I try to display the transmitted information from CAN bus on ESP32 web server. I saved the CAN.read() in a buffer receivedChars[i] and try to display the data by client.println(receivedChars[i]);}. ...
noah's user avatar
  • 21
1 vote
1 answer
261 views

How can I display text on OLED?

I'm trying to print the information, which is received from the other ESP32 by CAN transceiver, on an OLED. The CAN bus is working perfectly, as the 'HELLO WORLD' is already be received. But I can't ...
noah's user avatar
  • 11
0 votes
1 answer
215 views

What would cause a delay when using serial between the Arduino IDE & external clients?

I have been working on a problem for a couple of days that I can't figure out. I am using a Teensy3.6 with Arduino IDE to build a CAN Bus monitor for a car. For those familiar, I am trying to save ...
Sam H.'s user avatar
  • 3
1 vote
2 answers
4k views

Simple ESP32 MCP2515 CAN code to VP230

I have a working code that uses MCP2515 CAN module. Wanted to minimize the size of required modules, so I went with VP230 CAN transceiver and I'm having trouble relaying the same data through ...
multifrag's user avatar
1 vote
0 answers
94 views

Communication between Arduino and Can Bus

Function mcp2515_get_message appears the following instruction: uint32_t i1 = (uint32_t) spi_putc(0xff), i2 = (uint32_t) spi_putc(0xff), i3 = (uint32_t) spi_putc(0xff), ...
Gert Backhaus's user avatar
2 votes
2 answers
400 views

What is "tCAN" in codes of CAN bus?

I'm new to Arduino and CAN bus. I'm studying some code examples which contain "tCAN message". My guess it defines a class for of CAN messages. I did a lot of search but found no information on it ...
Spring's user avatar
  • 23
1 vote
0 answers
2k views

CAN bus libraries for STM32F103 in Arduino IDE

I need to implement CAN communication between two STM32F103 microcontroller boards. I am finding it difficult to get libraries for the same. Can anyone please suggest where I can find working CAN bus ...
Jackie's user avatar
  • 51
2 votes
0 answers
653 views

Seeed CAN Shield - Not receiving extended CAN-Message

I want to receive an extended CAN-Message. I send a extended CAN-Message, but nothing happens. Maybe somebody have an idea what the problem is.. It works with a standard CAN-Message. Thanks in ...
user avatar
1 vote
1 answer
751 views

Sparkfun CAN Shield BMW OBD2 reading

I bought the CAN-Shield from Sparkfun https://www.sparkfun.com/products/13262 and I also got the Uno from Sparkfun just to be sure everything works fine. Some info about my car: BMW E91 2006 OBD2 is ...
Kasti96's user avatar
  • 19
1 vote
0 answers
2k views

5V MCP2515 to 3.3V Teensy. How to reduce the MISO voltage

So to try and speed up my project, I have moved from using two UNO's to a UNO on the receive side, and teensy 3.6 on the sender side. However, no dice. The UNO doesn't receive any data or even try to ...
Ross Hanna's user avatar
0 votes
2 answers
527 views

What could cause data to be printed correctly, then incorrectly and then repeated? CAN bus / general transmission

I am attempting to send data from an MPU6050 connected to an arduino uno to another uno via CAN bus, however i don't think this is a CAN bus specific issue. In short, i am sending two packets of 8 ...
Ross Hanna's user avatar
3 votes
1 answer
731 views

Change operational mode of CAN transceiver

I have two MCP2515 stand-alone CAN controllers with SPI interface, two TJA1042 CAN transceivers and two Arduino Uno boards. As you may know TJA1042 have two operational modes: Sleep mode Normal mode. ...
mtp's user avatar
  • 31
1 vote
1 answer
130 views

Powering Arduino Uno, CAN Crocodile and NeoPixels from Car

I have purchased a cigarette adapter that gives me 2 USB ports, however this gives me 5v and up to 2.4A. Thats ok for powering the Arduino Uno, I need 12/24v to power the CAN crocodile. I also want ...
SPlatten's user avatar
  • 113
-1 votes
1 answer
582 views

MCP2515 CAN bus with Arduino

I'm using MCP2515 CAN controller and TJA1050 transceiver. I want to send some square waves to TJA1050 with digital write and delay instruction of Arduino. How can I do that? I also read the MCP2515's ...
mtp's user avatar
  • 1
0 votes
1 answer
119 views

How do I pull chip select pin up and down, when I have CAN shield and Newhaven Display 4.3CTP-SHIELD-N share the same chip select pin(10)?

I am currently working on an Arduino project, which must be able to listen to the data going through CAN bus and display it on the Touchscreen LCD Newhaven Display 4.3CTP-SHIELD-N. Problem is that ...
Henrikas's user avatar
0 votes
1 answer
386 views

Can Bus to receive and transmit on the same mcu

So I've been working on a project over the last few month using homemade boards on a CAN bus. It's working well when using a board as a sender and another one as receiver. I now have 3 boards and on ...
Undeadguy's user avatar
1 vote
0 answers
254 views

Slave Select on Analog pin for Can Bus

I have recently made a shield for an arduino mega2560 with among others sensors, a CAN interface (MCP2515 and ISO1050). The purpose is to create a CAN network with several arduino uno and one Mega. ...
Undeadguy's user avatar
0 votes
1 answer
937 views

Arduino-compatible micro-controller with both I2C and CAN

I am looking for a controller that works with Arduino (i.e. there is official or third-party support for the controller in the Arduino IDE and core libs) and has both built-in CAN and I2C buses. I was ...
eudoxos's user avatar
  • 169
2 votes
1 answer
2k views

How does DDRD |= _BV(PD2) differ from digitalWrite(2,HIGH)?

I'm attempting to copycat the work of Louis Frigon's Toyota Aux Enabler. I have (with a lot of help on this site) managed to begin capturing and understanding messages on the AVC-LAN bus, but I can't ...
Bo Thompson's user avatar
1 vote
1 answer
2k views

bit_is_clear(ACSR, ACO) Instead of digital_read(1)==LOW

I am attempting to create a program for the atmega328P which will enable the aux input of a Toyota Corolla stereo. In order to do this, I'm bitbanging AVC LAN. Nearly all of my research comes from ...
Bo Thompson's user avatar
0 votes
1 answer
320 views

Design vehicle tracking device

I want to create an Arduino based vehicle tracking device which will be moved into a production board without Arduino later. Right now I have a few questions: What GPS module should I use for a best ...
Cvetomir's user avatar
1 vote
1 answer
387 views

Possible error in CAN-Bus shield schematic?

This is a part of SeeedStudio CAN-Bus shield schematic. The vertical green line on the left seems suspicious to me. Am I missing something?
Jaroslav Záruba's user avatar
0 votes
1 answer
627 views

SPI conflict with two shields - IOREF?

Update: I've refactored the code to be very resilient to boards missing or not being able to talk to them. Then I tinkered with a bunch of pins and learned that it all comes down to the IOREF pin ...
Tim Trampedach's user avatar
0 votes
1 answer
3k views

Can I connect to a DALI network as a master node using an Arduino?

I have googled a lot, and mostly every website you can link me I have already explored, some are outdated and don't work, others aren't clear in their documentation, and use equipment too expensive to ...
nemewsys's user avatar
  • 215
0 votes
1 answer
220 views

How might the SD library be reading phantom files?

I have the Sparkfun CAN Bus shield with integrated SD card writer attached to an Arduino Mega 2560. I can delete a logged file from the SD card using Windows, log more data using the SD library, then ...
J Collins's user avatar
  • 295
3 votes
1 answer
357 views

Attempt stacking 'CAN-BUS' and 'USB Host' Shields on Mega 2560

I've run into a case of 'In theory it works, but in reality'.... I'm using the CAN-BUS Shield V1.2 from Seeed studio. Many things are written in broken english, so I'm starting to wonder if I can ...
wookie4747's user avatar
0 votes
1 answer
2k views

Arduino due + mcp2551

I am currently using an atmega328 along with the mcp 2515 and the 2551 for CAN communication in my systems. However, I've now decided to upgrade to the arduino due for my operations. Can anybody tell ...
SerShubham's user avatar
1 vote
1 answer
765 views

Sparkfun Can-Bus Shield example not working

I recently bought a Sparkfun Can-Bus Shield, and tried the SparkFun_CAN_Demo from here but the program only prints "CAN-Bus Demo" and then does nothing, even when I have it connected into my vehicle's ...
p7810456's user avatar
2 votes
1 answer
3k views

How to Implement Simple, Quick HMAC on Arduino

Hi I am a research student working on securing the communications in Controlled Area Networks (CANs), and I am using Arduinos to simulate one of these CANs. My goal is to use HMAC to implement ...
Zach King's user avatar
  • 141
1 vote
2 answers
1k views

CAN communication with Arduino

I'm a member of a Formula SAE team and we use the Performance Electronics ECU which uses the CAN protocol with a speed of 250 kbit/s and works fine with our 2D Recording Systems Data logger, but ...
Yashasvi Karnena's user avatar
4 votes
1 answer
1k views

Arduino CAN SPI Configuration problem

I am using an Arduino UNO along with a Cooking Hacks CAN Bus Module and Multiprotocol Radio Shield. The CAN module is connected to the radio shield which is plugged into the Arduino. I got this radio ...
Varun Raman's user avatar
1 vote
1 answer
2k views

Problem receiving CAN messages using arduino, MCP2515 CAN module and multiprotocol radio shield

I am using an arduino UNO and a Cooking Hacks CAN BUS module through a Cooking Hacks Multiprotocol radio shield. I plan to read the CAN messages through the car's OBD-II port. I have connected the ...
Varun Raman's user avatar
0 votes
1 answer
942 views

Car Control via OBD-II port

I was wondering if it is possible to send commands through the OBD-II on my car via an Arduino Uno Rev 3 with a CAN-BUS Shield from SEEDStudio. I am just going for basic functions i.e. lock control, ...
SWard's user avatar
  • 101
1 vote
2 answers
3k views

Can BUS Shield on Arduino Leonardo - Can't init CAN

I'm hoping to get some help with this as I am unable to get the CAN to Initialize. I have the sparkfun Can-Bus shield: https://www.sparkfun.com/products/13262 and an Arduino Leonardo board. I'm ...
calcazar's user avatar
  • 113
2 votes
1 answer
224 views

Background processes - Arduino Mega and SeeedStudio CAN shield

I am attempting to interface an Arduino Mega 2560 with a system of four Black Jaguar motor controllers connected in CAN. I'm using the CAN shield from SeeedStudios to accomplish this. The way Jaguars ...
Lord Fahrenheit's user avatar