My first IoT attempt: DSE CAN interface

Brandon

Well-Known Member
Joined
Feb 18, 2004
Messages
276
Reaction score
54
Location
National Bank of Zuma
Sharing my first IoT project with a Wemos D1 R2 ESP8266 and MCP2515 CANBus module to interface with a DSE6110 genset controller.

The goal was to be able to receive notifications such as fuel level and when the gen is running or not.
Decided to try CAN bus as the DSE manual has a detailed breakdown of the various supported instrumentation and control options, major decider was the ability to setup your own user specified parameters to monitor or action on.

After much trial and error, decided to run a local Blynk server for app integration on my phone.
As a non-programmer there was much Googling involved in getting the sketch to work; now resembling the coding equivalent of a Rube Goldberg machine.

OTA updates have been a great help and I don't think I would have succeeded in the trial/error fumbling stages without it.
Much time spent on the CAN message side figuring out J1939 that the DSE uses.

End result was creating a dashboard on the app showing fuel level, mains, gen and battery voltage.
Added some buttons to set the gen in different modes as well as a virtual led linked to the "auto mode" of the gen being active or inactive. Email notifications on start, stop, over/under voltage and fuel level status.

Below a screenshot of the Blynk app - (currently loadshedding):
Screenshot_20220202-153611.png

Am very happy with the result and looking forward to building some more IoT projects!
 
Top
Sign up to the MyBroadband newsletter
X