Mixing Colors - Introduction to Input/output With Tektech (LV1)

by techteker in Circuits > Electronics

212 Views, 0 Favorites, 0 Comments

Mixing Colors - Introduction to Input/output With Tektech (LV1)

Light sensing (1).png
RGB Switch
Screen Shot 2021-11-16 at 9.19.54 PM.png

RC1 is an educational computing device. It acts as a brain to control multiple inputs and outputs.

With RC1, you can explore science experiments, create video games to build motorized vehicles and robotic arms.

RC1 contains an RGB light. This light can glow in three different colours (Red, Green and Blue) hence the name.

RC1 also contains 4 programmable buttons. (Buttons are labelled B1 to B4)

In this tutorial, we will build and code a light switch with RC1 using the RGB light and buttons

Supplies

  1. TekTech RC1 + USB wire
  2. Download APP (Windows Only)

Imagine It

We want to create an algorithm that powers each color with a separate button.

This can be done through different code variations:

Example 1: When the user presses button 1, the red light is on, when the user presses button 2, green light on, and so on

Example 2: When the user is pressing button 1, the red light is on, but when the user releases button 1 the button turns off. The same goes for the other buttons.


Code

2021-11-17 (7).png
2021-11-17.png

Explore the codes and consider the differences between both.

Test It

Press each button, can you see the different colors?

How about if you press two or three buttons together? what happens?

Reflect on It

Try to mix colours together.

Send a morse code signal.