Soldering the microcontroller and powering it up - part 11
If everything is connected correctly, the Arduino microcontroller will light up, powered with 5V from the 9V battery!
- #2541
- 10 Nov 2025
If everything is connected correctly, the Arduino microcontroller will light up, powered with 5V from the 9V battery!
In a circuit, ground is the common reference point for voltage and the return path for electric current. After electricity flows through components, it needs a clear way to get back to the power source. All ground connections are tied together, so every part of the circuit shares the same reference point, and the current can flow in a complete loop. This helps signals stay consistent, and components work correctly. If the grounds were not connected, parts of the circuit could act unpredictably or not work at all. In simple terms, connecting all grounds keeps current flowing properly and the circuit working reliably.
Don't connect the voltage regulator to just any 5V pin of the controller. There must be a VIN pin, which is a dedicated powering pin for the controller. That is the pin through which you can power it with 5V, as it passes the power through a voltage regulator and other protections, which make sure the power is delivered safely.
If the battery holder already has such a cable attached to it, feel free to use it.
Be careful not to connect any other red power cables to the one leading to the battery, as it transmits higher voltage, which, while harmless to us, can still fry your controller and LED lights. Once you solder the connection between the battery and the voltage regulator input 9V terminal, connect everything else in this project to the regulator's 5V output pin.
The position of the voltage regulator won’t affect the balance much, so it’s best to place it near the DIP switch.
If the battery holder already has a cable attached, you can use that one.
The position of the DIP switch doesn’t affect the balance much, so you can place it wherever you prefer.
We'll be marking and drilling holes a few times during this course. If possible, it may be useful to set up a work desk for yourself.
Make sure to solder the breakaway headers at the correct distance from one another , so you can mount the controller on top of them. If you solder them too close or too far apart, desoldering the breakaway headers will be a harder task than what is meant for this course.
We use breakaway headers so our electronics can stay safe and flexible. They let us connect parts together easily, but also snap them apart later without hurting the circuit. This is helpful because we can test things, fix mistakes, or change parts without rebuilding everything. Think of them like LEGO pieces - they click together when we need them and come apart when we don’t.
Attaching the PCB to the clock face is best done with two sets of hands.
You need not confine yourself to the use of drawing tools. You can easily choose an image from the internet, print it out, and stick it to the clock surface. Or maybe you have other ideas of how to customise the clock face?
We used dental floss to draw lines from the clock face diagonals, and drilled the holes where those lines met.
You need not place the clock's arrow hole in the center. As this is a design choice, you can be creative and place it wherever you wish. You can even customise the shape of the clock face as well, so it is not a plain square like ours.
Don’t worry about which electrical contact you connect to the positive or negative output terminals of the speed controller. The cables can always be swapped later.
Do not solder anything to the speed controller.
You need a very short exposed wire to solder to the DIP switch. Try not to strip too much ot it, as it may come in contact with the other end of the switch, effectively bypassing it.
Be careful not to cut the cable too short, as it is a headache to resolder a new one to the battery holder.
Make sure the components are well held in place before soldering. Some soldering station offers clippers that can hold the DIP switch and the PCB; however, you can use a ductype to achieve the same.
While using cardboard to protect the table from solder may look dangerous, solder cools very fast, and the temperature of the soldering gun is much too low to quickly start a fire. It would take deliberate actions to actually cause safety issues with it.
If you screw the bolts too far into the motor, it may stop working. This won’t be an issue later, but if it causes problems now, place a few nuts on the bolt before using it. This will stop the bolt from going too deep into the motor.
There is a way of mounting the drill bits faster and more reliably than what is shown in this video; however, it requires a steady hand and starting the drill while the drill bit is not yet mounted. We decided that it may pose danger for people not yet savvy with the drill, and that it is best to show how it was intended to be mounted. We strongly advise not using faster methods before you are very comfortable handling this tool.
The dip switch is mounted by using the holes that are already placed on the PCB board. Meaning that we don't need to drill any holes for it.
time to plan where everything on the PCB will go. You can rearrange the components as you wish, as long as the wire connections are done correctly after that.
If you’ve connected everything correctly, you can now turn on the motor and control its speed using the potentiometer.
The potentiometer is the small knob on the motor speed controller that you can rotate.
Time to make the final connection and complete the prototype.
To demonstrate that it does not matter where in the circuit we place the switch, we placed it at the negative battery terminal. However, in practice, it is always better to put it near the positive terminal as it lowers the area that can damage your electronics if accidentally touched by other power sources or grounding.
You can notice that the two positive terminals are placed in the middle. That is a common practice that has a few functionalities, like shortening the paths on the PCB, but the main purpose is to lower the chance that the power cables connected directly to the battery are more difficult to touch accidentally.