Page 006 Testing Hard Coding Approach - johnmholmes/Arduino-CBUS--Introduction-Series GitHub Wiki
Last updated 3/10/24
Introduction
As part of my journey into understanding CBUS my first approach was to do some simple hard coding on the modules. I created 2 simple sketches to do this.
Cbus_01
- This was just to see if I could create a simple module to send out 2 CBUS style messages on the can bus network.
- This sketch was connected to the second module which had the Cbus_led1_v1
Cbus_led1_v1
- This sketch is programmed to respond the events on the bus that matched that of Cbus_01 and depending the the event it would turn on or off an LED
Conclusion
This work was a big step forward for me in the journey. However on reviewing the project 10 months later I encountered a few issues.
- The two sketch had stopped compiling with the library I had been using.
- To fix the problem I need to change the sketches to fix some of the issues thrown up by the MCP_CAN library. I am not sure what has changed to affect this within the library.
With the sketches altered this does mean a number of my YouTube videos are incorrect. At this point I do not have the time to remake them, but have added the links to the new code in this repository.