Speeding Detection System
.
Team Information
Saad Khan, Ibrahim Khan
ECE4180, Section B
Description
The Speeding Detection System is designed to track a driver's speed and notify them when they cross a certain speed or when they are driving unsafely. The system records when a violation occurs for later viewing by anyone interested. GPS is used to calculate the speed a driver is moving by using two longitude and latitude measurements. An accelerometer is used to detect sharp turns. When a driver crosses a certain speed or turns too sharply, a speaker plays a warning and a time stamp is recorded onto an SD card.
An image of the system is shown below:
Parts
- MBED
- BR-355 with RS-232 Breakout and PS/2 Breakout
- MicroSD breakout board
- Speaker
- LSM9DS1 IMU
- TPA2005D1 Class D Audio Amp
- uLCD-144-G2
- 5v External Power
Wiring
BR-355
PS/2 breakout pin | MBED |
---|---|
Vcc | 5V (external) |
GND | GND |
RS-232 breakout pin | MBED |
---|---|
Vcc | 5V (external) |
GND | GND |
TX | p14 |
MicroSD breakout
MicroSD breakout pin | MBED |
---|---|
CS | p8 (DigitalOut) |
DI | p5 (SPI mosi) |
VCC | VOUT |
SCK | p7 (SPI sclk) |
GND | GND |
DO | p6 (SPI miso) |
Amp and Speaker
MBED | TPA2005D1 | Speaker |
---|---|---|
GND | PWR-, IN- | |
5V (external) | PWR+ | |
p26 (PWM) | IN+ | |
OUT+ | + | |
OUT- | - |
LSM9DS1
IMU breakout pin | MBED |
---|---|
GND | GND |
VDD | VOUT |
SDA | p9 (SDA) |
SCL | p10 (SCL) |
uLCD
uLCD | MBED |
---|---|
+5V | 5V (external) |
TX | p27 |
RX | p28 |
GND | GND |
RES | p30 |
Video
Code
Import programSpeedDetectionSystem
Code for mbed running GPS and IMU to calculate speed and notify if too high or acceleration too high. By Ibrahim Khan and Saad Khan
Please log in to post comments.