Skip to content

The Rabbit Hole opened by my last project... now trying a relayHaT.

Notifications You must be signed in to change notification settings

asherferri/switch2.0Hat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

switch2.0Hat

Using a Hat 4 CH Relay this time. Cleaner, Better.

09/21/2020

SERVER WILL NOT RUN FROM FRIDAY 12:00 EST - SUNDAY 12:00 EST

The Switch 2.0 Hat \m/

(DISCLAIMER : the following information is subject to change based on developing phases and dev. brain capacity. )

The switch

A home automation utility.

app

The App

This App will allow the user to control electronic devices, from anywhere in the world, hopefully the universe.

What is your project?

With the GPIO and proccesing power of a R31416, a solid backend and a dependable server i have built a home automation system, at the moment it controls a funny projection lamp and a couple of light emiting diodes, but it can basically control, anything that requires electricity, acting as a smart hub...or anything i can get asked to do.

TOOLS

Wireframes!

INIT_DIAG

User Stories

  • User access a website
  • User sends ON request.
  • Device turns on.
  • User sends OFF request.
  • Device shuts off.

Circuit Diagram Evolution:

The first challenge was to find a way to use Javascript to control the GPIO pins on the R31416.

1

Second challenge was to be able to control it through another computer, at least inside the same network...a server maybe?? but HOWWWW???

2

When i was finally able to control the inputs not only from the local network, but had turned the r31416 on a server that hosted the site with all controls of the GPIO and the LED turned ON!!

3

Now it was time to make the little monster machine functional in a real home environment, added a relay some frankensteined electronics and IT WORKED!! at around 3:30 EST in the AM it worked.

4

3rd Party Technologies

  • Google Search.
  • Raspberry Pi.
  • Relay
  • CDN
  • Server Infraestructure

Initial thoughts on app structure

Phases of Completion

  • Project proposal
  • Server Live
  • Circuit Diagram
  • Scout GPIO on Rpi
  • Circuit engineering.
  • Light up an LED.
  • Electric elements dev.

Links and Resources

  • RSO
  • The Wizards (P,J,D,M)
  • CSS + HTML + Jsvascript \m/
  • The Google and it's capacity to develop our Googliness.
  • BH brain capacity, time management, and a shton of GIFD.

The Beginning...

The first time the LED turned on by a local input:

https://www.youtube.com/watch?v=Ro7XKjRe7x8

Local network test from a cellphone on headless R31416:

https://www.youtube.com/watch?v=kwXusMJCzow

Pete tests controlling the the LED from Boston:

https://youtu.be/w69J62LpRy8

Some notes extracts:

notesExtract1 notesExtract2

Dependencies used

  • "onoff": "^6.0.0"
  • "socket.io": "^2.3.0"

About

The Rabbit Hole opened by my last project... now trying a relayHaT.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published