Giantboard_power_sensor_plug
About the project
I've Designed and built a Giant Board 120 Volt plug in Sensor Array for sensing Temperature/ Humidity/altitude and Motion(X,Y,Z)
Project info
Difficulty: Difficult
Platforms: MicroPython
Estimated time: 5 days
License: Creative Commons Attribution-NonCommercial CC BY-NC version 4.0 or later (CC BY-NC 4+)
Items used in this project
Software apps and online services
Story
The Hardware
I designed and built a PCB to fit the Polycase Plug in Box. I was looking for a while to find a great looking box that was practical and CSA approved for my project. Once I picked the box I needed to convert the 120-300 Volts AC to 5VDC ..After careful consideration I decided on the IRM-02 Power Converter from RECOM . It is PCB solder-able and approved for use for PCB designs and is CE approved. There are considerations to keep in mind when using 120 volts for powering your projects. IT CAN KILL YOU ..that being said I used the proper precautions when working with high Power. They are as follows
1. Always work on your projects with the power OFF
2. Try to keep the 120/240 Volts Traces away from the ground plane and other traces as Possible. As you can see by my keep away on the Board shows that the higher power is isolated and away from the traces and ground plane. The Power unit is only good for 1 to 2 Amps and if shorted out will disable the Power unit rendering it a brick. so be careful.
3. When soldering is complete and your ready to plug it in Meter the Unit to make sure you have no faults to ground this is done by following the attached utube video. Make sure the cover is on it and screws are installed.
The Spec Sheet is attached in the downloads section. It can be purchased from Digikey by following this link
https://www.digikey.com/product-detail/en/mean-well-usa-inc/IRM-02-5/1866-3009-ND/7704628
I bought all the parts and pieces for this design from digikey and everything is available to buy.
Soldering the PCB
As you can see I didn't use any SMD (Surface mount devices) in my design. I did this on purpose to allow for beginners to build and solder the Board. I am including pictures of the soldering process
The Enclosure
https://www.polycase.com/pm2425
The Software
How to Program the giant board
I am a novice when it comes to python and python3 but have messed around with Linux a fair bit(thank the imaginary guy)so I was able to "Forrest Gump" my way around this project to produce something fairly cool.
I followed the following links to install all the programs and dependencies for this project ..It was my first time programming in Python and it was a fair bit of work getting everything working properly. I Used an 8GB Memory card but a larger one is 16 to 32 GB is recommended if you going to install OpenHab and Node Red on the Giantboard its self. I already had Node Red installed in the cloud and OpenHab installed on a Raspberry PI so half the work was already done for me.
http://www.steves-internet-guide.com/into-mqtt-python-client/
https://i2c.wiki.kernel.org/index.php/I2C_Tools
https://pypi.org/project/smbus2/
https://circuitpython.readthedocs.io/projects/hts221/en/latest/
https://circuitpython.org/libraries
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/i2c-sensors-and-devices
https://circuitpython.org/board/pyportal/
Leave your feedback...