My strong inclination towards electric drives made me knock together a sequel to the Toyota RAV4 climate control panel. We are going to communicate over the LIN bus with a wiper actuator. There is almost endless selection of such actuators on the market. However, my goal here is not to spend time on hacking one. The exercise is supposed to be a datasheet-based one. Searching for wiper actuator/motor protocol gave me Wiper Direct Actuator (WDA) from Bosch Motorsport. A quite pricey item. Let's experiment with something cheaper - a similarly looking actuator being used in VW Golf VII, Audi A3 8V, and probably many other popular models. The used part can be easily bought for under $10.
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.
- stm32-ssd1306 (MIT license)
- QR Code generator library1 (MIT license)
- Dual LIN click (MIKROE)
- LIN Click (MIKROE)
- MCP2003B Click (MIKROE)
- Local Interconnect Network (Wikipedia)
- LIN Bus Explained - A Simple Intro [2023] (CSS Electronics)
- Introduction to the LIN bus (KVASER)
- STM32 as the Lin Master || Configure & Send Data (ControllersTech)
- Using Lin Transceivers to communicate between master and slave (ControllersTech)
- Master - slave communication using LinBus (ControllersTech)
- Wiper Direct Actuator WDA (datasheet with protocol description) (Bosch Motorsport)
- LIN Specification Package Revision 2.2A
- VW Golf 7 sterowanie silnikiem wycieraczek przod siec LIN. BUS LIN. (eCarEdu.pl)
Important
The WDA for motorsport has visibly different casing but it uses an almost identical communication protocol. "Almost" makes a difference between being able to communicate and not being able to communicate at all. It took me a lot of guessing and checking to figure out that the "civilian" version has a longer data field. They've probably shortened the frame for motorsport to make it faster 😉 Follow the datasheet and then just add two zero bytes to the payload.
- DSLogic Plus (DreamSourceLab)
- PLIN-USB: LIN Interface for USB (PEAK-System)
- ESP32-SoftwareLIN (a nice read about the break field)
- brushed DC motor
- H-bridge converter (four 90N04 N-Channel MOSFETs)
- magnetic field sensor (KMZ43T from NXP)
- uC (D1923BA from Bosch)
- LIN transceiver (TJA1021 from NXP)
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, Nikodem Bartnik, and many other professional hobbyists sharing their awesome projects and tutorials! Shout-out/kudos to all of them!
Warning
Control engineering - do try this at home 😎
190+ challenges to start from: Control Engineering for Hobbyists at the Warsaw University of Technology.
Stay tuned!
Footnotes
-
The QR code will take you to the wiper direct actuator (WDA) purchasing options. ↩