Chart an ultrasonic sensor

Read distance with an ultrasonic sensor and draw it 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 add a While loop, which repeats forever. We create a number variable called reading. We declare an ultrasonic called ultra, trigger on 9 and echo on 10. Inside the loop we set reading to the distance the sensor measures. On the dashboard we draw a chart and give it the variable reading. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 117 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

Button and led

Turn a led on and off with a physical button, mapping the reading from 0 to 100. 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 led on pin 13. We declare a digital input called button on pin 2. We create a number variable called reading. Inside the loop we put a delay of 100 milliseconds. Behind it we set reading to a Map block. What we map is the button, which only gives 0 or 1. And it comes out between 0 and 100, which is the led brightness. Behind it we put the led and give it the variable reading. When you finish, the app takes you straight to the next tutorial in the path. ...

August 12, 2026 · 1 min · 156 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