1. Blink
Make the LED on pin 13 blink: on for 500 ms, then off for 500 ms, forever.
The WorldNgayon network
WorldNgayonNews and guides on AI, online income and working abroadWorldNgayon ToolsEvery free tool we build, in one placeQR Code GeneratorFree QR codes for links, Wi-Fi and contacts, no watermarkWebsite Security ScannerFind the weak spots in a website and how to fix themMoney PlannerBudget your salary, track bills and reach your savings goalsStudentsYou are here: free science toolsReady-made projects you can open, run and change in the free microcontroller simulator: 32 guided projects with wiring and code, and projects published by students and teachers. Nothing to install and no account needed to open one.
Only reviewers see this box. Open a copy to check the circuit and the code (including comments) before you approve.
Published by signed-in students and teachers. Each one is checked by a person before it appears. Opening a project gives you your own copy.
Each one gives you the parts, a goal and a ✔ Check button that tests your wiring and code. Stuck? The 💡 Solution button shows the answer.
Make the LED on pin 13 blink: on for 500 ms, then off for 500 ms, forever.
Flash SOS in Morse code on the LED on pin 13: three short flashes (200 ms), three long flashes (600 ms), three short flashes, then a pause of about 1.4 s, and repeat. Keep 200 ms off between flashes and a longer gap (about 600 ms) between letters.
Green for 3 s, then yellow for 1 s, then red for 3 s, and repeat. Only one light may be on at a time.
Light the four LEDs on pins 2, 3, 4 and 5 one at a time, each for 200 ms, in order 2 → 3 → 4 → 5, and repeat. Only one LED may be on at a time.
The LED on pin 13 is on only while the button on pin 2 is held down. The button connects pin 2 to GND.
Turning the potentiometer on A0 sets the brightness of the LED on pin 9, from off (knob at 0) to full (knob at max).
Turn the LED on pin 13 on when it gets dark and off when it is bright. The light sensor on A0 reads high in bright light and low in the dark: switch the LED on when the reading is below 400.
Turn the knob on A0 to light a bar of LEDs on pins 2, 3, 4, 5 and 6, like a volume meter: knob at 0 → no LEDs, knob at the top → all five. Light them from pin 2 upwards, with no gaps.
Play the C major scale on the buzzer on pin 8, going up: C D E F G A B C (262, 294, 330, 349, 392, 440, 494, 523 Hz). Each note 300 ms with a short gap, then stay silent.
Each press of the button on pin 2 (wired to GND) switches the LED on pin 13 on or off, and it stays that way after you let go. Holding the button down must not make it flicker.
Read the TMP36 on A0 and work out the temperature in °C. Above 30 °C, turn on the red LED on pin 13 and sound the buzzer on pin 8 (tone 1000 Hz). At 30 °C or below, both are off. Print the temperature to the Serial Monitor.
Turn the knob on A0 to choose the colour of the RGB LED (red on pin 9, green on pin 10, blue on pin 11): knob in the first third → red, middle third → green, last third → blue. Only one colour at a time.
Make the servo on pin 9 follow the knob on A0: knob at 0 → 0°, knob in the middle → 90°, knob at max → 180°.
Test your reflexes. After a random wait of 1 to 3 seconds, turn on the LED on pin 13. Measure how long until the button on pin 2 (wired to GND) is pressed, and print it to the Serial Monitor in milliseconds. Turn the LED off and start again.
Four buttons on pins 2, 3, 4 and 5 (each to GND) move the servo on pin 9 to 0°, 60°, 120° and 180°.
Measure distance with the ultrasonic sensor (TRIG 7, ECHO 6). Beep the buzzer on pin 8 faster as an object gets closer, and stay quiet beyond 100 cm.
A relay lets a small Arduino pin switch a separate, bigger circuit. Switch the relay on pin 7 on when it gets dark (light sensor on A0 below 400) so it lights the 6 V bulb, and off when it is bright.
Show the digits 0, 1, 2 … 9 on the 7-segment display, one per second, then start again. Segments a–g are on pins 2–8.
Count button presses on the 7-segment display (a–g on pins 2–8). Start at 0; each press of the button on pin 12 (wired to GND) adds one; after 9 it goes back to 0. Holding the button down counts only once.
Use the ultrasonic sensor (TRIG 7, ECHO 6) and the servo on pin 9 as a door. When something is closer than 30 cm, open the door (90°). Close it (0°) only after nothing has been near for 1 second.
Car lights on pins 12 (red), 11 (yellow) and 10 (green); a push button on pin 2 (to GND). Cars normally have green. When someone presses the button: yellow for 1 s, red for 4 s, then green again. Cars must always get at least 3 s of green between crossings: if the button is pressed too early, remember it and start the crossing when the 3 s are up.
Press the button on pin 12 (wired to GND, use INPUT_PULLUP) to roll: the 7-segment display (a–g on pins 2–8) shows a random number from 1 to 6 and keeps it until the next press.
Switch a fan on the relay (pin 7) with the TMP36 on A0: on when the temperature goes above 28 °C, and off only when it falls below 26 °C. Between 26 and 28 °C it keeps doing what it was doing (this gap is called hysteresis).
Show the temperature from the TMP36 on A0 on the first line of the 16×2 I²C LCD (for example “Temp: 24.8 C”). On the second line show HOT when it is above 30 °C, otherwise OK. Turn the backlight on.
Measure distance with the ultrasonic sensor (TRIG 7, ECHO 6) and show it on the LCD’s first line, for example “Distance: 45 cm”. On the second line show TOO CLOSE when it is under 20 cm, otherwise OK.
Use the knob on A0 to drive the DC motor through the L298N (ENA on pin 10, IN1 on 9, IN2 on 8). Knob in the middle: stop. Turned right: forward, faster the further you turn. Turned left: reverse, faster the further you turn.
Build a stopwatch on the LCD. The button on pin 2 (wired to GND) starts it; the next press stops it, and the time stays on screen. Show the time in seconds with one decimal place on the first line (for example “Time: 3.4 s”).
Program the robot car to follow the black line for a full lap. Two IR sensors at the front read HIGH over the black line (left on pin 2, right on pin 3). The L298N drives the left wheel (motor A: ENA 10, IN1 9, IN2 8) and the right wheel (motor B: ENB 5, IN3 7, IN4 6).
Build the classic Simon game. The Arduino plays a growing sequence on the four LEDs (pins 9, 10, 11, 12: red, green, blue, yellow, each with a 220 Ω resistor) with a tone on the buzzer (pin 8); the player repeats it on the four buttons (pins 2, 3, 4, 5, each to GND, INPUT_PULLUP). The score shows on two 7-segment displays driven by two chained 74HC595 shift registers (already built for you): connect A0 to SER (pin 14), A1 to RCLK, the latch (pin 12), and A2 to SRCLK, the clock (pin 11) of the first 74HC595. A wrong button ends the game.
Connect the ESP32 to Wi-Fi and start a web server. The page at / must have links to /on and /off, and opening them must switch the LED on GPIO 23 on and off. Try it with the phone next to the board.
Read the TMP36 on GPIO 34 and show the temperature in °C on a web page at /, so anyone on the same Wi-Fi can check it from a phone (for example "24.0 °C"). Open the page on the phone, then change the temperature and refresh.
Read the MPU6050 accelerometer. When the ground shakes harder than everyday vibration (like a passing truck), sound the buzzer on GPIO 25 and light the LED on GPIO 26 for at least 2 seconds. The checker gives you stillness, then a truck, then a real earthquake.
A page of ready-made Arduino and ESP32 projects you can open and run in the free Science Tinker simulator. It has the 32 guided projects written by Science Tinker, from Blink to a line-following robot, and projects that signed-in students and teachers have chosen to publish.
Sign in (free), build and save your design in Studio, then open your dashboard and press Publish on the design's card. Give it a clear name and a short description. A person at Science Tinker checks every project before it appears here, usually within a few days.
No. Opening a project from the gallery always opens a copy. People can study it, run it and change their own copy, but your original stays exactly as you published it. You can unpublish it from your dashboard at any time.
No. A published project shows only its name, description, picture, circuit and code. Your email address and account are never shown. Do not put your full name, school, address or contact details in the project name, description or code comments.
Press Report on the project's card. Reported projects are checked by a person, and a project that is reported several times is hidden straight away until it has been checked.