#6 Components, Components, Components

Creating a shopping list for the electro shop isn't that easy.

Creating a shopping list

The first step of the day is creating a shopping list. Otherwise, I would end up at the electronics shop every single day.

From 230V AC to 9V DC

Since my bells ring on AC while the talking loop of my phones works on 9V DC, and I don’t want to deal with multiple sockets or batteries, I need to create a circuit that can convert 230V AC to 9V DC.

Step 1: Stepping down the voltage 230V AC -> 24V AC

I want to power my project from a standard wall socket (230V AC). To step down the voltage, I need a transformer. I’m using an Ezviz EZ030 transformer.

Step 2: Rectifying the voltage

To convert the AC to DC, I need a bridge rectifier. After the bridge rectifier, the voltage looks like a series of “little arches.” To turn that into a constant, straight line, I added a capacitor. Now, my output is 34V DC. That is way too high for what I need.

Step 3: Regulating 34V DC down to 9V DC

Idea 1: Using voltage regulators

Dropping the voltage from 34V DC (or higher, as that is the voltage after the bridge rectifier and capacitor) down to 9V DC is a significant step down. Using just one linear voltage regulator wouldn’t be enough because it would get too hot. I tried making a cascade of different voltage regulators, and while this would work, heat management would still be a problem.

Idea 2: Using a buck converter

Luckily, a buck converter can do the job perfectly. I’m using an LM2596S. However, there is one big issue: the maximum input voltage of this converter is 40V. My rectified voltage is very close to that limit, especially when there is no load on the circuit, as the voltage can spike to nearly 40V.

To make sure I don’t burn out the buck converter, I would normally need to add a Zener diode and a fuse. For now, I’ve simply chosen to switch the output voltage of my transformer to 12V AC to keep things safe.

The talking circuit + Arduino

To make the talking circuit work, I need:

The transistor handles the higher current needed by the relay, while the diode protects the components from damaging back-EMF voltage spikes (a high-voltage spike that occurs when the power to an inductor, like the coil inside a relay, is suddenly cut off).

Building the Arduino sound circuit

Now that I have all the necessary components, I can start building my sound circuit. The first thing I wanted to test was whether I could actually play music from my Arduino into my phone. Everything about sending sound from my Arduino to the phones is written down in this post.

By the end of the day, I could play 2 seconds of music!

next post
previous post
Jana Elst

elst.jana@gmail.com

Ghent, Belgium