Raspberry Pi IoT
New Projects!!
https://www.instructables.com/WiFi-Outlet-X2-Raspberry-Pi/
https://www.instructables.com/Wifi-Outlet-X4-Raspberry-Pi/
https://www.instructables.com/WiFi-Outlet-Raspberry-Pi/
*PLEASE NOTE THAT AS DISPLAYED UNDER CONSTRUCTION*
(Email, Timer, Login, Relay 8CH currently working on)
8CH seems to be most popular! 2to1 DL!!! so considering optional page for "8CH" the 4CH will remain.
When construction is done ALL pages maybe effected and a new package will be made for download and new instructions made...
*ALSO NOTE* It's labeled as "Area1" so you can have multiple locations! DESIGNED TO BE DUPLICATED INFINITLY! Which is why I did this intentionally so I can make more and duplicate the process! First one is going in my garage next in bedroom. I like controlling my lights and fans.
All coding is done in php
The relays can be controlled to do anything! I hope to get the timer to work because you could have it set on a water solenoid for a valve to water your garden! Or controlling a Siren as a security deterrent as 3D printed link for conversion as I also have attached. I am having this function user controlled. You'll have the notifications from sensors.
Two-Way audio is another option I would like to look into. But I already know it will be very difficult!
I AM LOOKING FOR HELP ON THIS PROJECT ANYBODY WILLING TO HELP. PLEASE COMMENT AND EMAIL ME. This would be pretty great if I can get rid of the construction. I figured that the relays and sensors and camera do work that I could actually post this to share with everyone!
Current stamp: Oct 8th, 2021
Updated: April 14 2022 (Fixed WiringPi GPIO, permissions, button sound)
When updated changes will be made...meaning a new file is listed here to download!!!***
Supplies
Raspberry Pi of choice (with memory card (8GB works fine)keyboard adpaters etc...) I am using a Pi Zero W tested also on Pi Zero 2W
Relay of choice (1,2,4,8)
Outlet Power Socket (snap in type, square) quantity of choice with relay.
5V 2A USB type power supply (picture in file) 1.4A measured MAX everything on and running!
Rocker Switch SPST 3Pin 15A 250VAC 20A/125VAC ON-OFF with Lamp Snap
Port for MAIN power coming in (CPU type) with cap and resistor "Obvious came from scrap"
Power cord (CPU type) "we all have tons!"
PIR Sensor Module
DHT22/AM2302 Digital Temperature Humidity Sensor
(2) Wired Door Window Sensor Magnetic Switch or reed switch
Raspberry Pi Camera of choice (I used IR cam for security purpose)
External Antenna mount on board(optional) air soldering required for this! Extreme difficult! "got parts from wfi camera board"
(U.FL/IPX to RP-SMA Female Antenna wire, antenna)
CPU Heatsink (optional BUT needed!) "I used scrap and cut to size"
(Thermal Grease CPU Heatsink Compound)
CPU micro mini fan (optional BUT needed) "15x15x5mm 5V 0.06A" (mounted using UV super glue)
(At max CPU temp with all this still can get to 105F) Without cam on it can stay under 100! As lucky as under 90F!
various amounts and sizes of wire (twisted wire from cat5E was used for sensors"22AWG", power for pi was random found wire"18AWG", surplus from power cords were the MAINS"14AWG")
Solder and soldering iron and flux
liquid tape
Super glue/UV super glue
Various amounts of hardware small screws for mounting everything (mounting of the prints, mounting of the boards)
3D printer and filament (optional if you can outsource the printing)
3D Printing
Soldering
Pre cut all wires out and tin them to be ready to for soldering together. Also the tips for going into the relay MUST be tinted to ENSURE long lasting connection if not and you skip tinting your connections will fail over time about a year. I've learned this mistake from my solar panels terminal to controller. Just because there's a screw terminal doesn't mean you go all bare wire in. That can cause corrosion and ware over time of course.... GET THEM TIPS TIN!
Wiring of the Raspberry Pi
I should say that the +5 and Ground connections are self explanatory.
The relays are wired to Pins: 29, 31, 33, 37
The sensors are wired to Pins: 13, 15, 16, 18
The skill set for this project is fair middle to hard. This is not that difficult except the external antenna connection. The external antenna is optional but very nice! If you do choose although this is the toughest soldering ever I had todo! They made it even harder with the Zero2.They want you to place a surface mount resistor in the jump I just solder it directly because how hard it is. GOOD LUCK! This part can take several hours! Maybe 8.
Things Done on the Pi
Sorry guys when I made new project for the wifi outlet. I ended up uploading to both projects and lost everything on this side. Since this project so far remains intact working at the moment, I haven't been able to redo this and make a full list of todo procedure. So the best I can do right now is refer to that project and go from there.
Wifi Project
This project package download
Final Conclusion
All said and done This whole project can take a few days for you to do. It cost me under $100 but it can be more but under $200!!! This system is BETTER THAN A $5000 SECURITY SYSTEM! Completely made by YOU!
It's hard to say what age could do this project? I would hope that some 8-12 year olds could understand and do all this. Considering this is a big build I would say a "group project" would work. But I am sure this could be very difficult for many adults too? I would consider myself a skilled professional and this took me alot of patience and time and skill.