Samar / Portfolio
All projects
Electronics · Guided exercises

Arduino — Learning Electronics Through Experiments

I worked through six Arduino exercises and documented the wiring and behavior that needed troubleshooting.

Reference circuit and schematic from the lamp exercise; not my original design.
Reference circuit and schematic from the lamp exercise; not my original design.

Learning through small builds

I worked through a series of Arduino Starter Kit projects to learn how circuits and code interact. These were guided exercises rather than original inventions. My part was assembling the circuits, running the sketches, checking what happened, and working through problems when my components or wiring did not match the instructions.

I have grouped the projects together because they show different parts of the same learning process: reading an input, deciding what it means, and controlling an output.

Touch sensing: trying something beyond the instructions

In the Touchy Feely Lamp project, I used the CapacitiveSensor library to read a touch-sensitive connection and switch an LED when the reading crossed a threshold. I also tried it with my family: all four of us held hands, and the people at the ends connected to the sensing setup. I reported that the lamp still responded.

That experiment made me curious about what the circuit was actually measuring. Touch changes the electrical coupling and the sensor reading; our bodies were part of the sensing arrangement, not the power source for the LED.

Servo control: working out the wiring

For Mood Cue, a potentiometer controlled a servo. The sketch mapped the analog reading to an angle and sent that angle to the motor.

I ran into a breadboard connection problem because the potentiometer did not fit as the handbook suggested. I added a jumper to connect the signal across the breadboard’s center gap. I also noticed that the servo wire order differed from the handbook, so I had to check the connections on the actual component rather than rely on the drawing alone.

A physical knob controlling a screen

The Logo Tweaker project connected the Arduino to a Processing sketch on the computer. Turning a potentiometer changed a color on screen. The Arduino read the analog input, scaled the value, and sent a byte over serial.

The post records using a one-second delay to make the data easier to follow during debugging. It also explains how printing the serial-port list helps identify the board’s port. This introduced me to a project where the hardware and a separate computer program had to communicate.

Other experiments in the series

The Magic 8-Ball combined a tilt switch with a 16×2 LCD and random responses. I added a bridging wire for the potentiometer connection. In a comment on the post, I noted that it sometimes produced answers rapidly; I did not document a fix.

The Love-O-Meter used a TMP36 temperature sensor and LEDs. I reported replacing a board with a faulty pin, then finding that the test only lit one LED when my hands were cool relative to the room.

The Digital Hourglass used six LEDs, a tilt switch, and elapsed time from millis(). I recorded ten-minute intervals and clarified a timing-unit mix-up from the video. Together, these exercises introduced displays, thresholds, state changes, and timing.

What this series taught me

I started to see why getting a sketch to run is only part of a hardware project. The connections, the component I actually have, and the conditions of the test all affect what happens.

The most useful moments to keep are specific ones: bridging a missing connection, checking servo wiring, and trying the touch sensor with more people. If I revisit the series, I would save the exact sketches and circuit photos, record sensor values, and keep a short log of each problem and change.

Code and demonstrations

Lamp demonstration

Mood Cue demonstration

Watch the project

Touchy Feely Lamp demonstration Open video separately
Mood Cue demonstration Open video separately