Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

Components and supplies

Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Arduino Mega 2560
Any Arduino-style microcontroller will do!
×1
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Particle Photon
Of course, if you want to be our favorite, you'll use this one :)
×1
Arduino Ethernet Shield
If your Arduino can't make it to the internet on it's own.
×1
Arduino Wifi Shield
If you're a masochist. These things have serious limitations, and are expensive. Not recommended!
×1
ESP2866
If you want to connect an Arduino to wifi for $5 instead of $80, this is the one to get. Unfortunately, we don't have an example sketch for it yet :(. But it should be easy to port!
×1

Apps and online services

Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Octoblu Meshblu

About this project

If you want to do anything in the Internet of Things space, there's nothing easier to do it than to use Octoblu. With the recent release of our new microcontroller library The Tentacle, any Arduino-ish microcontroller can be used in our flows in a matter of minutes - without writing any custom code!


Read more about The Tentacle at it's official documentation page, http://tentacle.readme.io

Controlling a microcontroller in Octoblu's Flow Designer
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

Getting an Octoblu Account

first step when it comes to connecting a microcontroller to Octoblu is to, well, get an account with Octoblu. It's free (and always will be) and can be done in less than a minute @ https://app.octoblu.com


Create a Device in Octoblu

this step generates an ID for device in Meshblu, Octoblu's open-source message routing system. This lets us send messages to and from the microcontroller.

Once you've registered with Octoblu, navigate to the Things section.
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Next, name your new Tentacle! Make sure the dropdown underneath the icon says "Register a new thing"
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
There are a lot of Things in Octoblu - so search for "tentacle", then click on the icon for Tentacle.
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

Right now, Octoblu redirects you to the Flow Designer by default. So make sure you head back to the Things page to continue.

Back at the things page, click on the "Connected Things" tab. This shows the Things you've added to the platform. Click on your new Tentacle.
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

Now, leave this page open - We're going to do some stuff on the Arduino side for a bit!


Enabling The Tentacle on your Arduino

Note: although we prefer the Photon at Octoblu, we know that Arduinos are by far the most common microcontrollers out there these days. For the Photon, the steps are similar, but using their website at http://build.particle.io . The library is called "tentacle-particle", and can be found here.

Download the library from github. Make sure to use the zip file of the latest release! 
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

The latest release of the library can be found here. Make sure to download tentacle-build-arduino.zip. The source for this repo sets up the project, and is not the code for the project itself.

Once The Tentacle has been downloaded, add it to the Arduino IDE by selecting Sketch -> Include Library -> Add .ZIP Library... from the menu
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Next, select the example that applies to your device from File->Examples->Tentacle in Arduino's menus
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

Add Octoblu's Thing UUID to your sketch

In you're device's configuration page, copy and paste it's UUID into the "uuid[]" variable in the sketch
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Next, click "Generate Token". This will produce a popup containing your token. Copy it into the token[] variable in the sketch.
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Wifi users only: remember to set your wifi name and password in the sketch, so the Arduino can connect to it.
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
Finally, flash the Arduino with the sketch. It's now ready to go!
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
If you open the serial monitor for the Arduino IDE (Tools -> Serial Monitor), you should see output like this. Congratulations, your Arduino is now connected to Octoblu!
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required
If you refresh the device page in Octoblu, you'll see that you can now configure pin modes and whether or not it broadcasts it's pins at an interval. 
Build IoT Devices with Arduino and Octoblu’s The Tentacle—No Coding Required

Congratulations! You can now drop your microcontroller into the Flow Designer and control it with anything else in the Internet of Things!


Note: one limitation of The Tentacle is that you can't specify analog pins by their usual A* designations (A0, A1, A2, etc). We hope to change this soon. In the meantime, this means you just have to reference the pins by their actual numbers - such as 16 instead of A0, and so on.

Code

The Tentacle
Make sure you use the version in Releases!https://github.com/octoblu/tentacle-build

Manufacturing process

  1. How 5G Fuels IoT: Current State, Opportunities, and Key Challenges
  2. Capture Water Droplets in Action Using Arduino Nano – DIY High-Speed Photography
  3. Build a SmartThings‑Enabled IR Bridge with Arduino UNO & ThingShield
  4. IoT Integration: Remote Arduino Control via Windows 10 UWP Apps
  5. Voice-Controlled LED Project: Arduino Micro + BitVoicer Server for Speech Recognition
  6. Build Your Own AI Assistant Robot Using Arduino & Python
  7. Build Stunning Web-Driven LED Animations with Raspberry Pi & Arduino
  8. Building an IoT Device with ESP8266‑01 and Arduino Nano: A Complete Guide
  9. Control Your Arduino with Google Assistant – A Complete Step‑by‑Step Tutorial
  10. Master the ADS1115: Features, Pinouts, and Arduino Integration Guide