Skip to content

Software

CDP Technologies edited this page Sep 8, 2017 · 2 revisions

Follow the video tutorial to see:

Setting up the system and deploying to the Pi

  • We go through the setup and wiring of the Raspberry Pi, create a system, add GPIO and configure the pins
  • Deploy to the RPI to verify that all is set up and wired correctly by toggling LED’s on and off from the Configuration Mode

Creating our library and setting up our LED Controller component

  • We create a LED controller component that includes a state machine with 4 different states of operation
  • We build our library, add our new LEDController to our application
  • We setup the GPIOPins to use values from our new LEDController using the routing system

Creating a simple GUI for our control system

  • We create a GUI in the Design Mode to communicate and control our application
  • The GUI consists of buttons for changing between the states, include a small visualization of the LEDs and set up the routing for all GUI widgets. The buttons communicate with the LEDController using messages

Using operators to improve our system

  • Looking at the completed system we notice that the LED visualization in the GUI does not display the correct colours
  • We fix this by applying scaling operators to the output signals of our LEDController component

Clone this wiki locally