• Maker Space
  • My Blog

Part Time Maker

~ DIY – Home Automation System

Part Time Maker

Tag Archives: project

Wearable Wi-Fi Enabled Lanyard

29 Saturday Feb 2020

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

arduino, esp8266, project

This was a fun project. I wanted to build an 8 x 8 matrix LED name tag that I could control with my smart phone. It was to display my name, title, company and business interests all in scrolling text.

Esp-01 lanyard
Wearable Wi-Fi Access Point

The project uses an Esp-01, Adafruit I2C backpack with 8X8 matrix LED and a 3.7 volt lithium ion battery. The code is written in C/C++ using the Arduino development environment and it’s pretty straightforward. The processor acts as a Wi-Fi access point and simple HTTP requests control the output to the 8X8 matrix LED.

Do It Yourself Alarm Siren

28 Saturday Dec 2019

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

alexa, arduino, diy, diyha, esp8266, hackster.io, project

I built a very loud alarm siren for my home automation system. Construction information is on Hackster.io with parts, code, etc.

diysirebreadboardzoom

https://www.hackster.io/user616885513/do-it-yourself-siren-alarm-based-on-esp32-wemos-d1-r1-2504f2

Do It Yourself Home Automation System

06 Friday Dec 2019

Posted by parttimehacker in How to guides

≈ Leave a comment

Tags

diyha, project, python, raspberry pi

The building blocks of my do it yourself home automation system (DIYHA) consists of nine elements:

  1. Adafruit.io host for dashboards, graphs, control buttons, data storage, etc.
  2. Alexa interface through the Fauxmo server which emulates a Belkin switch
  3. Mosquitto MQTT broker/bridge server handles local messaging and the bridge to Adafruit.io
  4. Environment sensor servers measuring temperature, humidity, air pressure, gas concentration, air quality and light lux
  5. Motion sensor servers for security applications and to activate or deactivate lights
  6. Administration server to manage configurations and coordinate activities between servers
  7. Alarm servers are an integral part of the security system, e.g., intruder alerts and fire alarms
  8. Lighting control servers that are controlled by Alexa or motion sensor
  9. iOS application to provide a mobile administration tool

Future posts will provide build instructions to create you own DIYHAS solution. The servers are all Raspberry Pi devices with applications written in Python 3 and the help from lots of great open source code. I’m planning to push all of my python source to github to coincide with posts.

Building a Do It Yourself Home Automation System

05 Thursday Dec 2019

Posted by parttimehacker in Uncategorized

≈ Leave a comment

Tags

project, python, raspberry pi

Welcome to my new home automation project site!

For the past four years I’ve been in a self-taught program to learn python, Raspberry Pi administration, the Internet of Things and basic digital electronics. Its really been an immersed in prototyping, discovery and testing a variety of solutions with a steep learning curve. Its been a blast!

I’m ready to start version 2.0 of my do it yourself home automation system. Over the next  couple of months I will post entries on how to build a custom home automation system with security, environment monitoring, video surveillance, lighting controls, Alexa integration and more. Please stay tuned.

 

Adafruit.IO Prototype

10 Wednesday Feb 2016

Posted by parttimehacker in Projects

≈ 1 Comment

Tags

arduino, atmega328, esp8266, project

Amazon, Intel, IBM and many other companies have started building Internet of Things platforms and cloud services. These services are exactly what I’ve been looking for as a way to safely and securely gain Internet access to my home automation system. I buy a lot of great products from Adafruit and discovered they have an IOT platform.  Adafruit.IO is a beta version and I started experimenting with their MQTT SDK this week.

My plan was to build a standalone test bed to learn how to publish sensor data to Adafruit.IO and subscribe to switches and triggers. I built the breadboard below with an ESP-1 to handle the MQTT interface and an ATMega328 to process environment sensors and the alarms (flashing LED and loud piezo buzzer).

2016-02-10 07.20.15

Power was one challenge. I needed 3.3 volts for the ESP-1 and the ATMega328 (LM1117).  A 5 volt rail (7805)was needed for the MQ2 and PIR sensors. A 12 volt rail (power supply rated at 1 amp) was needed for the flashing LED and a loud piezo (not shown).

Programming two processors is an added complication but I’ve got the process down and its pretty reliable. The Arduino IDE is not state of the art but its much better than some of the development environments I used to work with in the olden days.

The photo below is my first prototype of a dashboard from Adafruit.IO

AdafruitDashboard1

I’ve created feeds for humidity, temperature and light. The alarm button turns the flashing LED alarm light on and off pretty quickly. I’ll add gas and motion later tonight. I also want to test the trigger capability as well.

Sensors

  • MQ2 gas sensor
  • DHT11 temperature and humidity
  • Photo resistor light
  • PIR motion sensor

That’s it for now and it took me only a couple of days to get it working. The Adafruit.IO forum was also helpful and support was responding almost as fast as I posted questions.

 

Fireplace Mantel Christmas Project

28 Monday Dec 2015

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

arduino, atmega328, project

I created an interactive fireplace decoration using an ATmega328, two 8×8 Matrix LED backpacks, a 128×64 OLED, a piezo buzzer and an IR remote sensor. Basic functions include the following features.

  • 8×8 LED depict snow falling, a flashing light tree and “Merry Christmas” scrolling marque
  • OLED wishes you a Merry Christmas, and has Naughty and Nice lists with names that can change
  • Piezo buzzer plays Jingle Bells
  • IR Remote controls both displays; plays Jingle Bells; and adds people to the Naughty and Nice lists.

I soldered one of the I2C address pads on one of the 8×8 Matrix LED to differentiate displays (0x70 and 0x71). I used an antique wooden glove box as the project box.

Mantel

The video demonstrates the simple functions of this fireplace decoration.

IOT Digital Alarm Clock

23 Friday Oct 2015

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

arduino, atmega328, diyha, esp8266, project

I’ve started work on a new version of my alarm clock. I wanted to add a couple of improvements to the first version which was based on an ATMega328pu processor and NRF24 radio. This version would use an ESP-1 for both communication and standalone configuration. This became the first version of my DIY clock projects. Later versions are based on Raspberry Pis.

IMG_1153

IOT Digital Alarm Clock Breadboard

Hardware features:

  1. ESP8266 ESP-1 Wi-Fi web server
  2. ATMega328pu 8 Mhz Real-time processor
  3. DS1307 real time clock
  4. OLED display user interface (status and controls)
  5. 7-segment LED digital time display
  6. Piezo buzzer and flashing LED for alarm
  7. Photo-resistor to measure room light
  8. I2C bus for communication
  9. 3.3 volt for all components

Software features:

  1. Sync time from NTP at power up
  2. Web form to manually set time
  3. Web form to control alarm clock settings
  4. Star Wars Imperial March alarm sound
  5. ATMega328 handles analog and digital devices

ESP-1 uses I2C to control all components

ESP-1 uses I2C to control all components

The OLED can be hidden and only needed at startup to determine the status of the system and to show the IP address of the device.

ATMega328 handles all analog and digital devices.

ATMega328 handles all analog and digital devices.

A simple web form is used to (a) manually set date and time; (b) set the alarm time; (c) enable the alarm clock and (d) sound a system alarm.

Simple web for served by the ESP-1

Simple web for served by the ESP-1

The video below demonstrates the basic features using the breadboard design.

The next step is to complete the software development and move everything to a protoboard and antique box.

Raspberry Pi Surveillance Project

19 Saturday Sep 2015

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

diy, project, python, raspberry pi

I wanted to add video surveillance to my home automation project, which was a good excuse to add another Raspberry Pi to the project. I’d tried using an ATMega328 with the Pi but found it too cumbersome to write Python code and Arduino ATMega code. It worked with an I2C interface but I wanted something simpler.

The diagram below illustrates the Adafruit photo-board with all of the necessary interfaces to 5 volt and 3.3 volt devices.

Raspberry Pi Interface Board

Raspberry Pi Interface Board

Project Enclosure

Project Enclosure

Features of a Raspberry Pi 2 Surveillance project:

  • Raspberry Pi 2 – REST server (HTTP communication and control)
  • Surveillance – Raspberry Pi camera for video capture
  • Panic Button – hardware debounced button (3.3 volts)
  • Motion sensor – PIR sensor at 5 volts
  • Night Light – large LED at 3.3 volts
  • Identification – IR Sensor to check for “me”
  • iBeacon sensor – BLE USB dongle checking for my iPhone iBeacon
  • Alarm – 555 Timer driving a loud speaker

I enclosed the project in a plain wooden box. As you can see the cable management was a hassle with the hinge and external interfaces on the door.

Raspberry Pi Surviellance

Raspberry Pi Surveillance

All of the code is in Python. There are four main packages

  1. REST server code
  2. Hardware interace – interrupts
  3. Camera controls with 2 rotating JPEG images
  4. BLE iBeacon scanner

I will publish the code to GitHub when I get a chance.

ESP Light Switch – Part II

19 Saturday Sep 2015

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

arduino, esp8266, project

Continuation of my ESP8266 DC power switch. Once I had the breadboard working I soldered the components onto an Adafruit Proto-Board and enclosed the electronics in an antique wooden box. I’ve been combining the “old” with the “new” by reusing old or antique wooden boxes as my Arduino, Raspberry Pi and ESP8266 projects.

Final Project Enclosure

Final Project Enclosure

The next version (there are always things to improve) will use a 220 Ohm resistor for the LED indicator. I will also add some type of relay for an AC version. I really like the cloths pin box which I found in an antique store in Kalispell, Montana.

ESP8266 Light Switch Design

ESP8266 Light Switch Design

The diagram depicts a modified version (new 220 Ohm resister, etc.) of the proto-board solution. I’ve also added pins to support debugging on the proto-board by providing RX, TX and GND pins from the ESP-1.

NebbieBox – Cat Entertainment Center

02 Wednesday Sep 2015

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

atmega328, ble, diy, project

Another recent project is a cat entertainment center using a combination of servo controlled mice and feathers. For the prototype I used a wooden wine case (6 pack) and inserted 1-1/2 inch tubes and servos for two mice. A slot on the side uses another servo to pop out a feather. It has been very popular with Nebbie, our six month old kitty.

Features include the following:

  • Dual ATMega328 chips (I2C master and slave)
  • Adafruit 16-Channel 12-bit PWM/Servo Driver – I2C interface – PCA9685
  • Bluefruit LE – Bluetooth Low Energy (BLE 4.0) – nRF8001 Breakout
  • Two Piezo buzzers for mouselike sounds
  • Two small vibration motors to simulate scatching
  • Two IR LED emitters/receivers to detect cat proximity
  • iPhone to control each servo / sounds
  • Automated mode to pop mice out and in

One of the challenges was to make it robust enough to handle abuse from the kitty while at the same time “NOT HURTING” my kitty. Nebbie has pulled out the servos several times. She also runs over to the box as soon as she hears the servos power up.

← Older posts

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • April 2020
  • February 2020
  • December 2019
  • March 2018
  • November 2017
  • August 2016
  • June 2016
  • February 2016
  • December 2015
  • October 2015
  • September 2015

Categories

  • How to guides
  • Projects
  • Uncategorized

Meta

  • Register
  • Log in

Blog at WordPress.com.

Cancel

 
Loading Comments...
Comment
    ×