กลับไปหน้ารวมไฟล์
arduino-raspberry-pi-ubidots-made-easy-026ca9-en.md

Want to connect your Arduino sensors to Raspberry Pi? This guide will serve as an easy how-to for beginners. I'm new to Arduino so I wanted to create something for everyone to be able to complete in a short amount of time.

Getting Started 

  • Assemble all needed equipment & supplies

Raspberry Pi Setup

  • Make sure Pi is connected to internet via WiFi or Ethernet
  • In terminal run "sudo apt-get update" & "sudo apt-get upgrade"
  • Install Pyserial "pip install pyserial"
  • Install Arduino IDE on your Raspberry Pi

Board Setup

Connecting the Sensor and Arduino
  • For this example, I used Arduino Uno R3. Follow the Fritzing diagram provided for breadboard setup.
  • Plug the USB cable from Arduino into the Raspberry Pi
  • Copy the Arduino sketch to the IDE and upload to the board
  • Open Python 2.7 IDLE and copy the file provided, press F5 to run (need to save first)

You will see new readings every 10 seconds (default, can be changed in Arduino). Create your dashboard in Ubidots to display the data in whatever format you want.

Dashboard Example

EXPANDED TECHNICAL DETAILS

Heterogeneous Cloud Gateway

This project creates a professional-grade IoT gateway by combining the localized sensing of Arduino with the high-level processing of Raspberry Pi and the Ubidots Cloud.

  • I2C Master-Slave Pipeline: The Arduino acts as a dedicated sensor-node (sampling analog data like light or soil moisture). It sends the processed data to the Raspberry Pi over an I2C link.
  • Python Cloud Scripting: The Raspberry Pi runs a Python script that aggregates the data and uses a secure REST API to upload it to the Ubidots Dashboard.

Global Visualization

  • Ubidots Dashboarding: Features a real-time web console with gauges, maps, and historical graphs, providing a professional "End-to-End" solution for remote industrial monitoring.

ข้อมูล Frontmatter ดั้งเดิม

title: "Arduino + Raspberry Pi + Ubidots Made Easy"
description: "Create an IOT  dashboard using Arduino & Raspberry Pi."
author: "daescobar"
category: "Lab Stuff"
tags:
  - "weather"
  - "home automation"
  - "data collection"
views: 23771
likes: 7
price: 2450
difficulty: "Easy"
components:
  - "1x Jumper wires (generic)"
  - "1x Raspberry Pi 3 Model B"
  - "1x Arduino UNO"
  - "1x Temperature Sensor"
  - "1x Solderless Breadboard Half Size"
tools: []
apps:
  - "1x Ubidots"
  - "1x Python IDLE 2.7"
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "06815c18837e650927142dae6ec5174729e8521c07bcc0e859e4d673d61f1d71"
encryptedPayload: "U2FsdGVkX1+hdvAxDQDUJwbyyHz16DQne7i+nzPln6QeVj3lAx8bjA90d6lx8Dp2hmzCmoN/xXnrbA8Y8wi5dFHM85d38Ugs7eQl8075j+tS1FIR7oul0VwS6ORMWiQOA+DLRO848f0bMCZrSka7Og=="
seoDescription: "Build an IOT dashboard using Arduino and Raspberry Pi with Ubidots. Simple step-by-step guide for developers."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-raspberry-pi-ubidots-made-easy-026ca9_cover.png"
lang: "en"