An Arduino / Raspberry Pi fruit detector that uses Firebase to power web, Google Glass and Android displays.
v0.1 supports apples and oranges.
This project contains 4 directories:
/detector
- The node.js code for the fruit detector/android
- An android app to read the detected fruit/web
- A tiny web app to read the detected fruit/google-glass
- A Google Glass app to read the detected fruit
This probably works with other boards, but it was written with two things you probably have lying around somewhere. Go dig them up and blow the dust off of them.
- Raspberry pi
- Arduino Uno
- Jumper wires, and a resistor
- Something copper, something zinc (A crew and a piece of wire work great)
- Firebase - realtime platform; the Internet part of this example
- Johnny Five - open source JavaScript Arduino programming framework
-
Add a pull down resistor to A3. Ground the zinc probe. Connect the copper probe to the A3.
-
Install the
StandardFirmata
sketch to your Arduino per the Johnny Five documentation. -
Install node.js, Johnny Five and Firebase's node.js client onto your Raspberry Pi.
-
Create a new Firebase to store/synchronize your state. Replace
test-firebase-please-ignore
in the code with the subdomain for your Firebase. -
Copy the JavaScript code on to your Raspberry Pi.
-
Run it:
$ node device/fruit-detector.js
-
Stab the probes into your fruit.