Presentation is loading. Please wait.

Presentation is loading. Please wait.

Water Me, Seymour  Attach a moisture sensor to Raspberry Pi  Raspberry Pi will use Twitter to tweet when plant is dry or has just been watered. General.

Similar presentations


Presentation on theme: "Water Me, Seymour  Attach a moisture sensor to Raspberry Pi  Raspberry Pi will use Twitter to tweet when plant is dry or has just been watered. General."— Presentation transcript:

1 Water Me, Seymour  Attach a moisture sensor to Raspberry Pi  Raspberry Pi will use Twitter to tweet when plant is dry or has just been watered. General Concept

2 Hardware Raspberry Pi Model B Rev. 2 Octopus Soil Moisture Sensor MCP3008 Analog to Digital Converter Jumper wires

3

4 Software This Pi uses the Pidora Linux distribution. Necessary packages are: WiringPi and Pi4J (the “J” is for “Java”) Java Developer Kit 7.1 Proprietary code for this project Eclipse Java EE (Developer Environment)

5 Proprietary Software and Code Programmed in Java. Java is object-oriented. Make several objects that perform smaller tasks Make them work together to accomplish something more complex

6 What Kind of Objects? Three main objects: MoistureSensor – Talks to MCP3008 A/D converter TwitterPost – Handles logging into Twitter and posting Driver – The brain of the project. Gets a reading from MoistureSensor at regular intervals and tells TwitterPost the appropriate time to tweet.

7 Driver Logic Every 1 minute, ask MoistureSensor for a moisture reading Based on the moisture level, establish if plant is dry or wet Plant must be in the same wet or dry state for 5 consecutive iterations before it tells TwitterPost to tweet


Download ppt "Water Me, Seymour  Attach a moisture sensor to Raspberry Pi  Raspberry Pi will use Twitter to tweet when plant is dry or has just been watered. General."

Similar presentations


Ads by Google