Ultrasonic Distance Measurement NRF905 Wireless Transmission System Based on Arduino

By on April 3, 2015

Web site:


Project Summary:

ICStation Team introduce you this ultrasonic distance measurement NRF905 wireless transmission system with ICStation UNO and Mega 2560 compatible with Arduino. The working voltage is DC5V. It uses ultrasonic to measure distance and realizes wireless transmission with NRF905. The minimum accuracy of this design is one centimeter. The measuring effect is best between 3 and 100 centimeter. It can be used in the area where has no high demand of accuracy, such as the obstacle avoidance of robot and the distance detection alarm when reversing a car.

Full Project:

1.When start up, the hardware initializes. The ranging module displays the prompt characters. After the initialization of the ultrasonic module finishes, it begins to display the measuring distance and starts the wireless transmission.
2.When the transmitting module works, you will see the sending end of the development board flash, at the same time, the value displayed on the LCD1602 refreshes continually.
3.In the receiving end, when receives the data successfully, the LED on the development board flashes and data is sent to the upper computer to display.
4.When change the distance between the object under test and ranging module, observe the data displayed on the LCD1602 in the sending end and the upper computer in the receiving end. When to increase and decrease the measuring distance, the displayed data changes correspondingly and the response accuracy is 1centimeter.

Step 1: Connect NRF905 module to the ICStation UNO

Define the NRF905 module and ICStation UNO as following and connect the sending end and receiving end.
TXEN=5; TRX_CE=6;PWR=A0;CSN=4;AM=7;DR=3;CD=2; MOSI=11;MISO=12;SCK=13 ;

Step 2: Connect the ultrasonic ranging module to the ICStation UNO

The definition of the pins of HC-SR04 module as the picture shows.
Define other functional pins as following:
TrigPin=8 EchoPin=9

Step 3: Connect the LCD 1602 to the ICStation UNO

Define other functional pins as following:
RS=A1, E=A2,D4=A3,D5=A4,D6=A5,D7=10

Step 4: The whole effect of sending end after connection

Step 5: The whole effect of receiving end

Step 6: Video to show the effect



Circuit diagram:

The hardware schematic diagram of receiving end

The schematic diagram of sending end

Bill of Materials:

1.ICStation ATMEGA328 UNO V3.0 R3 Board Compatible Arduino UNO R3
2.ICStation ATMEGA2560 Mega2560 R3 Board Compatible Arduino
3.NRF905 Wireless Module
4.For Arduino Ultrasonic Module HC-SR04 Distance Transducer Sensor
5.1602A HD44780 Character LCD Display Module LCM Blue Backlight
6.10pcs Dupont 20cm Color Cable Line 1p-1p Pin Connector


Code for your reference

RX part:


TX part:




Leave a Reply

Your email address will not be published.