User Tools

Site Tools


projects:home_environmental_sensor_array

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:home_environmental_sensor_array [2014/01/01 21:10]
kennethsbecker [Tasks]
projects:home_environmental_sensor_array [2014/11/22 22:44] (current)
kennethsbecker [Components]
Line 4: Line 4:
 __Summary Status__ __Summary Status__
  
-Phase 1 is done.  Mounted the enclosure on my wall and put it in service.  There are a few follow-up tasks but the HESA is working as designed.+After experiencing a minor flood in the basement when the water softener turned on and the sump pump was not installed, I realized that my water softener runs without electricity.  So, I changed the design of the HESA to turn on power to a submersible pump when it detects water rather then turn off power to the water softener.  I also added graphing capability to the web page and made the code more reliable.
  
 Click [[http://beckermaker.blogspot.com/search/label/Home%20environmental%20sensor%20array|here]] to read the latest updates on my blog. Click [[http://beckermaker.blogspot.com/search/label/Home%20environmental%20sensor%20array|here]] to read the latest updates on my blog.
  
-===== Phase 1 ====+===== Final Solution ====
-==== Description ==== +
-Create a device that will sense when water is spilling in to the basement.  The device will shut off power to the water softener and notify people that there is a problem. +
- +
 ==== Features ==== ==== Features ====
 +  * Auto-startup on power up.
 +  * Auto-recovery on program failure
 +  * Status light that shows when pi is running.
   * Check for water in the basement.  If found:   * Check for water in the basement.  If found:
-  Shut off power to water softener +    Turn on power to submersible pump 
-  * Send email to mail address +    * Send email to mail address.  If internet is down, wait until it is up to send message. 
-  * Auto-startup on power up+    * Update local status page and internet database 
 +  * Send all clear email when water clears 
 +  * Read temperature and humidity in basement 
 +  * Store hourly readings to SQL tables on internet 
 +  * Check internet connectivity
   * All components mounted in enclosure that is mounted on wall and connected to 120v power   * All components mounted in enclosure that is mounted on wall and connected to 120v power
    
 ==== External Features ==== ==== External Features ====
   * Email address that forwards mail to several email addresses as well as texting   * Email address that forwards mail to several email addresses as well as texting
 +  * Web site that displays reading results in tabular and graphical form
  
 ==== Schematic ==== ==== Schematic ====
   * [[http://www.digikey.com/schemeit#kbo|Schematic]] stored on Digikey's website.   * [[http://www.digikey.com/schemeit#kbo|Schematic]] stored on Digikey's website.
 +
 +==== Code ====
 +  * [[https://docs.google.com/document/d/1IyIzPRRnXTgRUZCAvdxJEt2GMbMjETYKnfaQaIWYgaU/edit?usp=sharing |HESA program]]
    
 +==== Bill of Material ====
 +
 ==== Components ==== ==== Components ====
   * [[http://www.amazon.com/gp/product/B009SQQF9C/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B009SQQF9C&linkCode=as2&tag=rynokenterprises-20 | Raspberry Pi]]   * [[http://www.amazon.com/gp/product/B009SQQF9C/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B009SQQF9C&linkCode=as2&tag=rynokenterprises-20 | Raspberry Pi]]
   * 120v to 5v USB power converter and USB cable for Raspberry Pi   * 120v to 5v USB power converter and USB cable for Raspberry Pi
-  * Duplex power outlet+  * Duplex power outlet (2)
   * Power plug for input with power cord for PC   * Power plug for input with power cord for PC
   * Power switch   * Power switch
Line 46: Line 56:
   * Solder   * Solder
  
-==== Python Code ==== +==== Description ==== 
-  * [[https://docs.google.com/document/d/1IyIzPRRnXTgRUZCAvdxJEt2GMbMjETYKnfaQaIWYgaU/edit?usp=sharing |HESA program]] +Create a device that will sense when water is spilling in to the basement.  The device will shut off power to the water softener and notify people that there is a problem
 + 
 ==== Tasks ==== ==== Tasks ====
   - <del>Order Raspberry Pi and its components</del> -- Done   - <del>Order Raspberry Pi and its components</del> -- Done
Line 71: Line 81:
 ==== Follow-up tasks ==== ==== Follow-up tasks ====
   - <del>Make a backup of the SD card</del> -- Done   - <del>Make a backup of the SD card</del> -- Done
-  - Publish on Instructables -- In progress+  - <del>Publish on Instructables</del> -- Done
   - <del>Install Avahi to be able to access the pi by its host name rather than IP address</del> -- Done   - <del>Install Avahi to be able to access the pi by its host name rather than IP address</del> -- Done
-  - Print a [[http://www.thingiverse.com/thing:62978|raspberry pi base]] on the 3D printer -- Not started+  - <del>Print a [[http://www.thingiverse.com/thing:62978|raspberry pi base]] on the 3D printer</del> -- Done
   - <del>Replace ethernet faceplate with one with one or two openings rather than four</del> -- Done   - <del>Replace ethernet faceplate with one with one or two openings rather than four</del> -- Done
-  - Make HESA python program start as a service rather than in the rc.local script -- Not started +  - <del>Install MySQL administration tool</del> -- Done 
-  - Install MySQL administration tool -- Not started +  - <del>Populate MySQL tables</del> -- Done 
-  - Populate MySQL tables -- Not started +  - Store readings to local table, then update internet table, if available -- Not started 
-  - Test development web server -- Not started+  - <del>Make monthly graphs</del> 
 +  - Make daily routine to consolidate daily temp and humidity data to a summary table -- Not started
  
-===== Phase 2 =====+==== Future Ideas ====
  
-==== Description ==== 
- 
-Make the device more user-friendly and interactive.  Replace the Pi with a Beaglebone Black to make it able to connect to more things.  It should record daily data and statuses in a web-based database.  It should check the internet connection regularly.  If there are any non-standard conditions, alert the humans with email (if possible), lights, and sound until the problem conditions are gone. 
-  
-==== Features ==== 
- 
-  * Record resistance readings multiple times a day in a web-based database 
-  * Record system statuses in a web-based database 
-  * Check internet connectivity 
   * Display status on LCD screen   * Display status on LCD screen
-  * Turn on light if internet connection is lost 
-  * Turn on siren if flood condition recognized 
-  * Repeat messaging every 24 hours 
-  
-==== External Features ==== 
- 
-  * Web site that displays reading results in tabular and graphical form 
-  
-==== Components ==== 
- 
-  * Beaglebone Black  
-  * Green LED for normal operating conditions 
-  * Yellow LED for internet lost 
-  * Red LED for hazardous condition 
-  * 16x2 display 
-  * Siren 
-  * Manual power switch for siren 
   * Reset button   * Reset button
- +  * Add a battery backup feature so the system can send alerts and shutdown gracefully in case of a catastrophe.  
-==== Tasks ==== +
-  - <del>Obtain Beaglebone Black</del> -- Done +
-  - Update O/S on BBB -- Not started +
-  - Figure out how to power up BBB without USB cable -- Not started +
-  - Make support / case for BBB -- Not started +
-  - Get HESA python program working on BBB -- Not started +
-  - Make HESA start automatically when BBB boots up -- Not started +
-  - Create MySQL tables to store status updates -- Not started +
-  - Make HESA program update status in MySQL table -- Not started +
-  - Make web page on rynok.org to display HESA status -- Not started +
-  - <del>Find working 16x2 LCD display</del> -- Done +
-  - Get LCD display working with BBB -- Not started +
-  - Add LCD code to HESA python program -- Not started +
-  - Install LCD screen in HESA enclosure front panel -- Not started +
-  - Design circuit that includes reset button -- Not started +
-  - Obtain components for reset button circuit -- Not started +
-  - Install reset button circuit in HESA enclosure -- Not started +
-  +
-===== Phase 3 ===== +
- +
-==== Description ==== +
- +
-Add a battery backup feature so the system can send alerts and shutdown gracefully in case of a catastrophe.  Detect other environmental problems, record regular readings and send alerts. +
-  +
-==== Features ==== +
- +
-  * Battery backup +
-  * Detect power outage and send email alert+
   * Add a button to shutdown the Pi, then shutoff power   * Add a button to shutdown the Pi, then shutoff power
   * Add a button to reboot the Pi   * Add a button to reboot the Pi
-  * Low temperature detector 
-  * Monitor carbon monoxide levels 
-  * Monitor radon levels 
-  
-==== Components ==== 
- 
-  * Battery power supply 
-  * Device that detects primary power outage 
-  * Temperature sensor 
-  * Carbon monoxide sensor 
-  * Radon sensor 
  
 Members: [[members:ken_becker|Ken Becker]] Members: [[members:ken_becker|Ken Becker]]
projects/home_environmental_sensor_array.1388610628.txt.gz · Last modified: 2014/01/01 21:10 by kennethsbecker