Skip to main content

Questions tagged [can]

CAN stands for Controller Area Network and is a bus often used in automotive applications. It is a two-wire differential protocol and works on baud rates from 10 kbits/sec to 1 Mbits/sec.

1 vote
1 answer
4k views

PIC18F25K80 can transmit over CAN but can't receive

I've built a prototype circuit on a solder breadboard. I've connected the PIC18F25K80 to MCP2551 as shown in the schematic for ...
Littlegator's user avatar
8 votes
3 answers
26k views

For the CAN bus, is it OK to swap CANH and CANL lines?

Similar to question In a USB cable, is it OK to swap the D+ and D- wires?, is it okay if we interconnect CAN-H and CAN-L lines? CAN is a differential protocol. Is it that dominant and recessive bits ...
Swanand's user avatar
  • 3,275
1 vote
2 answers
973 views

Sending CAN protocol data(1Mbps) via serial port

I would like to build a tool for viewing CAN protocol data on my computer. The CAN protocol data is captured using a microcontroller (STM32F4 discovery board) and sent to a PC via a serial port. My ...
robomon's user avatar
  • 913
1 vote
3 answers
11k views

TXERR error in CAN communication

I tried CAN communication using PIC18F25K80 and MCP2551. Using two nodes, I could transmit data from one node to other. But, data was transmitted only when the receiver buffer was set to ignore all ...
Arun Shekhar R's user avatar
8 votes
5 answers
926 views

Selecting communication between microcontrollers at high temperature

I have been assigned to a project to find the best possible communication between several PCB boards which have microcontrollers for a specific function. I need to have all microcontrollers ...
verendra's user avatar
  • 1,243
8 votes
2 answers
6k views

CAN Transmission and termination resistors

I have been trying to set up a CAN network using PIC18F25K80 microcontrollers and an MCP2551 to communicate between them. Can I use two simple wires as a CAN bus by just connecting the CANL, CANH of ...
Arun Shekhar R's user avatar
5 votes
3 answers
6k views

Can I remap a car\bike ECU using CAN bus?

I am thinking to use something like this to connect an Arduino to a motorbike engine control unit (ECU): Arduino CAN-Bus Shield with uSD Card Holder. I never did something like this; using CAN bus, ...
AndreaNobili's user avatar
2 votes
2 answers
891 views

Best microcontroller electrical bus for high speed synchronized sampling from slaves

I have an application which requires that I sample a dozen of sensors for each node and transmit the data to a master microcontroller in regular four second intervals. The surface area of the sensors ...
Dimo's user avatar
  • 43
33 votes
3 answers
5k views

Correct place to attach shields for twisted pairs

I have two PCBs connected by a cable containing 5 sub-cables: 6v power through a custom made coaxial cable (similar to that found on laptop power supplies). 2x 100mbps LVDS through 100ohm impedance ...
Rocketmagnet's user avatar
  • 27.5k
5 votes
1 answer
3k views

CAN bus bit timing with 16 MHz crystal

I'm trying to receive CAN messages from a radar, whose specification define the following data for bit timing: ...
Daniel's user avatar
  • 51
5 votes
1 answer
1k views

Coax cable with CAN bus

I got some Microchip CAN transceivers and some Stellaris Launchpads from TI. I would like to learn how CAN works. It looks very nice for what I want to do (one controller per room, controls lights, ...
Michael Styln's user avatar
41 votes
4 answers
175k views

Why does the CAN bus use a 120 ohm resistor as the terminating resistor and not any other value?

I know the reasons for using terminating resistors on a CAN bus and how important it is. But why 120 ohm? How did this value come up? Is there any specific reason to use 120 ohm?
Swanand's user avatar
  • 3,275
8 votes
2 answers
6k views

1-wire verses CAN-bus for home sensing network?

I'm trying to put together a home automation solution for my newly built house. I'm very new to this, specifically for hardware matters and asking this question to verify if my understanding of what I'...
abolotnov's user avatar
  • 183
8 votes
4 answers
4k views

Most efficient way to handle addressing / termination in a daisy-chained CAN bus?

I'm working on some devices that will talk to each other over CAN. The simple idea is to daisy chain essential signals between each device: power (+12V and ground), enable and CAN high / low. Now, ...
Toby Lawrence's user avatar
6 votes
2 answers
5k views

Packet loss in CAN

How susceptible is a CAN bus to packet loss, and what are the sources of packet loss in CAN? I realize the answer may depend heavily on the application, so here are some details: bus length: about 1 ...
oyvind's user avatar
  • 323

15 30 50 per page