someone22
Well-Known Member
- Thread starter
- #1
I started implementing this feature a few days ago. IT basically uses an ESP32 to connect to a cheap Bluetooth OBD2 dongle (usual name is ELM327 V2.1). Today the CYD (cheap yellow display) got in the mail and ported the UI to the new board.
The reason is that I cannot seem to activate the power meter display in the IPC and can't connect the iPhone to the OBD2 dongle nor want to dedicate another phone or a CarPlay window for this.
The board ($15.28 on ali right now) connects to an OBD2 dongle ($2.9-8) and reads car data as fast as possible, specifically the instant power. Every 1.5s the front and rear motor data is read, every 5s some other slow-changing piece of data. Right now that includes real SoC, internal temperature, battery temperature, battery cooling mode.
The board can be left plugged into the USB port, I also leave the OBD dongle always connected. When the car powers up, the board will spend some time connecting to BT (~20s in my case) then it starts displaying the data in realtime. Power is updated about 10 times per second.
https://shorturl.at/yLqDm
Still left to do:
- 3D print a case that will integrate nicely with the car. Perhaps a UI redesign is needed if I find out that a vertical orientation is better
- trip meters are not implemented, might be a bit tricky to get a reliable value but let's see. Low priority
- handling of different adapters or BT timeouts. A reset now is the only way for the latter.
- second screen (it's a resistive touchscreen) with more data such as LVB voltage and SoH, HVB SoH, motor temperatures, AC or DC charger values, etc. Not sure what would be useful.
- sometimes the motor power (primary?) jumps to negative maximum, perhaps another quirk of the protocol
- day/night theme
- day/night detection from OBD and/or luminance sensor
- initial BT connection might be tricky since it requires a pin (1234), one time, afterwards it works
- animation for values instead of jumping
If there's enough interest and people are willing to test for themselves or even contribute changes, I will open-source the project on github. If there's no interest, I will publish it later anyway.
UI design v0.2
The photo below is from the demo mode, hard to debug all the power ranges in the car and also take a photo.
The board and dongles look like these, surely available on the jungle site as well:
The reason is that I cannot seem to activate the power meter display in the IPC and can't connect the iPhone to the OBD2 dongle nor want to dedicate another phone or a CarPlay window for this.
The board ($15.28 on ali right now) connects to an OBD2 dongle ($2.9-8) and reads car data as fast as possible, specifically the instant power. Every 1.5s the front and rear motor data is read, every 5s some other slow-changing piece of data. Right now that includes real SoC, internal temperature, battery temperature, battery cooling mode.
The board can be left plugged into the USB port, I also leave the OBD dongle always connected. When the car powers up, the board will spend some time connecting to BT (~20s in my case) then it starts displaying the data in realtime. Power is updated about 10 times per second.
https://shorturl.at/yLqDm
Still left to do:
- 3D print a case that will integrate nicely with the car. Perhaps a UI redesign is needed if I find out that a vertical orientation is better
- trip meters are not implemented, might be a bit tricky to get a reliable value but let's see. Low priority
- handling of different adapters or BT timeouts. A reset now is the only way for the latter.
- second screen (it's a resistive touchscreen) with more data such as LVB voltage and SoH, HVB SoH, motor temperatures, AC or DC charger values, etc. Not sure what would be useful.
- sometimes the motor power (primary?) jumps to negative maximum, perhaps another quirk of the protocol
- day/night theme
- day/night detection from OBD and/or luminance sensor
- initial BT connection might be tricky since it requires a pin (1234), one time, afterwards it works
- animation for values instead of jumping
If there's enough interest and people are willing to test for themselves or even contribute changes, I will open-source the project on github. If there's no interest, I will publish it later anyway.
UI design v0.2
The photo below is from the demo mode, hard to debug all the power ranges in the car and also take a photo.
The board and dongles look like these, surely available on the jungle site as well:
Sponsored
Last edited: