• Maker Space
  • My Blog

Part Time Maker

~ DIY – Home Automation System

Part Time Maker

Tag Archives: esp8266

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

Harry’s Horn

16 Friday Mar 2018

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

alexa, arduino, diyha, esp8266, hackster.io

I created a new project and posted the information on Hackster.io with instructions, etc.

Harry

https://www.hackster.io/user616885513/harry-s-horn-c16819

Hands Free Kitchen Light (IOT)

25 Saturday Jun 2016

Posted by parttimehacker in Projects

≈ Leave a comment

Tags

arduino, diy, esp8266

My new project is a Internet of Things kitchen counter LED light strip. The goal was to implement a 21st century light switch using bright and energy efficient LED lights. This required the replacement the mechanical switch with a hand-motion proximity sensor for on and off. Other features include:

  • ESP-01 microprocessor and web server to control the light – an important maker CPU
  • Motion sensor to turn off the light, when the kitchen is unoccupied for a user defined time interval
  • 12 volt power with MOSFET (Adafruit IRLB8721) switch for the LEDs and a 3.3 volt switching regulator for the system components
  • The user interface was to be a simple Web site for status, clock and system configuration, and remote light control, that could also update the ESP-01’s  EEPROM
  • OLED 128×64 display for system status, debug stuff and Wi-Fi network information

The ESP-01 presents a couple of problems, because it only has two GPIO ports. I needed to use the I2C bus to communicate with the OLED, which used both GPIO. So I decided to use an MCP23008 IC to handle interrupts (INPUT) and to control the MOSFET (OUTPUT). This enabled me to use I2C bus and added 8 more GPIO ports.

I used two two proximity devices on this project. The first is the PIR motion sensor. I really like the Parallax, Inc. PIR Sensor – Rev B, because it can operate on 3.3 volts and has a red LED to indicate detection of motion. The second proximity sensor is the Adafruit, VCNL4010 Proximity/Light sensor. It measures both near proximity and ambient light. The VCNL4010 uses the I2C bus to communicate data and it has a configurable interrupt signal.  I used the MCP23008 to handle both interrupts – PIR and VNCL4010.

IMG_1886

Breadboard prototype

I added a cool on/off switch from Adafruit as the final touch. The Rugged Metal On/Off Switch with Blue LED Ring – 16mm Blue On/Off looks great.

The software features included: (a) NTP time set, (b) AP mode when the ESP-01 could not connect to its predefined SSID/password, (c) defaults in EEPROM, (d) my version of the VNCL4010 library, (e) my MCP23008 library with interrupt handling, and (f)  RESTful interface for the website configuration stuff.

The next step was to fit everything in a small wooden box that I would mount on the wall.

IMG_1908

Beta version in a small wooden box

I had a lot of trouble with the VNCL4010 when it was installed in the box. I need to spend time determining how much of the PCB board needs to be exposed from a hole or mount in the box.  My first attempt blinked on and off after a couple of minutes.

Below is a short video of the light working. I’m planning to move everything to an Adafruit proto-board and finding a smaller box.

Next steps in a couple of weeks.

 

 

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.

 

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.

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.

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
    ×