• Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language Eagle
  • Created almost 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generalized Electric Vehicle Control Unit

GEVCU

Note - If you have pulled this code between July and Sept of 2016 then you received commits that have been removed from this repo. It has been decided to move development of GEVCU6 code over to the GEVCU6 repo. If you have the commits from that multi-month window then point your origin to the GEVCU6 repo instead and everything will still be there and be correct. Sorry for any inconvenience this causes.

Generalized Electric Vehicle Control Unit

Our website can be found at : http://www.gevcu.org

A project to create a fairly Arduino compatible ECU firmware to interface with various electric vehicle hardware over canbus (and possibly other comm channels)

The project now builds in the Arduino IDE. So, use it to compile, send the firmware to the Arduino, and monitor serial. It all works very nicely.

The master branch of this project is now switched to support the Due. The master branch is sparsely updated and only when the source tree is in stable shape.

The older Macchina code has been moved to its own branch. This code is now VERY old but should work to control a DMOC645.

ArduinoDue branch is more experimental than the master branch and includes the work of Michael Neuweiler.

The WIP branch is sync'd to EVTV's official changes and as such could be considered as a testing ground for the official source code distribution.

You will need the following to have any hope of compiling and running the firmware:

  • A GEVCU board. Versions from 2 and up are supported.
  • Arduino IDE 1.5.4 - Do not use newer versions of the IDE
  • due_can library - There is a repo for this under Collin80
  • due_rtc library - Also under Collin80
  • due_wire library - once again
  • DueTimer library - and again

All libraries belong in %USERPROFILE%\Documents\Arduino\libraries (Windows) or ~/Arduino/libraries (Linux/Mac). You will need to remove -master or any other postfixes. Your library folders should be named as above.

The canbus is supposed to be terminated on both ends of the bus. If you are testing with a DMOC and GEVCU then you've got two devices, each on opposing ends of the bus. So, both really should be terminated but for really short canbus lines you will probably get away with terminating just one side.

If you are using a custom board then add a terminating resistor.

If you are using the new prototype shield then it should already be terminated. The DMOC can be terminated by soldering a 120 ohm resistor between the canbus lines. I did this on my DMOC and hid the resistor inside the plug shroud.

This software is MIT licensed:

Copyright (c) 2014 Collin Kidder, Michael Neuweiler, Charles Galpin, Jack Rickard

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

SavvyCAN

QT based cross platform canbus tool
C++
1,018
star
2

esp32_can

Arduino ESP32 library supporting the on-chip CAN module
C++
260
star
3

due_can

Object oriented canbus library for Arduino Due compatible boards
C++
252
star
4

ESP32RET

CAN Reverse engineering tool for ESP32 based boards (specifically EVTV ESP32Due)
C++
197
star
5

TeslaBMS

C++
160
star
6

can_common

Common structures and functionality for CAN libraries
C++
107
star
7

GVRET

Generalized Vehicle Reverse Engineering Tool - firmware for Arduino Due based boards
C++
99
star
8

M2RET

GVRET fork to Macchina M2 board
C++
71
star
9

GEVCU6

Generalized Vehicle Control Unit for version 6 boards
C++
25
star
10

JLD505

Arduino
24
star
11

GEVCU7

7th generation GEVCU source code
C++
21
star
12

A0RET

CANBus reverse engineering firmware for the Macchina A0
C++
16
star
13

due_wire

An alternative I2C library for Due with DMA support
C++
15
star
14

FirmwareReceiver

C++
14
star
15

OBD2Scan

Sketch to scan OBDII with an M2
C
12
star
16

due_canopen

CANOpen library for due_can
C++
11
star
17

CRC_Nissan

C# app that shows a simple way to calculate the CRC byte used by some canbus frames in Nissan Leafs
C#
11
star
18

DueMotorCtrl

An Arduino Due (SAM3X) based motor controller. Somewhat generic in terms of hardware but really meant primarily to replace the main board in a DMOC645
C++
10
star
19

8051Disassembler

Open source disassembler custom built to disassemble SiLabs C8051F530 code from Tesla BMS
C
9
star
20

OscilloscopeViewer

Visualizer of oscilloscope captures
C++
9
star
21

pymqtt2can

Python based CAN to MQTT tunnel
Python
8
star
22

DS2480B

OneWire library custom engineered for JLD505 boards with DS2480B chips
C++
8
star
23

TeensyRET

CANBus reverse engineering firmware for Teensy 3.x boards
C++
7
star
24

TeslaBMS-ESP32

ESP32 port of the existing TeslaBMS program
C++
7
star
25

Envoy

Enphase Envoy Interface Library
C++
7
star
26

Open-SAE-J1939

C
6
star
27

bms

EVTV BMS
C++
6
star
28

EEPROMAnything

C++
5
star
29

ade9000

C
5
star
30

Wire_EEPROM

I2C based routines to support EEPROM on the Due. Requires the due_wire library from my repo
C++
5
star
31

PhoneCANLogger

Grabs traffic from ESP32RET devices and stores the CAN frames to your phone/tablet
C++
5
star
32

pwm01

Enhanced PWM library for Arduino Due
C++
4
star
33

GEVCU_MobileApp

Cross platform configuration and status tool for GEVCU
QML
3
star
34

Arduino_Due_SD_HSCMI

Fork of HSCMI library for sdcard reading/writing
C++
3
star
35

AWS_IOT

Arduino library to use Amazon IOT (MQTT)
C
3
star
36

mcp_can

C++
2
star
37

GVRET-PC

C# Application for PC that interfaces with the GVRET firmware to provide reverse engineering help.
C#
2
star
38

SerialViewer

A very simplistic program meant for viewing serial traffic from embedded controllers
C++
1
star
39

SamNonDuePin

Fork of a library that allows use of pins not normally mapped on Arduino Due
C++
1
star
40

SD_HSCMI

Fork of library that support SD card access over HSCMI on SAM3X boards
C
1
star
41

powerkey-j1939

Library to support PowerKeyPro keypads that use J1939 signalling
C++
1
star
42

GattServer_GEVCU

A GATT Server running on ESP32 for use with GEVCU (or other boards)
C
1
star