Supplier photo of an assembled radio kit with a purple circuit board, telescopic antenna and clear case.
Supplier photo
Temu affiliate offer · Project idea

Build a radio

Soldering required. Check the supplied parts and board revision.

View kit on Temu

Tricky Circuit may earn a commission through these links. Product ideas have not been bench-tested by Tricky Circuit and are not verified lesson parts lists.

🎛️🤖Controlling the SG90 servo with a potentiometer


🔹 Components Needed

✅ Arduino (Uno/Nano/etc.)
✅ SG90 Servo Motor
✅ 10kΩ Potentiometer
✅ Jumper Wires & Breadboard


🔹 Circuit Connections

ComponentPinConnect To
SG90 ServoRed (VCC)5V
Brown (GND)GND
Orange (Signal)Pin 9 (PWM)
PotentiometerLeft PinGND
Middle PinA0 (Analog Input)
Right Pin5V

🔹 Arduino Code (Servo Control with Potentiometer)

#include <Servo.h>

Servo myServo;  // Create servo object
int potPin = A0;  // Potentiometer connected to A0
int potValue;     // Variable to store potentiometer value

void setup() {
    myServo.attach(9);  // Servo signal wire connected to Pin 9
}

void loop() {
    potValue = analogRead(potPin);  // Read potentiometer value (0-1023)
    int angle = map(potValue, 0, 1023, 0, 180);  // Convert to 0-180°
    
    myServo.write(angle);  // Move servo to mapped angle
    delay(15);  // Small delay for smooth movement
}

🔹 Steps to Run the Code

1️⃣ Connect everything as per the circuit diagram.
2️⃣ Upload the code to your Arduino.
3️⃣ Turn the potentiometer and watch the servo move smoothly! 🎛️🤖


🔹 What’s Next?

📡Broadcast the signal — amplify the connection.

Leave a Reply

Temu affiliate offers

Find your next electronics project

Explore these do-it-yourself project kits. Check the selected option, included parts and instructions on each offer.

Tricky Circuit may earn a commission if you buy through these Temu affiliate links. These are product ideas; they have not been bench-tested by Tricky Circuit and are not verified lesson parts lists.

Supplier photo of an assembled infinity mirror light cube illuminated on a dark background.

Supplier product photo

Build an infinity light cube

Listing specifies 5-volt direct current. Soldering required; battery and glue not included.

View kit on Temu

Supplier photo of a breadboard, jumper wires and assorted electronic components in a plastic storage case.

Supplier product photo

Try breadboard experiments

Breadboard, wires and assorted parts. Arduino controller board not included.

View kit on Temu

Supplier photo of an assembled blue surface-mount soldering practice board with a circular ring of small lights.

Supplier product photo

Solder a chasing-light board

Surface-mount soldering practice. Battery and battery holder not included.

View kit on Temu