3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Automatic Halloween Candy Dispenser

Step 6IoBridge Setup

ioBridge Setup
The ioBridge IO-204 is used as bridge (duh!) between the arduino and the internet. I am using the ioBridge serial board to connect an XBee module. 

There are two main functions that the ioBridge was used for:
  1. Request current code
    I do a GET call from the arduino to retrieve the current code from my Code Generator service using ioBridge Serial Web Services API.
    Arduino code:
    mySerial.println("[[[get|http:/my.apexserver.com/pls/apex/getcode]]]");
     
  2. Start candy dropping sequence by text, call or tweet.
    An ioBridge widget will send a start character via serial message and the candy dropping sequence will start. This widget can be called using the ioBridge Static Widget API.

This URL  is called by Twilio and by my custom Twitter alert script.
http://www.iobridge.com/widgets/static/id=[widgetID]


These are the digital I/O pins configuration:
  • ioBridge Serial Board
  • TX - RX XBee
  • RX - TX XBee
  • GND and 5v


« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
9
Followers
4
Author:noelportugal(My blog)