Questions tagged [can-bus]
CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other
52
questions
1
vote
0
answers
16
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 ...
1
vote
0
answers
268
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 ...
-2
votes
1
answer
362
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 ...
1
vote
1
answer
153
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 ...
1
vote
2
answers
767
views
Can MCP2515 CANBUS Controller be used for two way communication?
I tried searching codes for MCP2515 with Arduino,
On Arduino Forums, Instructables, Electronics Hub, YouTube etc.
All of them were codes for a transmitter node and a receiver node.
Sensors on one node ...
3
votes
2
answers
5k
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 ...
2
votes
1
answer
466
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 ...
2
votes
0
answers
223
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 ...
0
votes
1
answer
411
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 ...
1
vote
0
answers
355
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 ...
1
vote
0
answers
110
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 ...
1
vote
0
answers
517
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 ...
1
vote
1
answer
512
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]);}. ...
1
vote
1
answer
244
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 ...
0
votes
1
answer
176
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 ...
1
vote
2
answers
3k
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 ...
1
vote
0
answers
86
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),
...
2
votes
2
answers
370
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 ...
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 ...
2
votes
0
answers
630
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 ...
1
vote
1
answer
710
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 ...
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 ...
0
votes
2
answers
509
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 ...
3
votes
1
answer
663
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.
...
1
vote
1
answer
129
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 ...
-1
votes
1
answer
532
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 ...
0
votes
1
answer
116
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 ...
0
votes
1
answer
325
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 ...
1
vote
0
answers
246
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.
...
0
votes
1
answer
920
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 ...
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 ...
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 ...
0
votes
1
answer
316
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 ...
1
vote
1
answer
379
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?
0
votes
1
answer
609
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 ...
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 ...
0
votes
1
answer
214
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 ...
3
votes
1
answer
344
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 ...
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 ...
1
vote
1
answer
760
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
911
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, ...
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 ...
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 ...
2
votes
1
answer
3k
views
Is it possible to setup a CAN-BUS Arduino Shield to communicate with SocketCAN for UNIX?
I have an Arduino + SparkFun CAN shield, and I was hoping to set it up to work with candump on an Ubuntu system. Is this doable, or is candump made specifically for raspberry Pi's?
1
vote
2
answers
1k
views
Connect the Sparkfun CAN bus shield with an RFduino
I have a problem which I am working on for some days now. I do have knowledge in electronics, but not extensively. I also posted this question in the RFduino Forum but couldn't get any good answers.
...
1
vote
1
answer
2k
views
CAN Bus without Transceivers
I am trying to set up a CAN-bus with its two nodes on the same Arduino. By Using an Arduino DUE without any transceivers. As my first experiment, I want to send a message from one CAN unit to the ...