Let's Control Multi-tap With Web Page
by joon874 in Circuits > Microcontrollers
1380 Views, 17 Favorites, 0 Comments
Let's Control Multi-tap With Web Page
This instructable shows you how to control electrical goods in you house with Web Server using WIZwiki-W7500.
For this project, I implement my own relay shield compatable with WIZwiki-W7500.
This idea came from IOT(Internet of Things) like home automation. So, I tried to control any electrical goods with WIZwiki-W7500 as web server. And hardwired TCP/IP in W7500 help me to build web server.
These steps following now will help you to make your own IOT in home.
Let's do it!
Parts
1. WIZwiki-W7500
It has hardwired TCP/IP and Cortex-M0 core then make me choose this.
- USB cable for power and download firmware to W7500.
- LAN cable to use ethernet
What is WIZwiki-W7500 : WIZwiki-W7500
2. Relay
I choose ALQ105 relay from many other options. With this, turning on/off goods it is passable.
ALQ105 datasheet : ALQ105
3. Multiple tap
The aim of this project is control this Multiple tap to handle any other electrical goods.
4. Others
- Transistor 2N2222 x 1
- Diode 1N4148 x 1
- LED(Red) x 1, LED(Green) x 1
- Breadboard
- Jumper cables
- register 330Ω x 2
Wire the Circuit
In this circuit, I use transistor(npn) to convert 3.3v level from the output pin to 5v for Relay.
For simple circuit, you can find 3v Relay then enjoy without transistor I used.
Relay datesheet : AJQ105 datasheet
If you read relay datasheet, you can find 5 pins, coil, com, N.C. and N.O.
N.C is normal close and N.O is normal open.
Without no signal from outside, normally, N.C is set with com and N.O is open.
But N.O is set with com when coli has got control with external signal.
With this basic, The power supplies the bread board, Red led turns on via N.C. (PC_6 is Low).
After that, if you set PC_6 High, coli inside the relay set the N.O high then you will check the Green led on.
Software Configuration #1
Let's install compiler for WIZwiki-W7500.
WIZwiki-W7500 Compiler is Keil uvision5.
Let you click more details of download and installation. : How to install Keil
If you prefer gcc compiler, click here : How to install gcc
Software Configuration #2
After installation compiler, you need to download Project and driver for WIZwiki-W7500.
Download Project : https://github.com/joon874/WIZwiki-W7500.git
WIZwiki-W7500 has Cortex-M0, so it uses ARM serial driver.
Download Driver : ARM Driver (Download lastest driver)
How to download firmware to WIZwiki-W7500 : Download Firmware
Working Test With Wiring Breadboard
This is the Demo video to show how it works with web server and if working well.
As you see, with clicking the buttin on web browser, I can find relay working as I designed.
But, my final aim is to control 220v goods, not 3.3v LED.
Real Hardware Implementation
Soldering all parts from breadboard.
And I add pin socket to make compatible shield with WIZwiki-W7500 (and Arduino) and connector for multiple tap.
Actually, WIZwiki-W7500 can have any arduino shields. It's pins are compatible with arduino(WIZwiki-W7500 pinout).
There is one thing you must consider. 220V level will supply into 'com' in relay. So you have to make hardware to handle high voltage level. I did it with 220v wire and covered it like upper picture.
Please be careful of handling 220v.
Final Video
This is the final perform with real hardwared rely shield on WIZwiki-w7500.
I just pluged in fan but it is passable to connect any 220v or 110v electrical goods.
Now, you can control any things in home with web server.
Enjoy it!!