Raspberry Pi Twitter Candy Bot
Raspberry Pi Twitter Candy Bot

Video of all steps at a high level


Materials

  • Raspberry Pi (If this is your first time you may also need monitor, keyboard, and mouse)
  • Servo
  • WiFi Adapter or Ethernet cable
  • Wires with female plugs for connecting to Raspberry PiCandyPlastic pop-bottle or similar container.

    Step 1: Setup Raspberry Pi with Rasbian

    If you have not used a raspberry pi before please see the Raspberry Pi website: http://www.raspberrypi.org/help/quick-start-guide/

    If you have your raspberry pi up and running with Rasbian skip this step.

    Step 2: Setup NodeJS on your Raspberry Pi

    The candy dispensing code I have written is in JavaScript and runs on NodeJS, so you will need to install NodeJS on your raspberry pi.

    WeWorkWePlay has a great tutorial for this:

    http://weworkweplay.com/play/raspberry-pi-nodejs/

    Step 3: Setup WiFi on Raspberry Pi startup

    If you want to use wifi, then you will need to setup your raspberry pi to connect automatically when it starts up.

    You will need to edit /etc/network/interface to include the name and password for your wireless network.

    Tutorial: http://raspberrypihq.com/how-to-add-wifi-to-the-ra...

    Step 4: Setup the candy-bot code

    Download or Fork it from GitHub: https://github.com/davidrs/candy-pi

    Save it to your Raspberry Pi: /home/pi/candy-pi

    Create a developer account for the Twitter API: https://apps.twitter.com/

    On the Twitter App site add a new app and generate an API key.

    Update the config.js with your Twitter API key.

    Test locally: `npm index`

    Setup your Raspberry Pi to run the code on startup. (see tutorial in step 2 for details)

  •  
     

    Tag cloud

    make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel