Page 012 Teaching Events - johnmholmes/Arduino-CBUS--Introduction-Series GitHub Wiki

Page updated 2/10/24

YouTube Video

The latest in the series of videos is now available walking through this process.

https://youtu.be/875wmqbxqT8


Stage 1 Added 2nd module

  • I have add a second module to the CBUS network in the same way as we did in page 10 of the wiki
  • Node variables have been set for the inputs.
  • I have not yet grounded out the 6 input pins.

Screenshot 2024-01-24 100102


Stage 2 Teach event 1

  • Select the producer module by highlighting it.
  • In the events associated window.
  • Select the event you want to use as the trigger.
  • Drag and drop that event to the node you want to teach the event to.

Screenshot 2024-01-24 122222


  • Value 1 is used for start of day events for the module to report the current switch states. I will not be using this at this stage so will not explain it.
  • Value 2 will use the first led, which in my case is attached to pin 3.
  • You have 4 options to choose from.
    • 0 equals led off.
    • 1 equals led on.
    • 2 flash led every 500 milli-seconds.
    • 3 flash led every 250 milli-seconds.
    • you could change the flash rates within the sketch if you wished. Lines 346 & 350 in my example.

Screenshot 2024-01-24 122645

Stage 3 Event Variables setting