Industrielle Fertigung
Industrielles Internet der Dinge | Industrielle Materialien | Gerätewartung und Reparatur | Industrielle Programmierung |
home  MfgRobots >> Industrielle Fertigung >  >> Manufacturing Technology >> Herstellungsprozess

Echtzeit-Motorrad-Telemetrie mit Arduino, GPS, Sensoren & Azure Cloud

Hardware

Arduino UNO R3 1
u‑blox NEO‑7M GPS 1
LM35DT Temperatursensor (Außen) 1
TMP006 Infrarot-Temperatursensor (Reifentemperatur, kontaktlos) 1
HC‑05 Bluetooth (Arduino ↔ Windows Phone) 1
HC‑SR04 Ultraschall (2×, Federweg vorne/hinten) 2
ADXL345 3‑Achsen-Beschleunigungssensor (Lean/Wheelie-Winkel, G‑Kräfte) 1
ProtoShield / Breadboard / Jumper / 9 V Block + Clip 1 Set
Ducati Monster 695 (Testfahrzeug) 1
Lumia 650 (Windows 10 Mobile) für UWP-App 1

Software & Cloud

Systemarchitektur (7 Phasen)

  1. Erfassung: Arduino liest alle Sensoren ~2 Hz.
  2. Bluetooth: Daten per HC‑05 an Windows Phone (UWP-App).
  3. Cloud-Upload: App sendet per 3G/4G an Azure IoT Hub.
  4. Stream Analytics: Job schreibt Telemetrie in Azure SQL.
  5. Web App: Echtzeit-Dashboard (Charts, Authentifizierung) liest SQL via Entity Framework.
  6. Machine Learning: Historische Daten → Trainings‑/Vorhersagemodell (Fahrstil-Klassifikation).
  7. Feedback (Zukunft): Predictive Service → Event Hub → Cloud Service → IoT Hub → Phone (Warnung bei riskantem Fahrstil).

Sensor-Details & Code-Snippets

Bluetooth (SoftwareSerial)

#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10, 11); // RX, TX
void setup() { BTSerial.begin(9600); }
void loop() { BTSerial.print("Hello Hackster"); }

GPS (TinyGPS++ + SoftwareSerial)

#include <TinyGPS++.h>
SoftwareSerial ss(12, 13);
TinyGPSPlus gps;
void loop() {
  while (ss.available()) if (gps.encode(ss.read())) {
    if (gps.location.isValid()) { lat = gps.location.lat(); lon = gps.location.lng(); }
  }
}

ADXL345 (I²C, Offset-Kalibrierung, Lean/Wheelie)

#include <ADXL345.h> #include <Wire.h>
ADXL345 acc;
double Xg,Yg,Zg, refXg,refYg,refZg; int i=0;
void loop() {
  acc.read(&Xg,&Yg,&Zg);
  if (i==0) { refXg=Xg; refYg=Yg; refZg=Zg; i=1; }
  Xg-=refXg; Yg-=refYg; Zg-=refZg-1; // +1g auf Z
  roll  = -(atan2(-Yg, Zg) * 180/PI);      // Lean Angle
  pitch =  (atan2(Xg, sqrt(Yg*Yg+Zg*Zg)) * 180/PI); // Wheelie Angle
}

TMP006 (I²C, Reifentemperatur)

Montageabstand ≤ Reifenbreite/4 (bei 160 mm → ≤40 mm). Library: Adafruit_TMP006.

LM35 (Analog, Außenluft)

float celsius = (analogRead(A1)/1023.0*5000)/10; // 10 mV/°C

HC‑SR04 (NewPing Library, Federweg)

#include <NewPing.h>
NewPing sonar(2,3,200); // Trig, Echo, MaxDist cm
int dist = sonar.convert_cm(sonar.ping());

UWP-App (Windows 10 Mobile)

Deployment via WinAppDeployCmd.exe (ARM-Paket, Developer Mode, USB).

Azure-Konfiguration

  1. IoT Hub: Erstellen, Connection String (iothubowner) notieren.
  2. Stream Analytics Job: Input = IoT Hub, Output = SQL Azure Tabelle, Query: SELECT * INTO SqlAzureMyTelemetry FROM MyTelemetryInputHub.
  3. Web App + SQL: Free Tier (F1), Custom Domain kaufbar.
  4. Device ID: Via Console App (Microsoft.Azure.Devices NuGet) registrieren → Primary Key generieren.

Web-Dashboard

Responsive ASP.NET (Entity Framework). Demo-Zugang: User demo / Pass demo. Zeigt Charts für Speed, Lean, Pitch, G‑Forces, Temperaturen, Federwege, GPS-Karte.

Machine Learning (Azure ML Studio)

Montage am Motorrad (Ducati Monster)

Zukunftsausbau

Code-Repositories

Schaltplan

Echtzeit-Motorrad-Telemetrie mit Arduino, GPS, Sensoren & Azure Cloud

Fritzing-Datei: MotorbikeProject.fzz

Herstellungsprozess

  1. Sensor Telemetrie 2.0.1 – Fortschrittliche Temperaturüberwachung mit Azure IoT Hub
  2. KI-gestütztes Hindernisvermeidungssystem mit Arduino und Ultraschallsensoren
  3. Interaktives Gyroskop-LED-Display mit NeoPixel-Ring & Arduino
  4. DIY Arduino USB Gaming Controller – Bauen Sie Ihren eigenen High-Performance Gamepad
  5. DIY Wolken-Kostüm: LED-Streifen, Arduino Nano & SparkFun Teile
  6. Industrieroboter für Materialtransport – Linienfolger mit RFID & Ultraschall
  7. Pixie: DIY NeoPixel-Armbanduhr mit Arduino Pro Mini – Schick & Selbstgebaut
  8. Smarte Arduino-Trinkflasche: Echtzeit-Überwachung & Trinkerinnerung
  9. DIY Schattentheater mit Arduino 101 & adressierbarem LED-Strip (Blynk-Steuerung)
  10. Tragbares Überwachungs-Roboter-System mit Raspberry Pi & Android-App