This PCB here that I call NOOBIX gives you full IOT control for anything.
A lamp, a fan, your stereo speakers, your printer, anything you want.
With a simple online push of a button from anywhere in the world, you can turn ON or
OFF any device that works at 220V AC.
This project is based on a previous tutorial where I show you how to use the ESP32 and
the HTTP library in Arduino IDE.
The PCB has its own voltage regulator from 220V AC to 12V, 5V and 3.3V DC, it has a solid
state relay to control 220V AC and 2 amps of current, it has pads for a very small ESP32
and it has the main input and output.
Is very easy to use so in this video let me show you how to create an IOT control using
this PCB and control any device around your house from anywhere in the world with internet
connection.
By the way, in the future we might make this PCB also work with Alexa so stay tuned for
that.
So, guys, let’s get started.
What’s up my friends, welcome back.
This is the PCB that I’ve designed for my project.
I’ve tried to make it as small as I could so it could fit inside of a basic wall electric
box.
This project works at 220V so make sure you stay safe and never touch the exposed wires.
Since it works at 220V AC and the ESP32 needs 3 to 5V DC, I’m using this voltage converter
module.
This is very small and will give us a very steady 12V DC and 1 amp of current which is
more than enough.
Then, on the other side I’m using two linear regulators to get 5V and 3.3V.
The ESP32 is controlling this SSR or solid-state relay.
And that relay is connected to the output where we can connect our load.
I’ve placed some pins around in case that you want to connect anything else to the ESP32.
So guys go and download the GERBER files for the PCB from below on electronoobs.com.
Then go to PCBWAY.COM and click the quote button.
Add the size of the PCB, the amount of boards that you want and select a color.
Since the green one is made faster, I selected the green solder mask.
Save to cart and on the next page click the upload button.
Now upload the GERBER files you’ve just downloaded from below my video.
Make the order and receive my PCB in just a few days.
Give them a quick inspection, but as always they look great.
Gather all the needed parts and have in mind that this is the schematic for this project
and you could download it from below.
We need the 12V regulator, the solid-state relay, an ESP32S smd version, some SMD capacitors
and resistors and the input and output terminals.
This should be the finished PCB and this is how we connect it to our load.
First I solder the voltage converter module.
For that add 4 male pins.
And on top of those pins we add the converter and we solder it.
I also add the input and the output terminals.
Then I carefully connect a 220V AC cable at the input.
Be careful, and then connect it to power and check the voltage output of the module.
If it is around 12V, we can continue.
Then I solder the 5V and 3.3V regulators on the back of the PCB.
Then I do the same and check the voltage output with my multimeter.
Now that we have the voltage regulation part we can add the rest.
I solder all the small resistors, capacitors, diodes and LEDs.
I add in place the SSR.
Finally I solder the ESP32 and the PCB is ready but we need a code uploaded with an
external FTDI programmer connected to the UART pads on the back of the PCB.
Please check my previous tutorial about IOT with the ESP32 in order to understand more
because I won’t go over those steps again.
In that video you learn how to make the website, the database, the internet connection and
so on.
Follow the same steps and get a website domain and a hosting service.
Create a database and then create a table called LED_status with two columns, one named
ID and another named status.
Create a new row with ID 0 and status 0.
Then download from below these three PHP files together with the CSS file and two images.
Open the connection.php file and place your values from your database for the host, name,
username and password.
Now save this php file and then you must upload all 3 files to your website directory together
with the CSS and the pictures.
If you go to your website you should now have a button like this one that should toggle
the LED status value on the database table from 0 to 1 and from 1 to 0.
Now download the Arduino Code.
You have to change your wifi name and password.
Then scroll down and in the http.begin function change the website from electronoobs to the
name of your website.
See in the previous video how to install the ESP32 boards.
Once you do that, go to tools, board and select the ESP DEV MODULE board.
Connect wires from an FTDI module like this one to the PCB.
RX to TX, TX top RX and DTR to DTR together with RTS to RTS.
Share ground and 5V.
Then in Arduino, select the COM and upload the code.
That's it.
Now as you can see, each time I toggle the button on my website, the LED on the NOOBIX
board is also turning on and off.
But now let’s connect it to high voltage.
Connect a 220V load at the output.
Then we add a cable at the input and connect 220V AC.
The board should automatically turn on.
Now I go to my website and as you can see, we can toggle the light bulb on and off.
And we can do this with any device.
And remember that this is not a local connection.
This works via the internet so you could control the NOOBIX module from anywhere in the world
with a simple internet connection.
In the near future I will add new lighting to my new workshop and I might use this kind
of control to make it.
Quite interesting, right?
Now I could add multiple modules and change the web interface with multiple buttons.
I give an ID to each one and I could control more than just 1 NOOBIX.
On my electronoobs.io website I’m working on such a platform but is better that you
make it yourself, because my access will be restrained because I can’t have too much
traffic on my website otherwise the website will crash.
So guys get all the files from below and create your own IOT NOOBIX module with my PCB, Arduino
code and PHP files.
If you know PHP and CSS coding, you could create a better website or even a mobile App
so good luck with that, it should be interesting.
I hope you like this project and that you have learned something new, and if so, consider
giving me a like or comment below.
Thanks again
and see you later guys.