A little curiosity. A whole lot of making.Robotics, CNC & connected ideas
robodatech.
Arduino sample library

Roboda Cloud State 19

Package robot state as JSON for Roboda Cloud telemetry ingestion.

Open in compiler →
/*
  Roboda verified Arduino sample 0474
  Feature: Roboda Cloud State
  Generated for online build, classroom practice, and hardware upload testing.
*/

const byte batteryPin = A0;

void setup() {
  Serial.begin(9600);
}

void loop() {
  int battery = analogRead(batteryPin);
  Serial.print("{\"sample\":");
  Serial.print(474);
  Serial.print(",\"battery\":");
  Serial.print(battery);
  Serial.println(",\"signal\":\"online\"}");
  delay(290);
}

How it works

Print a JSON-style robot state payload for telemetry ingestion.

  1. Connect the telemetry signal to the listed analog pin.
  2. Read the value in loop().
  3. Print valid key/value fields over Serial.
  4. Send similar payloads to Roboda Cloud from a network-capable gateway.

Connections

PinConnect toNote
A0Battery divider or analog telemetry signalUse a resistor divider so the analog pin never exceeds board voltage.

Good ideas start here.

Robotics lessons, build notes and useful updates. Subscribe by entering your email.