RPMA Backhaul + Arduino Yun – Part 1

RPMA Backhaul + Arduino Yun – Part 1 © MIT

RPMA backhaul for Arduino Yun + Temp / Humidity sensor

  • 641 views
  • 0 comments
  • 0 respects

Components and supplies

Ingenu RPMA DevKit
Legacy version 1 device used. Version 2 is currently available.
×1
Ard yun
Arduino Yun
×1
20120702130508859
DHT11 Temperature & Humidity Sensor (4 pins)
×1

Apps and online services

About this project

Oh hello there, reader. My name is Max, and I’m Ingenu’s Marketing & Content Manager, based out of our offices in Phoenix, Arizona. Most of the time, I’m a behind-the-scenes sort of guy: I keep our web properties humming and produce all of our video content. While I do end up getting my hands dirty on occasion scavenging lines of PHP code, I don’t have much experience at all with most of the commonly used programming languages.

So I don’t know what came over me when I decided a short while ago to get a very basic RPMA application running. Maybe it was the dusty box of sensors and Arduino boards I have had sitting around for a couple of years. It also seems a little funny to espouse the virtues of a technology without having hands-on experience with it.

First off, most folks who get their hands on one of our RPMA development kits have way more experience with Python, REST APIs and other development languages than I do. You’re also never going to take one of our RPMA DevKits, tie into it with an Arduino, slap an SKU on the box, and ship it. Smarter minds than mine will use our development kit to build out a prototype of their RPMA application, skipping the Arduino/Raspberry Pi middle man. Then they’ll take that to an EE for a complete production ready board layout. As a proof of concept, though, it’s totally cool.

Materials Needed:

  • Assortment of F-to-M & M-to-M jumper wires

In Part One of this blog series, I’ll focus on setting up the Arduino to grab sensor data and output it over a serial connection.

Hooking the DHT11 sensor to the Arduino was an easy affair. I chose to use a breadboard because I wanted to try out a variety of sensors and it just seemed like a good idea. While the DHT11 has four pins, only three are used: one for 3.3V/5V power, one for digital data, and one for ground. Wiring was super simple: from DHT11 pin 1 to Arduino 5V power, DHT11 pin 2 to digital pin 5, and DHT11 pin 4 to ground.

With the sensor physically wired up, it was time to build an Arduino sketch to pull a reading and output the results to the RPMA DevKit. I based my super simple Arduino sketch off of the example provided on the Arduino Playground DHT11Lib page.

My simple Arduino sketch sets up a software serial port, calls on a DHT11 library, and after pulling readings from the sensor communicates the results over that software serial connection. If you’re using anything other than an Arduino Yún or Leonardo, you won’t have to create virtual serial pins, ‘Serial’ or ‘Serial2’ would work for you just fine. I wanted to keep the main serial port ‘Serial’ available for debug over a USB cable.

In Part Two of my short idiot’s guide, I’ll get into how I was able to get the RPMA DevKit & Arduino to play nicely with each other.

Code

Gist
https://gist.github.com/maxgibbons/7e10828d6749e53e71a21224fdf46bee.js

Comments

Created by

Max Gibbons

Are you Max Gibbons? Claim this project and add it to your profile.

This is mine

Posted by

Default
Darrick Hatch
  • 0 projects
  • 0 followers

Additional contributors

  • Product management by Darrick Hatch

Published on

April 14, 2017
See similar projects
you might like

Similar projects you might like

RPMA Backhaul + Arduino Yun – Part 3

by Max Gibbons

  • 584 views
  • 0 comments
  • 0 respects

RPMA Backhaul + Arduino Yun – Part 2

by Max Gibbons

  • 527 views
  • 0 comments
  • 0 respects

IoT Arduino YUN Ambient Sensor Adafruit I/O MQTT

Project tutorial by Giovanni Gentile

  • 2,330 views
  • 2 comments
  • 2 respects

Ultrasonic Map-Maker using an Arduino Yun

Project tutorial by Satyavrat Wagle

  • 63,618 views
  • 38 comments
  • 169 respects

Arduino Yun Controller

Project showcase by TATCO Inc

  • 3,790 views
  • 5 comments
  • 13 respects

Arduino YUN IoT for Home monitoring

by Rafa Juárez

  • 3,080 views
  • 1 comment
  • 2 respects
Add projectSign up / Login