Page 168 - CodePilot V5.0 C7
P. 168
DESIGNING A LIGHT WITH A SWITCH ARDUINO
You can create a simple light circuit with a switch by opening a new circuit window in Tinkercad Arduino is a small electronic board that can follow instructions to control things like lights,
and adding components like a 9V battery, switch and light bulb. motors, sensors and more. It is like a tiny computer that helps you build smart devices. You
To design a light with a switch, follow the given steps: write code and the Arduino board reads it and makes things happen—like turning on a light or
moving a robot.
Step 1 Click on the Project Name and rename your project (LIGHT WITH SWITCH).
The following are the types of Arduino boards:
Step 2 Connect the positive terminal of the 9V battery to the left leg of the switch using a
red wire. Arduino Uno: Arduino Uno is the most popular and beginner-friendly
Step 3 Connect this left leg of the switch to one leg of the bulb using a green wire. board. It is easy to use and perfect for simple projects like blinking
Step 4 Connect the negative terminal of the 9V battery to the middle leg of the switch using LEDs, sounding buzzers or building a basic circuit. Most students start
a black wire. learning Arduino with this board.
Step 5 Connect the free leg of the switch to the free leg of the bulb using an orange wire.
Arduino Nano: Arduino Nano is a smaller version of the Uno.
Step 6 Click on the Start Simulation button to test the circuit. It works the same way but is tiny, which makes it perfect for small
or portable projects. It can also fit on a breadboard, which helps
A typical value for LED in building neat and compact circuits.
circuits is 220Ω or 330Ω.
SHORT SIGN Arduino Mega: Arduino Mega is larger and more powerful than Uno.
It has more memory and more pins, which means you can connect
To Start/stop many sensors, motors or displays at once. It is often used in bigger
simulation: Spacebar projects like robots or home automation systems.
Arduino Leonardo: Arduino Leonardo is special because it can act like a
Once you turn on the switch, the circuit will be complete and the bulb will computer keyboard or mouse. This means you can use it to build devices
light up. that control your computer with buttons or sensors, like making your own
game controller.
The output shows the bulb lighting up, indicating that the circuit is
correctly connected and functioning as expected.
Arduino LilyPad: Arduino LilyPad is a round and soft board designed
especially for wearable projects. You can sew it onto clothes and connect it
MICROCONTROLLER with special thread instead of wires. It is perfect for making smart clothing,
light-up costumes or wearable gadgets.
A microcontroller is a small, programmable chip that functions as the In Tinkercad, Arduino is a virtual version of the real Arduino board. It allows you to build and test
brain of an electronic device. It contains a processor, memory and pins
that allow it to connect to other components in a circuit. By following your electronic projects on a computer screen, without using real wires or parts.
instructions written in code, it can control various things, such as lights,
motors and sensors. This makes the microcontroller an essential part COMPONENTS OF ARDUINO UNO
of many electronics projects. Microcontrollers are used in everyday
objects like robots, smart devices and home appliances to help them The Arduino Uno is a versatile board that controls devices, reads sensor data, provides power
work automatically, making tasks easier and more efficient. and enables interaction through input and output connections.
166
CodePilot (V5.0)-VII

