Octoblu is a visual framework for connecting the Internet of Things. Devices and APIs that can connect through multiple protocols can all talk to each other through the Meshblu cloud server. Everything has a UUID which is a unique address. If you know the address, you can message the device. A device can be anything! As long as it connects to our server in whatever way then it can talk to everything else by sending and receiving messages containing "payloads". The objective of this tutorial is to help you get your Intel Edison talking to Meshblu where we can then send it payloads from, in this case, Octoblu or Nodeblu in order to control and read Analog and Digital pins. Really once its connected to our system you can talk to it with anything even a webpage with absolute ease!
Our developer site explains the core functionality better if you're interested!
Follow the Guide from Github
https://github.com/octoblu/meshblu-edison
- Make sure your edison has the latest image installed.http://www.intel.com/support/edison/sb/CS-035286.htm
- Pull up the edison on a serial terminal ( OSX: "screen /dev/tty.usbs[hit tab key] 115200 -L")
- Type "configure_edison --wifi" and hit enter, follow through to configure wifi.
- Copy the following commands into your terminal session and hit enter.
cd /node_app_slot/ &&
npm install meshblu-edison &&
reboot
Please be patient as this may take a few minutes to finish compiling.
- Go to app.octoblu.com and click on the "Things" page and select Intel Edison from the list.
- If the Edison connected on the same network as the browser you're using it should show up as an unclaimed device from the drop-down, if not proceed to the next step.
- If the device doesn't show as discoverable type "cat /node_app_slot/meshblu.json" in a terminal session on the Edison and hit enter to see the device UUID/TOKEN, use this to manually add your device.
If you have an OLED connected via i2c to the Edison's i2c bus, either via the Sparkfun i2C breakout, the Intel Arduino breakout, ec cetera you can initialize an OLED from the Edison's device options page. "Things" -> "Connected Things" -> "Your Edison"
- Plug your Edison into a console breakout and stack the PWM breakout as well before turning on.
- Assuming you configured your Edison using the Setup process above, goto the Device Options page for the Edison "Things" -> "Connected Things" -> "Whatever you named your Edison"
- Click "Add" to add a new component.
- Select "PCA9685" as the Action and enter the channel you'd like to initialize a servo on.
- In the Designer, your Edison will now have a drop down with all your available actions.
The below gives a jist of how this is all used.
Add components from the device options page. Any control based component you add will appear in the message schema by the name you give it. You can add non-basic IO objects like a servo attached via an i2C interface. Any sensor components you add will automatically send in a payload with a key based on the name you gave it. 2 messages every second.
Essentially, define your device's abilities and pin configuration in options, and in the designer you can control it using function names from a drop down that make sense to you!
Comments
Please log in or sign up to comment.