This shows you the differences between two versions of the page.
pm:prj2025:abirlica:andrei.badoiu2303 [2025/05/05 23:30] andrei.badoiu2303 created |
pm:prj2025:abirlica:andrei.badoiu2303 [2025/05/30 05:00] (current) andrei.badoiu2303 [Bibliografie/Resurse] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Car Safety System ====== | ====== Car Safety System ====== | ||
+ | <note> | ||
+ | **Nume**: Badoiu Andrei-Dragos\\ | ||
+ | **Grupa**: 335CA | ||
+ | </note> | ||
+ | ===== Introduction ===== | ||
+ | The project intends to implement the general safety systems found in modern cars. | ||
+ | These functions include, but are not limited to: | ||
+ | * parking sensors | ||
+ | * emergency braking | ||
+ | * throttle by wire, simulated using bluetooth control | ||
+ | <note tip> | ||
+ | For a better understanding of the possibilities these features allow, check out [[https://www.skoda-storyboard.com/en/press-kits/new-skoda-enyaq-press-kit-2/safety-new-parking-features-and-advanced-assistance-systems/|this rundown]] and [[https://cdn.skoda-storyboard.com/2025/03/New_Skoda_Enyaq_and_Skoda_Enyaq_Coupe_Assistance_systems_9373b3d7.jpg|infographic]] by Skoda. | ||
+ | </note> | ||
+ | ===== General Description ===== | ||
+ | |||
+ | The device starts automatically in stand-by mode after connecting to a power source. Control can be achieved through low energy bluetooth using a companion mobile app or a serial usb connection. As such, aside from engine start and stop option, the user can adjust engine speed, activate emergency braking sensors and configure braking tolerances for early or late intervention. | ||
+ | |||
+ | {{ :pm:prj2025:abirlica:andrei.badoiu_css_diagram.drawio.png?300 |}} | ||
+ | |||
+ | ===== Hardware Design ===== | ||
+ | Hardware used: | ||
+ | * AtMega328p based development board | ||
+ | * HM10 bluetooth module | ||
+ | * HC-SR04 ultrasonic proximity sensor | ||
+ | * JS-50B bldc motor | ||
+ | * bjt darlington pair as motor-driver | ||
+ | |||
+ | {{ :pm:prj2025:abirlica:andrei.badoiu_schematic.png?300 |}} | ||
+ | |||
+ | ===== Software Design ===== | ||
+ | |||
+ | **Development Environment**: Arduino IDE | ||
+ | |||
+ | **External Sources**: SoftwareSerial.h library | ||
+ | |||
+ | **Implementation**: | ||
+ | * Device initializes a Serial connection through software with the bluetooth module and loops indefinitely awaiting for commands | ||
+ | * Received commands are processed and errors are filtered by a command handler | ||
+ | * Proximity sensors loop distances and send a flag to stop the engine in the case of emergency braking | ||
+ | |||
+ | **Functions**: | ||
+ | * setup() - called on startup, initializes modules | ||
+ | * loop() - loop runs function calls and commands for instant response | ||
+ | * update_motor() - checks oob errors for pwm and sets pwm output | ||
+ | * check_prox() - checks values for proximity sensors | ||
+ | * exec() - command handler | ||
+ | * check_crash() - checks datasets of proximity sensors for an accurate crash estimate | ||
+ | |||
+ | ===== Conclusions ===== | ||
+ | |||
+ | Car starts, runs and stops efficiently. Fail-safe functions for wireless connections should be implemented for better connectivity. Noisy or reflective environments may produce false-positives for the proximity sensors and as such, a less than adequate experience. A | ||
+ | |||
+ | ===== Download ===== | ||
+ | |||
+ | {{:pm:prj2025:abirlica:andrei.badoiu_carsafetysystems.zip|}} | ||
+ | |||
+ | ===== Bibliografie/Resurse ===== | ||
+ | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||
+ |