IoT Traffic Monitor with Doppler Radar and Node Red

Posted on 09/12/2022 by ops_radar
Steps completed / 5
Press to mark a step as
completed or click here to complete all
Components you will need
Select missing items to add them
to the cart or select all
Introduction

This tutorial describes how to set up a Node Red traffic monitor dashboard that receives vehicle speed information from an OmniPreSense OPS243-A radar sensor.  The traffic monitor dashboard can be viewed anywhere to monitor the traffic on a street.


The details of installing Node Red on a Raspberry Pi won't be gone into here but here's some good links to help with installing Node Red:

  • NodeRed.org

  • Steve's Guide: http://stevesnoderedguide.com/installing-node-red

Some Raspberry Pi may have Node Red already installed but if not, here's a link to download Node Red: https://nodejs.org/en/

It's a simple connection, one USB micro cable from the Node Red USB port to the OPS243-A USB micro connector.  The USB provides power to the radar sensor and the data will flow from the sensor to the Raspberry Pi once it's powered on.  Make sure the Raspberry Pi has a good power source, 2A power supply is recommended.  We've seen some Raspberry Pi starve the USB ports of power.

Next, import the traffic monitor flow into Node Red.  The flow can be found here.  The Import selection is to the right side of the Node Red window.  Before importing, change the filename prefix from .pdf to .json as Node Red uses flows in JSON format.  You may need to import additional nodes into your window to support the flow.  These nodes may be represented with a red dot on them.

There's several configurations you'll want to make to the dashboard for your usage.  For example, there's a map which can take in your desired longitude/latitude.  For accessing the data from your OPS243-A sensor, make sure to configure the Serial Port node with /dev/ttyACM0:19200-8N1 or similar.  See the AN-25 Node Red Traffic Monitor Dashboard application note for details of the node configurations.

On the Node Red dashboard in the upper right is a Deploy button.  Select that and your dashboard will be deployed.  If using a local Node Red server, it's usually viewable on port 1880.  The live dashboard from the AN-25 noted above is available for viewing here.

LikedLike this to see more

Spread the word

Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post