Internet of things project: Connect Arduino to Ubidots and Android – Part 1 & 2

by Francesco Azzola



Overview

This IoT project explores how to connect Arduino to Ubidots and Android. One important aspect in Arduino Internet of things programmin is how to connect arduino to internet and store date to IoT cloud platforms using arduino ethernet shield. This aspect is important because it is possible to store data in the cloud and then analyze it. Once the data, like sensor values, is on the cloud is possible to access it using smart phones and control remotely the Arduino board.

As soon as the temperature and humidity sensor starts reading values, it sends them through Arduino board to the cloud platform. The project uses Ubidots to store data in the cloud. This platform is easy to use and can be easily integrated with Arduino. Moreover, it has a built-in dashboard features, so that it is possible to creates interesting dashboard to show, using charts, the values sent from the board.

Components

  • W5500 Ethernet Shield
  • Arduino-Uno
  • DHT11
  • Ubidots

How to Build

  1. Connect the DHT11 to Arduino-Uno

  2. Import DHT11 Libary to Arduino IDE
    In this sketch, DHT11 sensor is connected to Arduino board, that, in turn, uses the Arduino Ethernet shield to connect to the network to send data. As first step, we check if everything is connected correctly trying to read the value of the temperature and the humidity. The snippet below shows the Arduino sketch to test the sensor:

    #include "DHT.h"
    #include <spi.h>
    #define DHTPIN 2
    #define DHTTYPE DHT11
    
    DHT dht(DHTPIN, DHTTYPE);
    
    void setup() {
     Serial.begin(9600);
     dht.begin();
    }
    
    void loop() {
     delay(50000);
    
     float h = dht.readHumidity();
     // Read temperature as Celsius (the default)
     float t = dht.readTemperature();
    
     Serial.print("Humidity: ");
     Serial.print(h);
     Serial.print(" %t");
     Serial.print("Temperature: ");
     Serial.print(t);
     Serial.println(" *C ");
    }
    
  3. Register the arduino to Ubidots & Import Ubidots Library to Arduino IDE

    http://things.ubidots.com/api/v1.6/collections/values
    

    Refer to Ubidots Dco

  4. Implements WebClient for Arduino
    Ubidots provides an example that can be useful. In Arduino, we have to develop an ArduinoHTTP client that calls a JSON service passing the data we want to store in the cloud.

    JSON Format :
    [{"variable": "varId", "value":val, "timestamp":timestamp},{"variable": "vardId1", "value":val1, "timestamp":timestamp1}]

Learn More

Goto Original
Get Free Arduino Things Free Source

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

PlatformIO / WIZwiki-W7500

by http://platformio.org/



What is Platfrom IO

PlatformIO is an open source ecosystem for IoT development. PlatformIO supports WIZnet W7500 IoT platfrom such like WIZwiki-W7500, WIZwiki-W7500ECO, and WIZwiki-W7500P.

  • Features
    • Cross-platform IDE
    • Unified debugger
    • Remote unit testing
    • Firmware updates

Platform IO provides PlatformIO IDE, and Libarary Manager for Developing IoT Platfrom

PlatformIO IDE

PlatfromIO IDE supports three-kind IDE enviroments

PlatformIO Core

PlatformIO Core is a heart of whole PlatformIO ecosystem. This a Command Line Tool that consists of multi-platform build system, platform and library managers and other integration components.
It’s written in pure Python and works without any dependencies to host machine or third party software

PlatformIO IDE

PlatformIO IDE is the the next-generation integrated development environment for IoT. We provide official extension/plugin for the popular IDEs.

  • The Popular IDEs
    • Atom
    • VSCode
    • Cloud9
    • Codeanywhere
    • Eclipse Che
    • CLion
    • CodeBlocks
    • Eclipse
    • Emacs
    • NetBeans
    • Qt Creator
    • Sublime Text
    • VIM
    • Visual Studio

It’s built on top of PlatformIO Core. You no need to install PIO Core separately, our IDE already contains it and you can use it later via PlatformIO IDE Terminal.

Integration

Find out how to integrate PlatformIO with the popular Cloud & Standalone IDEs and Continuous Integration (CI) systems.
Extend your favourite environment with professional instruments.

Supported Embedded Boards (+400)

PlatformIO currently supports over 400 boards from leading manufacturers, and we are constantly adding new ones.

You can be part of the process by letting us know what board you wish to see supported next, by submitting a feature request.

WIZnet W7500

The IOP (Internet Offload Processor) W7500 is the one-chip solution which integrates an ARM Cortex-M0, 128KB Flash and hardwired TCP/IP core for various embedded application platform especially requiring Internet of things

For more detailed information please visit vendor site


Learn More

Goto Original

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자

Vintage radio Sonos hack

by Thomas M



Overview

Introducing the Tandberg Sølvsuper 10 radio, a product of the Scandinavian Hi-Fi golden age. Sadly, after decades in storage, the huge variable capacitor inside has seized from corrosion and the radio was beyond repair.

So, what to do? Can this piece of 60s design be refurbished and made useful in the world of Internet of Things?

What to do

He made this product as the following steps.

  • Lighting
  • Rotary Encoders
  • Stepper Moter
  • Main Board
  • Ethernet and USB

Demo Movie

Learn More

Goto Original

 

저작자 표시 동일 조건 변경 허락
신고
블로그 이미지

밤소 MidnightCow

위즈네트 칩(W5300, W5200, W7100, W7500) 개발자