Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [can-bus]

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

0
votes
0answers
32 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 ...
0
votes
0answers
42 views

Arduino Due, MCP2515, SPI and CAN message

I use Vector network to send CAN messages to MCP2515 through CAN HIGH and CAN LOW lines. I connect MCP2515 with Arduino Due through SPI protocol. Connections are good. But I receive "not acknowledge ...
1
vote
0answers
17 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 ...
2
votes
1answer
73 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 ...
0
votes
0answers
47 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
2answers
64 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
1answer
61 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
1answer
64 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 ...
0
votes
1answer
107 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
1answer
22 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
1answer
25 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 ...
0
votes
2answers
69 views

How to control two devices with Arduino? [closed]

I want to control two devices: AC Humidifier I have a DHT11 sensor for temperature and humidity. I want the AC to turn on when the temperature is greater than 30°C, and off when it's less than 20°C....
0
votes
0answers
82 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
1answer
324 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
1answer
591 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
1answer
245 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 ...
-1
votes
1answer
183 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
1answer
235 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?
-1
votes
1answer
322 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 ...
-1
votes
1answer
472 views

Connect Arduino to PLC (Data Exchange)

The Arduino should read data from a PLC. Has anyone experience with this? What would be possible interfaces? I would prefer OPC-UA, but all the research I did, only OPC-DA was mentioned. Thanks in ...
0
votes
1answer
1k 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
1answer
116 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
1answer
245 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
1answer
784 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
1answer
516 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 ...
3
votes
1answer
1k 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
2answers
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
1answer
587 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
1answer
1k 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
1answer
653 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
1answer
2k 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 ...
0
votes
1answer
178 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
1answer
731 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
2answers
944 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
1answer
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 ...
4
votes
2answers
3k views

Can Bus Shield Not Receiving Data

I am trying to connect my Arduino Uno board with SeeedStudio Can Bus Shield to my 2006 325i BMW. After compiling and uploading the example program by SeeedStudio, the serial monitor returns "Can Bus ...
5
votes
2answers
5k views

How to program a CAN-BUS Arduino shield to control car windows?

My project is to control car windows using voice recognition. I have successfully controlled some LEDs using the EasyVR Arduino shield using and Arduino MEGA. Now I want to take control of the windows ...