Categories
TUTORIALS

Use RF 433MHz Transmitter/Receiver to transmit parking availability data

Overview

This is the third tutorial for Smart Parking Philadelphia(SPP), which is the final project of our team for Sensing the City course taught by Allison Lassiter in Upenn.

In this tutorial, I will simulate the changes in street parking spots generated by traffic, transmit and receive this data by RF 433MHz Transmitter/Receiver. Please refer to my teammate’s tutorial for details on how to get street parking data: https://www.sensingthecity.com/induction-loop-detector-for-counting-vehicles-entering-and-leaving-a-section-of-street/

The major steps are:

  1. Solder pin headers
  2. Prepare your Arduino IDE to communicate with the RF 433MHz Transmitter/Receiver
  3. Wire the circuits
  4. Write code to control the transmitter and receiver boards
Advantage & Resource

Why RF 433MHz ?

RF 433MHz

Reference: https://homey.app/en-ie/wiki/433-mhz/

  1. Low cost
  2. Good signal, works even when obscured by entities
  3. Easy to operate

In this tutorial, the coding part was mainly from: https://randomnerdtutorials.com/rf-433mhz-transmitter-receiver-module-with-arduino/

For how to convert the data into integars, I also asked for some instructions from the arduino forum: https://forum.arduino.cc/t/transmitting-an-int-over-433mhz-rf-transmitter-reciever/586222/2

For the visualization with RGB LED part, it is in my teammate Hongyi’s tutorial:

https://www.sensingthecity.com/use-rf-433mhz-receiver-and-rgb-led-to-visualize-street-parking-availability/

Parts Needed
  1. RF 433MHz :
  • Working distance: within 500 feets wirelessly

2. Large breadboard (or two small breadboards)

3. Arduino Uno *2

3. RGB LED

4. Male To Female Jumper Wires

Step by Step Tutorial
1. Transmit Data

The first part is to transmit the parking data. In my section I will use numbers to simulate the real street parking number, and how to get them will be available in my teammates’ tutorial. Wire the transmitter module to the Arduino by following the next schematic diagram.

For this part, we should download a library called  RadioHead and install it.

The transmit data needs one computer and an arduino Uno. The code is in part 4, transmit code.

Transmit Circuit Photo
2. Receiving Data

Wire the receiver module to another Arduino by following the next schematic diagram.

The receiver circuit will receive the parking data and then visualize it. The receiving data also needs one computer and an arduino Uno. By this step, we can get the parking data. The code for this part is in part 4, receive code.

Receive Circuit Photo
Receive Circuit (Source: Self-drawn by the author)
3. Visualization

Specific Parking Availability

The visualization part was divided into two parts. For the first part, we can use serial monitor to show the specific number of parking spots in the street. However, it is still a little bit hard for drivers to make a decision within few seconds. So we tried to use different colors of LED to visualize the availability of parking spots.

Received Parking Data

Visualize with RGB LED

Then we can use the RGB LED to visualize the availability of parking spots in the street. This part will be explain in detail in my teammate’s part.

color of the LED will change by the availability of parking spots
4. Write code to control the transmitter and receiver boards

Transmit Code

Receive Code

Congratulations! You’ve sensed, transmitted, received, and responded to stimuli using RF 433MHz Transmitter/Receiver!

Leave a Reply

Your email address will not be published. Required fields are marked *