Skip to content

Citroen C5 II (2011) instrument panel cluster hacking with STM32/HAL.

License

Notifications You must be signed in to change notification settings

ufnalski/citroen_c5_cluster_g431kb

Repository files navigation

Citroen C5 II (2011) instrument panel cluster hacking (STM32G431KB)

Similar story as for the sixth-generation Ford Mustang (S550) and the second-generation Peugeot 308 (T9). Let me therefore not to retell the whole story here.

Warning

Be careful when playing with the CAN message ID 0xF6. It contains mileage that cannot be decreased for the Citroen C5 IPC. Moreover, once set to more than 999999 km it will overflow the range on the display and you will be able to see only "------ km" from now on (permanently) 🙁

Tip

The IPC sends the CAN message ID 0x257 at the power-up. The massage contains the current mileage stored in the IPC to prevent odometer fraud. You can read this value to send it back to the IPC and display it 🙂

Citroen C5 IPC in action

Check /Assets/Images/ for the pinout.

Missing files?

Don't worry 🙂 Just hit Alt-K to generate /Drivers/CMCIS/ and /Drivers/STM32G4xx_HAL_Driver/ based on the .ioc file. After a couple of seconds your project will be ready for building.

Tip

The IPC uses ISO 11898-3 low-speed (AKA fault-tolerant) CAN at 125 kbit/s. For more details on its physical layer see me embarking on that journey here.

Sources

Call for action

Create your own home laboratory/workshop/garage! Get inspired by ControllersTech, DroneBot Workshop, Andreas Spiess, GreatScott!, ElectroBOOM, Phil's Lab, atomic14, That Project, Paul McWhorter, Max Imagination, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them!

Warning

Automotive hacking - do try this at home 😎

190+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.

Stay tuned!

Releases

No releases published

Packages

No packages published