Posts Tagged "CAN Bus"

LeafCAN v2 Firmware in Alpha Test

I have been working on v2 of the LeafCAN firmware, which adds a whole slew of new screens, selectable via a rotary encoder.  The rotary encoder is connected to the AD0/1/2 pins on the expansion header of the LeafCAN V2 hardware.  The code is currently in alpha testing, and is available in the development branch […]

AT90CAN Support for Arduino 1.0+

I have adapted the Arduino AT90CANxx support to work with Arduino 1.0+. Also, I have moved the code to github, so that it will be easier to update.  Note that the Arduino 1.0+ support is currently only alpha quality.  I have compiled a few sketches, but I also have found some which currently can’t compile. […]

Cheap 16×2 LCD Comparison

HD44780-compatible 16×2 LCD’s are cheap (

Case Protoype for LeafCAN

I’ve been having a lot of issues tweaking my latest Reprap design, so I haven’t been able print a case for my LeafCAN SOC meter.  Late last week, the printer was stabilizing, so I took a break to whip up something in OpenSCAD.  It’s just a basic box, which I printed in natural ABS.  I don’t like […]

AVR CAN Bus Project: LeafCAN v1.2 Released

Another tweak today, I added instantaneous battery power consumption in KWh to the second line of the display. In order to make room, I had to do away with the V and A characters after the voltage and current draw. Here is the new display: The top line, from left to right, contains Battery Pack […]

AVR CAN Bus Project: LeafCAN v1.1 Released

I made some minor modifications to LeafCAN firmware today. First, I added display of remaining KWh in the battery pack, based on Phil Sadow’s formula of GIDs * 80 = Wh. Also, the display was a bit blurry when the values were updating rapidly, so I slowed down the refresh rate of the LCD to […]

AVR CAN Bus Project: Step 4 – LeafCAN: Nissan Leaf SOC Meter

I have implemented a SOC (State of Charge) meter for the Nissan Leaf. Many thanks to garygid and others from the MyNissanLeaf forums, for their help in decoding the Leaf CAN bus messages, and figuring out the pinouts. The top line shows the SOC%, raw SOC value, and number of charge bars displayed in the […]

AVR CAN Bus Project – Step 3: CANspy CAN Bus Monitor

Sorry for the delay in posting the circuit and schematics from my AVR CAN Bus Project – Status Update 1.  The circuit for interfacing the Olimex AT90CAN128 Header Board is incredibly simple, and only requires 3 components. Parts List (1) .1uF ceramic capacitor (1) 10K resistor (1) Microchip MCP2551 CAN transceiver Schematic If you’re going […]

AVR CAN Bus Project – Status Update 1

I got the circuit wired up yesterday: The 6-pin jumper on the left lets me select one of the 3 CAN buses on the Nissan Leaf accessible via the OBD-II connector. I hacked up some code quickly, and was pleasantly surprised that it actually worked! Woohoo! The part I thought was going to be most […]

AVR CAN Bus Project – Step 2: Programming Low Fuse

One of the basic functions that the CAN Bus project needs is to be able to communicate with a PC via a serial port.  For modern PC’s the most straightforward way is to connect the AT90CAN128 header board to the host via a Serial->USB converter.  The most common type is the ubiquitous FTDI Cable, which […]