Skip to content

mimming/firebase-fruit-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firebase Fruit Detector

An Arduino / Raspberry Pi fruit detector that uses Firebase to power web, Google Glass and Android displays.

v0.1 supports apples and oranges.

What's here

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

The Fruit Detector

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)

Soft dependencies

  • Firebase - realtime platform; the Internet part of this example
  • Johnny Five - open source JavaScript Arduino programming framework

Running it

  1. Add a pull down resistor to A3. Ground the zinc probe. Connect the copper probe to the A3.

  2. Install the StandardFirmata sketch to your Arduino per the Johnny Five documentation.

  3. Install node.js, Johnny Five and Firebase's node.js client onto your Raspberry Pi.

  4. Create a new Firebase to store/synchronize your state. Replace test-firebase-please-ignore in the code with the subdomain for your Firebase.

  5. Copy the JavaScript code on to your Raspberry Pi.

  6. Run it:

     $ node device/fruit-detector.js
    
  7. Stab the probes into your fruit.

About

A multi-device fruit detector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published