UCI Coursera Final Project 2023
This radar is closely related to defense technology, where this tool can function as a determinant of the direction of movement / position / shape of a detected object. The purpose of this project is to be able to make a simple radar system from the utilization of Ultrasonic sensors. This project has been implemented and took approximately 1 day. This radar system is based on the Internet of Things, so it uses MQTT as its communication protocol. The system interface can be accessed alternately through Serial Monitor and Processing. The benefit of making this project is none other than to gain experience. The results show that the system can function properly.
Part | Description |
---|---|
Development Board | Wemos D1 R2 |
Code Editor | • Arduino IDE • Processing |
Driver | CH340 USB Driver |
IoT Platform | mosquitto |
Communications Protocol | Message Queuing Telemetry Transport (MQTT) |
IoT Architecture | 3 Layer |
Application Support | MQTT Explorer |
Programming Language | • C/C++ • Processing |
Arduino Library | • ESP8266WiFi (default) • PubSubClient • ArduinoJson • Servo |
Actuators | Servo Motor SG90 180° (x1) |
Sensor | HC-SR04: Ultrasonic Sensor (x1) |
Other Components | • Micro USB cable - USB type A (x1) • Jumper cable (1 set) • Screws (1 set) • HC-SR04 Mounting Bracket (x1) |
-
Arduino IDE
https://bit.ly/ArduinoIDE_Installer
-
Processing
https://bit.ly/Processing_Installer
-
MQTT Explorer
https://bit.ly/MQTT_Explorer_Installer
-
CH340 USB Driver
https://bit.ly/CH340_USB_Driver
When an object is in the sensor detection area, the sensor will respond by sending publish data to the IoT platform (mosquitto) and then sending back in the form of subscribe data to be displayed on the serial monitor. As for the graph, users can also see a significant color difference in the detection area. If no object is found, the sensor and actuator will always be on standby.
Block Diagram | Pictorial Diagram |
---|---|
Wiring |
---|
-
Open the
Arduino IDE
first, then open this project by clickingFile
->Open
:wemos_d1r2_radar.ino
-
Fill in the
Additional Board Manager URLs
in Arduino IDEClick
File
->Preferences
-> enter theBoards Manager Url
by copying the following link :http://arduino.esp8266.com/stable/package_esp8266com_index.json
-
Board Setup
in Arduino IDEHow to setup the
WEMOS D1 R2
board• Click
Tools
->Board
->Boards Manager
-> Installesp8266
.• Then click
Tools
->Board
->ESP8266 Board
->LOLIN(WEMOS) D1 R2 & mini
.
-
Change the Board Speed
in Arduino IDEClick
Tools
->Upload Speed
->115200
-
Install Library
in Arduino IDEDownload all the library zip files. Then paste it in the:
C:\Users\Computer_Username\Documents\Arduino\libraries
-
Port Setup
in Arduino IDEClick
Port
-> Choose according to your device port(you can see in device manager)
-
Change the
WiFi Name
,WiFi Password
, andClient ID
according to what you are currently using. -
Before uploading the program please click:
Verify
. -
If there is no error in the program code, then please click:
Upload
. -
If there is still a problem when uploading the program, then try checking the
driver
/port
/others
section.
-
Open the
Processing
first, then open the Radar GUI project by clickingFile
->Open
:radar_gui.pde
-
Customize your
port
with the one in theArduino IDE
. This is so that the board can be recognized byProcessing
, so that the code can be run properly. -
The last step, please click:
Run
.
-
Open the
MQTT Explorer
. Then, click the Connections:test.mosquitto.org
. -
Click the
ADVANCED
->Delete All Topics
. -
Create a
new Topic
with QoS "0":coursera/uci/radar
-
Copy and paste the
Client ID
into theArduino IDE
project. -
Next, click:
BACK
. The last step, please click:CONNECT
.
-
Download and extract this repository.
-
Make sure you have the necessary electronic components.
-
Make sure your components are designed according to the diagram.
-
Configure your device according to the settings above.
-
Please enjoy [Done].
Device | |
---|---|
MQTT Explorer (JSON data on Topic) | |
---|---|
Serial Monitor (Publish & Subscribe) | |
---|---|
Processing (Radar Graphic User Interface) |
---|
|
You can download the component test file via the following link: Click Here
If this work is useful to you, then support this work as a form of appreciation to the author by clicking the ⭐Star
button at the top of the repository.
This application is my own work and is not the result of plagiarism from other people's research or work, except those related to third party services which include: libraries, frameworks, and so on.
MIT License - Copyright © 2023 - Devan C. M. Wijaya, S.Kom
Permission is hereby granted without charge to any person obtaining a copy of this software and the software-related documentation files to deal in them without restriction, including without limitation the right to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons receiving the Software to be furnished therewith on the following terms:
The above copyright notice and this permission notice must accompany all copies or substantial portions of the Software.
IN ANY EVENT, THE AUTHOR OR COPYRIGHT HOLDER HEREIN RETAINS FULL OWNERSHIP RIGHTS. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, THEREFORE IF ANY DAMAGE, LOSS, OR OTHERWISE ARISES FROM THE USE OR OTHER DEALINGS IN THE SOFTWARE, THE AUTHOR OR COPYRIGHT HOLDER SHALL NOT BE LIABLE, AS THE USE OF THE SOFTWARE IS NOT COMPELLED AT ALL, SO THE RISK IS YOUR OWN.