Skip to main content

Controlling the built-in LED

After applying the Setting up steps in the previous tutorial, you should be ready to start your first tiny project using the Tamra IoT board.

We'll start by something simple that doesn't need any more components of you than the ones you already have: the Tamra IoT board! For this tutorial, we'll control a small LED embedded in your board that you can see clearly in the following picture.

Built-in LED

To start controlling the built-in LED in your board using the Tamra application, you need to apply some changes to your node settings. The built-in LED is the D13 port of your board, so you need to:

  • Activate D13 Port
  • Set D13 Port to Digital Output
  • Change the name of D13 to a more respenstable name
  • Change the value of D13 port to control your LED

At the end of this tutorial, you should be able to control your built-in LED remotely.

Edit node settings

  1. Click on the burger menu icon

    Burge Menu Icon

  2. Go to Connected Nodes Section on the application

    Connected Nodes

  3. Start by clicking on the Settings icon next to the New Node.

    New Node Settings

  4. You can edit your node name by pressing on the Node Name box and edit your Node Name to the name you want.

    Node Name Box

  5. To activate D13, scroll down until you reach

    Port: Port D13

    And swipe the switch to the right to activate the port.

    Port D13

  6. You can edit your port name to be more representable by pressing on the Port name Box and edit the port name to LED for example.

    Port Name

  7. Each Port has many options, D13 for example has Digital Input and Digital Output. However, we need to turn a LED on and off so, pick the Port Mode to be Digital output.

    Port D13 Digital Output

    Port D13 Digital Output

    For more node settings and when to use each one, take a look at How to edit port settings and Signal types sections.

  8. Scroll down and press on Save Settings to save your new Settings.

    Save Settings

After activating the built-in LED port D13 and setting it to Digital Output, you can now control your LED.

Control your LED

  1. Go to the Home Page of the Application and press the activated Node.

    Home Page

  2. You can now see LED above a slider that you can control.

  • To turn the built-in LED on, swipe right.
  • To turn the built-in LED off, swipe left.

Control Port D13 - Off

Control Port D13 - ON

You'll notice that when you swipe the slider to the right, a Red LED on the board is turned on, and when you swipe it to the left, the Red LED is off.

Congratulations! You have just made your first IoT project successfully and now you can control the built-in LED using your mobile from anywhere, impressive right?