Using the CANBUS shield

Hi all

Would like a bit of help getting a little project up and running.

I want to convert a input from the analog input to a canbus signal out.

I know the starting canbus msg and the last canbus msg for minimum and maximum input but have mo clue how to work out everything in the middle.

I have a sparkfun CANBUS unit and a uno.

Thank you

Ben

In the mean time while vating, try google on Arduino CAN.
It's the best I can tell about Arduino CAN.

Hi,
What are you sending the canbus comms too.
What is the structure of the packet that needs to be sent?

Thanks.. Tom.. :slight_smile:

I will be communicating with an instrument module.

At the minute i know the address is 316h with 8 bits of data

Start data is 00 00 00 00 00 00 00 00

Finish data is 00 00 6E 66 00 00 00 00

Hi,
Can you post a link to data of the instrument please.

Thanks.. Tom.. :slight_smile:

Sorry for late response.

What data would you like Tom

Hi,
Can you post a link to data/specs of the instrument you are sending data on the canbus to?

Thanks.. Tom.. :slight_smile:

The only information i have is what i have got from using can analyser

Hi,
What were you connected to, to get that information?
If you were looking at the canbus coming out of the instrument, then that will/may not be the data required to put into the instrument.

Are there other devices/instruments on the canbus?

Can you please tell us your electronics, programming, Arduino, hardware experience?

What is the make and model of the instrument?

Have you looked at the examples in the canbus library for your shield?

Have you googled arduino canbus

Thanks.. Tom.. :slight_smile:

Hi tom

I was attached into the can high and low lines at the diagnostic socket.

The system consists of the instrument, engine ecu, abs ecu and suspension ecu.

The instrument and the suspension ecu are can gateways.

I isolated the system to just show the instrument and the engine ecu signals which led me to the information that i have.

I have used the canbus shield and the transmit demo to transmit 5000 rpm to the instrument and it worked.

I can write some code to see an analog input from a potentiometer but linking that to the canbus signals is beyond me

Ben

ullisees:
Hi tom

I was attached into the can high and low lines at the diagnostic socket.

The system consists of the instrument, engine ecu, abs ecu and suspension ecu.

The instrument and the suspension ecu are can gateways.

I isolated the system to just show the instrument and the engine ecu signals which led me to the information that i have.

I have used the canbus shield and the transmit demo to transmit 5000 rpm to the instrument and it worked.

I can write some code to see an analog input from a potentiometer but linking that to the canbus signals is beyond me

Ben

So.
What did you send to display 5000rpm.
You have;

  • An analog tacho signal 0 to 5V.
  • You have a automotive canbus.
  • You want to insert into the canbus the tacho signal to appear on the tacho in the "instrument cluster"

This is an area I have no experience with, as you will be trying to add data to the canbus traffic and as such your analog to canbus converter will possibly need an ID to distinguish it from the other canbus devices.
Also won't you be trying to overwrite tacho data being sent from some other source to the "instrument cluster", such as the ECU?
You will need to research the manufacturers canbus info, if there is any available.
Try google, I know there is a lot of Toyota canbus info available.
Try google carmake canbus protocol
eg google Toyota canbus protocol
Tom.. :slight_smile: