L0 goes disco!

In this tutorial, we will discover how to create a setup where a potentiometer is used to control which leds to turn on. So far, it doesn't seem so new. But the real changes are that:

  • first, the potentiometer and the leds will be on two separated boards.
  • second, we will control them from your computer via a USB Gate and program them in a few lines of Python.

Basically, at the end of the tutorial you should have a fully working setup like this one:

The result of this tuto

But before that, there is actually quite a lot to cover! The tutorial will thus be split into four parts:

  1. In the first one, we will describe the Luos key concepts: the Core, Driver and Gate paradigm. We will explain the modular approach we have chosen, where you can composed your robot from individual boards each fulfilling a specific feature. Luos is then designed to let you program them as a whole transparently. We will also talk about the L0 board used throughout the tutorial.

  2. In the second part, we will be more concrete and plug LEDs on one of the L0-GPIO Core, link it to the L0-USBGate and show how to control them with Python using pyluos!

  3. In the third part, we will connect a button and a potentiometer to the other L0-GPIO Core and see how to retrieve data from an Input (both digital and analog) in pyluos.

  4. Finally in the last part, we will close the loop and link all together and see how to turn on the light on one board with the potentiometer on the other board!

Note: As you can see, this series of tutorial will be quite dense! To keep focus, we will omit some parts that will be described in future tutorial. In particular, we will not talk about how to flash the Luos Cores here. We will assume they are already flashed in the correct configuration. We will also not dive into the code used in each of the Core or how they communicate together. But don't worry we will cover those aspects as well in the future!

Ready? So buckle up, Buckaroo!

results matching ""

    No results matching ""