กลับไปหน้ารวมไฟล์
iot-bicycle-radar-782b73-en.md

OPLA IoT Bike Radar

#cloudgames2022

Use the Opla IoT Kit and a couple sensors to make a smart bike computer!

The On-board screen is used to show readings from the ultrasonic sensor, the speed and the ambient. Button 1 displays the temperature, humidity and pressure, Button 2 displays the ultrasonic sensor readings and Button 3 displays the speed. All this data is also shown on the mobile phone.

USING THE IOT CLOUD.

First of all create a new "thing" on IoT Cloud. You will be presented to this screen:

IoT Cloud.

We will start by creating some variables.

  • Temperature (float) (Refresh periodically every one second)
  • Humidity (float) (Refresh periodically every one second)
  • Pressure (float) (Refresh periodically every one second)
  • Light (int) (Refresh periodically every one second)
  • Speed (int) (Refresh on change)
  • Distance (int) (Refresh on change)

It should look something like this:

All the variables

Now its time to attach a board. Plug in your board (for this project I'm using a MKR 1010 WiFi board) and follow the on-screen instructions.

Once the board is attached, connect it to your wifi (The wifi connection has to be a hotspot from a mobile phone).

Now, enter the sketch tab and open the code on the full editor. Then paste the code from this project.

It should look like this:

The sketch

What we are going to do now is delete the ThingPropierties.h tab because its contents are implemented into the code. Now you are ready to upload it into the board!

BUILDING THE DASHBOARD

Now that the board is programed we have to build the dashboard!

Open the Dashboard tab and build a new dashboard.

Press the add button then things and select the Thing we created.

It should look like this:

IoT Dashboard

Now you can change to mobile layout and rearrange the dashboard. Mine looks like this:

Mobile Layout.

HARDWARE CONNECTIONS

Now that all the software is done we can move to the sensors.

The connections for the HC-SR04 Ultrasonic Sensor:

  • GND TO GND
  • VCC TO 5V
  • TRIG TO PIN5
  • ECHO TO PIN4

The connections for the GPS Module:

  • GND TO GND
  • VCC TO 5V
  • RX TO TX
  • TX TO RX

Thats all! Slide a battery in the battery slot on the IoT carrier and it should start working!

Thanks to Arduino for sending me an Opla IoT kit! And thanks to the Arduino discord for all the help!

EXPANDED TECHNICAL DETAILS

Vehicle Proximity Awareness

Developed for cyclist safety, this project creates a rear-facing radar system to alert the rider of approaching vehicles from behind.

  • RADAR Sensing Hub: Uses a 24GHz Microwave Doppler Radar sensor (like the RCWL-0516 or HLK-LD2410). Unlike ultrasonic sensors, this is less affected by wind and can detect movement through plastic housings.
  • Sensing Logic: The Arduino processes the frequency shift from the radar module to determine if an object is approaching and at what relative speed.

Haptic & Visual UX

  • Alert System: Features a high-intensity blinking LED on the handlebars and a vibration motor (haptic feedback) in the rider's seat or helmet.
  • Cloud Logging: Using the Arduino IoT Cloud, the system logs "Near-Miss" events with timestamps, allowing urban planners or cyclists to visualize dangerous traffic hotspots on a map.

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

title: "IOT Bicycle Radar"
description: "Make a car detecting radar with GPS and IOT."
author: "coloitu_"
category: "Internet of Things, BT & Wireless"
tags:
  - "transportation"
  - "internet of things"
  - "cloudgames2022"
  - "cloudgames2022"
views: 11335
likes: 6
price: 2450
difficulty: "Easy"
components:
  - "1x Male/Female Jumper Wires"
  - "1x Soldering iron (generic)"
  - "1x Arduino Oplà IoT Kit"
  - "1x Tape, Electrical"
  - "1x GPS Module (Generic)"
  - "1x Ultrasonic Sensor - HC-SR04 (Generic)"
tools: []
apps:
  - "1x Arduino IoT Cloud"
  - "1x Arduino Web Editor"
downloadableFiles: []
documentationLinks: []
passwordHash: "423b00c7054985a7ac9f960114c6dc44ca14d738fea79d60993d841b3dc1e6d6"
encryptedPayload: "U2FsdGVkX19juss2H8lQGO1uGNYaZ/ka9FA3InJ51oIF+lSKnPE8IFKr7WbqWEFP34ddj5rnajji0WSJ2h7Jg1ayFEPxNIFQLmaIOFJMEZ4IfcPVPhoGeWxDoIAjAhp2eWZAwo6/qxZjD47gAuq4Gg=="
seoDescription: "Build an IOT Bicycle Radar to detect Car movement using GPS and Radar technology for enhanced safety."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/iot-bicycle-radar-782b73_cover.jpg"
lang: "en"