Skip to content

Commit 4b99ac9

Browse files
committed
bump readme
1 parent 3f836db commit 4b99ac9

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
## Quick & dirty EV2400 reimplementation using RP2040 (Raspberry Pi Pico)
22

3-
This project allows you to convert your Raspberry Pi Pico to a EV2400 - a hardware interface device from Texas Instruments, in theory allowing you to interface with the battery gauge ICs and similar hardware from that manufacturer.
3+
This project allows you to convert your Raspberry Pi Pico to an EV2400 - a hardware interface device from Texas Instruments, in theory allowing you to interface with battery gauge ICs and other hardware from that manufacturer.
44

5-
This is a very limited and probably not very compliant implementation - since there's no official documentation of the USB wire format some things have to be eyeballed.
5+
This is a limited and not very compliant implementation - since there's no official documentation on the wire format some things have to be guessed. Your mileage may vary - and adding to it, some gauges may become damaged if incorrect values are used! Use at your own risk.
66

7-
THIS IS NOT AN ACTIVELY SUPPORTED PROJECT - USE AT YOUR OWN RISK. Some gauges may become damaged if incorrect values are used!
7+
Only I2C and GPIOs are supported at the moment. It should be trivial to add support for SMBus as well. This was so far tested with BQ27427, but I assume other similar I2C chips will work just fine.
88

9-
Only I2C and GPIOs are supported at the moment. I don't need SMBus or whatever else is supported by the original probe - but it should be trivial to add that support
9+
## Usage
10+
11+
Get the latest uf2 firmware from the 'Releases' tab.
12+
Press the 'bootsel' button while plugging in your pico, then drag & drop the provided file to the storage device detected.
13+
14+
Your computer should now detect a new HID device called EV2400. Then you may try to attach your gauge and run the Battery Studio. If everything is attached correctly it shall detect both the interface and your target hardware.
1015

1116
## Pin mapping
1217

13-
Please pay attention to physical voltage levels before connecting to external equipment - all this is 3v3. Use voltage converters when appropriate.
18+
Pico uses 3.3V logic levels - if your hardware uses something different you will need a voltage level shifter.
1419

1520
| Pico pin | GP | Function |
1621
|----|----|---------|
@@ -20,3 +25,8 @@ Please pay attention to physical voltage levels before connecting to external eq
2025
| 15 | 11 | GPIO output 2 |
2126
| 16 | 12 | GPIO output 4 |
2227
| 1 | 0 | Defmt logger (this firmware debugging) |
28+
29+
## Developing
30+
31+
I use BlackMagic probe for debugging and writing the firmware to the target. There are some supporting scripts to help write binaries to the target hooked to `cargo run`. For creating UF2 files [this tool](https://github.com/JoNil/elf2uf2-rs) is used (available in ArchLinux repository or through `cargo install`)
32+
Firmware uses serial for `defmt` log output. That was done to help debug USB issues (you can unplug and plug back USB without losing early logs). You will need to compile your own firmware if you want to see these (because `defmt` indexes logs and uses original ELF firmware for lookup)

0 commit comments

Comments
 (0)