State machine

Change what the program does depending on the value of a state variable. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We add a While loop, which repeats forever. We create a number variable called state. We create another number variable called output. Inside the loop we put an If with a comparison. That If asks whether state is 1. If state is 1, output becomes 20. Above it we put a second If, with its own comparison. That other If asks whether state is 0. If state is 0, output becomes 10. On the dashboard we put a slider to move the state. And a label with output, which changes with the state. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 157 words · Nairda

Traffic light with a neopixel

Chain colors and delays on the neopixel to build a traffic light. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a neopixel called light, with 1 led, on pin 6. We add a While loop, which repeats forever. Inside the loop we set the neopixel to red. Behind it a delay of 3000, which is how long the red lasts. Another neopixel, now in green. And another delay of 3000, which is how long the green lasts. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 122 words · Nairda

Distance alarm

Use Map so the buzzer sounds higher the closer an object gets. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create an ultrasonic called sensor, trigger on 10 and echo on 11. We create a frequency called buzzer on pin 8. We create a number variable called tone. We add a While loop, which repeats forever. Inside the loop we set tone to a Map block. What we map is the sensor reading. The distance comes in between 0 and 100 centimeters. And goes out as a tone between 200 and 2000 hertz. Behind it we put the buzzer and give it the tone variable. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 149 words · Nairda

Save into a table

Add a row to a table, write a number into it and read it back. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a table called data. We create a number variable called stored. We add a row to the table, so there is somewhere to save. Behind it we write the number 7 into that cell of the table. We add a While loop, which repeats forever. Inside the loop we set stored to what is in the table. On the dashboard we draw a label and give it the variable stored. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 138 words · Nairda

A two-servo arm

Move two servos at once from the dashboard with two sliders. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a servo called shoulder on pin 9. We create another servo called elbow on pin 10. We create a number variable called a. We create another number variable called b. We add a While loop, which repeats forever. Inside the loop we drop the first servo, the shoulder. We give the shoulder the variable a, which will be its position. Behind the shoulder we drop the second servo, the elbow. We give the elbow the variable b, so we can move it separately. On the dashboard we put a slider and give it the variable a. And another slider with the variable b, for the other servo. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 171 words · Nairda

The size of the table

Add rows with Repeat and watch the table grow with the Height block. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a table called data. We create a number variable called rows. We add a Repeat loop and ask it for 3 turns. Inside the Repeat we add a row to the table. Behind it we set rows to the Height of the table, which counts how many there are. On the dashboard we draw a label and give it the variable rows. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 128 words · Nairda

A car that dodges

Stop the car’s motor when the ultrasonic sensor finds an obstacle nearby. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a motor called wheel on pins 2, 3 and 5. We create an ultrasonic called sensor, trigger on 10 and echo on 11. We create a number variable called distance. We add a While loop, which repeats forever. Inside the loop we set distance to what the sensor measures. Behind it we set the motor to speed 100, so it moves forward. Behind that we add an If with a comparison. The If asks whether the distance is less than 20. If something is close, inside the If we stop the motor. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 157 words · Nairda

Remove a row

See how Remove row undoes an Add row and the table grows more slowly. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a table called data. We create a number variable called rows. We add a While loop, which repeats forever. Inside the loop we add a row to the table. Behind it we add a second row. And behind that we remove one, so each turn the table only grows by one. At the end we set rows to the Height of the table. On the dashboard we draw a label and give it the variable rows. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 143 words · Nairda

Chart a table

Fill a table with random numbers and draw them on the dashboard chart. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a table called data. We create a number variable called value. We add a Repeat loop and ask it for 20 turns. Inside the Repeat we add a row to the table. Behind it we write a random number into the table. The random goes from 0 up to 100. Behind it we set value to what we just saved in the table. We put a delay so the chart draws little by little. On the dashboard we draw a chart and give it the variable value. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 153 words · Nairda

Line follower

Read a digital sensor and stop the motor when the car leaves the line. This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on. The steps We create a digital input called eye on pin 4. We create a motor called wheel on pins 2, 3 and 5. We create a number variable called line. We add a While loop, which repeats forever. Inside the loop we set line to what the sensor sees. Behind it we set the motor to speed 100. Behind that an If with a comparison. The If asks whether line is 1, meaning the car went off. If it went off, inside the If we stop the motor. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 152 words · Nairda