Buzzer with a potentiometer

Turn a potentiometer to change the pitch, mapping the reading up to 1500 hertz. 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 declare a frequency called buzzer on pin 9. We declare a potentiometer called pot on analog pin 0. We create a number variable called reading. Inside the loop we set reading to what the pot measures. Behind it we put the buzzer with a Map block in its hertz. We map the variable reading from 0 to 100 into 0 to 1500 hertz. When you finish, the app takes you straight to the next tutorial in the path. ...

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

From text to number

Read a number typed into the terminal and do math with it using the To number 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 add a While loop, which repeats forever. We create a text variable called typed. We create a number variable called result. Inside the loop we save whatever is typed into typed. Behind it we set result to a sum. To number turns the text into a number that can be added. We give the variable typed to the To number block. On the dashboard we draw a terminal and give it the variable typed. We add a label and give it the variable result. When you finish, the app takes you straight to the next tutorial in the path. ...

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

Guess the number

Compare what the player types against a secret number and say when they get it. 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 text variable called message. We create a number variable called guess. Inside the loop we set guess to whatever is typed, using Wait. We add an If with a comparison in its condition. We compare the variable guess against the secret number 7. If they get it, we write You got it into message. On the dashboard we draw a terminal and give it the variable message. When you finish, the app takes you straight to the next tutorial in the path. ...

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

Motor with a slider

Set the speed of a motor from the dashboard with a slider. 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 reading. We declare a motor on pins 2, 3 and 4. Inside the loop we put the motor and give it the variable reading. On the dashboard we draw a slider. And we give the slider the variable reading. When you finish, the app takes you straight to the next tutorial in the path. ...

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

Random neopixel

Give the neopixel a new random color on every turn of the loop. 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 declare a neopixel of 1 led on pin 9. Inside the loop we put a delay of 100 milliseconds. Behind it we put the neopixel block. Its blue is a random number from 0 to 100. Its green is another random number from 0 to 100. And its red is a third random number, so the color keeps changing. When you finish, the app takes you straight to the next tutorial in the path. ...

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

The right password

Compare two texts with the Compare block and use Not to know when the password fails. 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 text variable called password. We create a number variable called wrong. Inside the loop we save whatever is typed into password, using Wait. Behind it we set wrong and give it the Not block. Inside the Not we put Compare, which is 1 when the texts match. We compare the variable password against the password sun. On the dashboard we draw a terminal and give it the variable password. We add a label with wrong, which is 1 when the password is not sun. When you finish, the app takes you straight to the next tutorial in the path. ...

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

Is it in range?

Join two comparisons with the logical And to know whether a number is between 10 and 20. 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 number. We create another number variable called inside. Inside the loop we set inside to an And block. In the first slot of the And we put a greater-than comparison. That comparison says number is greater than 10. In the second slot of the And we put a less-than comparison. That other one says number is less than 20. On the dashboard we put a slider and give it the variable number. We add a label with inside, which is 1 only when it is in range. When you finish, the app takes you straight to the next tutorial in the path. ...

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

Motor with an ultrasonic sensor

Make the motor spin faster or slower depending on how far away an object is. 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 declare a motor on pins 2, 3 and 4. We declare an ultrasonic called ultra, trigger on 5 and echo on 6. We create a number variable called reading. Inside the loop we set reading to the distance the sensor measures. Behind it we put the motor and give it the variable reading as its speed. When you finish, the app takes you straight to the next tutorial in the path. ...

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