!Disco Ball!
A disco ball (also known as a mirror ball) is a roughly spherical object that reflects light directed at it in many directions
TinkerCAD
Arduino
Breadboard
Resistors
Crocodile/Alligator Wires
Jumper Wires
Arduino UNO Board
USB cable
Red&Blue LEDs
ON/OFF Switch
Ultrasonic Distance Sensor
5V Adapter
180° Servo Motor
Mirror Paper
Cardboard
Electric Tape
Scissors & Cutter Knife
Components list:
4 LEDs ( 2 Red & 2 Blue) as an OUTPUT components
4 Pcs resistors; 220 OHM. One resistor for each LED
ON/OFF switch as an INPUT component
Servo motor as an OUTPUT component
Ultrasonic distance sensor as an INPUT component
Arduino UNO board connected to laptop via USB cable to upload the code
Electric circuit OFF state
Electric circuit ON state
Circuit simulation on TinkerCAD
Screenshot from Arduino C code
Wired the 4 LEDs and 4 resistors on the breadboard using jumper wires.
Connected the 4 LEDs to Arduino UNO board same pins sequence on TinkerCAD.
Connected and tested the Servo motor and ultrasonic sensor.
Afterwards, connected the on/off switch following the circuit on TinkerCAD.
Lastly, connected the Arduino UNO board to my laptop via the USB cable.
Uploaded the code for troubleshooting and testing.
Folded 3D Polygon Paper Ball using the mirror paper.
Covered the cardboard side with the same mirror paper for reflection.
Cut a rectangle hole to mount the servo motor and 4 small holes for the LEDs.
Reused a cardboard box I had from another project, and turned it into a case for the electric circuit and Arduino board.
Cut 4 holes on the box sides to mount the on/off switch, USB cable, 5V adapter and the ultrasonic sensor.
Final output:
While mounting the components onto cardbaord box, it was challenging to keep the Arduino board in place.
So I purchased an Arduino acrylic case to make it more compact and easier to secure in place using a plastic cable zip.