Skip to content
omstev edited this page Oct 10, 2017 · 2 revisions

CDP Studio logo
Welcome to the RaspberryLEDBlinker wiki!

Introduction

The goal of this is a small project is to shows how to setup the GPIO to control 3 LED lights and make different blinking patters depending on a state machine, all controlled by a simple GUI.

View the GPIO video demo and tutorial

This project demonstrates:

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