LiControl
doppelhub/MuddersMIMA
Mudders Take on Manual IMA Control in the G1 Honda Insight

Mudders Take on Manual IMA Control in the G1 Honda Insight
LiControl is an open-source printed circuit board by doppelhub, from the doppelhub/MuddersMIMA repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 41 × 79.3 mm with 84 parts on 59 nets, routed with 663 tracks and 50 vias.
It is built around the BTS5030-1EJA and RJ45. Its parts include 37 resistors, 21 capacitors, 8 transistors, 7 diodes and 5 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Mudders Take on Manual IMA Control in the G1 Honda Insight
muddersMIMA_firmware.ino
Opening this file in the Arduino IDE will suck in all the other files that the project uses, and present them in separate tabs in the IDE.
It pulls in an h file, muddersMIMA.h, which is discussed below and which draws in all other constant, variable and function definitions.
The main loop calls methods to output status, parse commands, and do work depending on which of three modes is selected by a toggle switch. This is a MITM for MAMODE1, MAMODE2 and CMD_PWR signals from ECM to MCM.
The code is largely self-explanatory if you read the code starting with this ino file, then the H files as below. Operation is summarized in "How it works", at the end of this page.
muddersMIMA.h
This short file pulls in other .H definition files:
config.h - Firmware version and build date.
cpu_map.h - Really a mapping the names of each analog and digital signal to a corresponding pin on the Arduino. It's not really specific to a particular CPU.
debugLED.h, debugUSB.h - functions for turning the LED on and off; functions to display stats. debugUSB provides calls that output status to the user through the serial USB interface. Most interesting: a call to ecm_getMAMODE1_state() (in ecm_signals.h/cpp) lists the different states the car may be in.
gpio.h - Defines and handles other analog and digital pin inputs and outputs.
adc.h - provides access to joystick inputs.
USB_userinterface.h - parses user's commands and has calls to do the requested work.
mcm/ecm_signals.h - provides accessors for reading ECM commands and sending them to the MCM (these are called from the main loop based on DIP switch position and joystick position.)
This is a MITM for three lines: MAMODE1, MAMODE2 and CMDPWR. These come from the ECM and are sent to the MCM. Basically, the current state of each signal is read using accessors in ecm_signals.h, cpp and the desired state output using functions in mcm_signals.h, cpp.
MAMODE1 in particular communicates desired states using PWM. The signal for each PWM amount is defined in ecm_signals.h. MAMODE2's signals, on or off, are defined there too.
The rest of the code is many small files doing individual things - "gpio" is for buttons and digital signals, "adc" is for the joystick, etc.
The user interface is supported by USB_userinterface's command parser.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 13 | 100n | Capacitor_SMD:C_0805_2012Metric | C1, C2, C3, C4, C5, C6, C7, C11, C16, C17, C18, C20, C21 |
| 11 | 1k24 | Resistor_SMD:R_0805_2012Metric | R1, R3, R4, R5, R15, R20, R22, R26, R27, R32, R33 |
| 7 | 100 | Resistor_SMD:R_0805_2012Metric | R8, R9, R12, R17, R24, R25, R41 |
| 7 | 7k32 | Resistor_SMD:R_0805_2012Metric | R6, R7, R10, R13, R19, R34, R35 |
| 6 | 1u | Capacitor_SMD:C_0805_2012Metric | C10, C12, C13, C14, C15, C19 |
| 5 | 10k | Resistor_SMD:R_0805_2012Metric | R36, R37, R38, R39, R40 |
| 5 | D | Diode_SMD:D_SOD-123 | D1, D2, D3, D6, D7 |
| 4 | Q_NMOS_GSD | Package_TO_SOT_SMD:SOT-23 | Q2, Q6, Q10, Q12 |
| 4 | Q_PMOS_GSD | Package_TO_SOT_SMD:SOT-23 | Q7, Q8, Q9, Q11 |
| 3 | 768 | Resistor_SMD:R_0805_2012Metric | R11, R21, R23 |
| 3 | DNP | Resistor_SMD:R_0805_2012Metric | R2, R14, R44 |
| 2 | 1u | Inductor_SMD:L_0805_2012Metric | L1, L2 |
| 2 | Conn_01x08 | Connector_Phoenix_MC:PhoenixContact_MCV_1,5_8-G-3.5_1x08_P3.50mm_Vertical | J1, J4 |
| 2 | DNP | Capacitor_SMD:C_0805_2012Metric | C8, C9 |
| 1 | 71k5 | Resistor_SMD:R_0805_2012Metric | R16 |
| 1 | Arduino_Nano_v3.x | Module:Arduino_Nano | A1 |
| 1 | BTS5030-1EJA | Package_SO:Infineon_PG-DSO-8-43 | U1 |
| 1 | Conn_01x04 | Connector_Phoenix_MC:PhoenixContact_MCV_1,5_4-G-3.5_1x04_P3.50mm_Vertical | J2 |
| 1 | Conn_02x03_Odd_Even | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J6 |
| 1 | D | Diode_SMD:D_SMC | D4 |
| 1 | D_Zener_ALT | Diode_SMD:D_SOD-123 | D5 |
| 1 | Heatsink_Pad | Heatsink:Heatsink_AAVID_573300D00010G_TO-263 | HS1 |
| 1 | RJ45 | Connector_RJ:RJ45_Amphenol_54602-x08_Horizontal | J5 |
The 83 most common of 84 parts.
doppelhub/MuddersMIMA
Mudders Take on Manual IMA Control in the G1 Honda Insight


lologog/RowSeederController
This project is a row seeder controller featuring DC motor control and CAN communication for efficient and precise seeding operations

UtilitechAS/amsreader-firmware
ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

travisgoodspeed/goodfet
An embedded bus adapter for various microcontrollers and radios.



nv1t/standing-desk-interceptor
I wanted to intercept the communication between my Flexispot standing desk buttons. This is the progress on the project

It measures 41 × 79.3 mm and has 2 copper layers, 1.6 mm thick.
84 parts, built around the BTS5030-1EJA and RJ45. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the doppelhub/MuddersMIMA repository on GitHub, at the commit this page was made from: the board is Electronics/RevB/KiCAD/LiControl/LiControl.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).