Powerphil
Posts: 72
Joined: Sat Aug 04, 2012 9:36 pm

Sensor that updates internet with status

Thu Aug 22, 2013 4:49 pm

Hi,
I want to be able to set the Raspberry pi up in a covered environment outside with a battery supply, with solar charger. The aim is that when a large object comes into close proximity (thinking 30cm) it sends a report to a website showing the change in status, ie when there is nothing there, green light on website, but when there is, a red light on the website. I'm not worried about the power situation as I know how to sort that out, but I am at a loss as to what software configuration I would need to use to make this work.

Hardware:
RPi
3g stick
Some sort of sensor to GPIO's
Power supply

Can anyone help guide me with the software and programming side of things.

Phil

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Sensor that updates internet with status

Fri Aug 23, 2013 10:39 am

This Adafruit tutorial is outdated in the sense that you no longer have to install rpi.gpio as it is a standard part of Raspbian, and COSM has become Xively, but the principles of connecting a sensor and sending the data to a website might be of interest.

Alternatively, could you run the webserver on the RPi itself? In that case RPi-Monitor is a solution that might provide a basis for customization.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

txt3rob
Posts: 365
Joined: Sat Aug 11, 2012 3:45 pm
Contact: Website

Re: Sensor that updates internet with status

Mon Aug 26, 2013 10:36 pm

I can help you with getting it to sms you or tweet you
The Raspberry Pi Hell Guy - Random Ramblings to assist me and others.
http://raspberrypihell.blogspot.com
My Github - http:/www.github.com/random-robbie/
http://www.smspi.co.uk - send free uk sms via your raspberry pi from here

User avatar
jbeale
Posts: 3675
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: Sensor that updates internet with status

Mon Aug 26, 2013 10:45 pm

For the proximity sensor, an ultrasonic rangefinder might work.
Here is one that can measure distance from 15 cm to 645 cm: http://www.maxbotix.com/Ultrasonic_Sensors/MB1000.htm
It gives range output as 9600 baud serial data and also pulse width, the RPi could use either. (It also has analog voltage out, but RPi has no analog input).

Return to “Other projects”