Garage Parking Assistant - Sothus/SmartPiHome GitHub Wiki

Description:

This module uses ultrasonic sensor to get distance from drivers car. 4 LEDs shows driver distance to the wall. When distance between them decrease more LEDs starts emiting light and buzzer is getting louder.

Developer usage:

You need to import GPA.py script from garage module and create GarageParkingAssistant object assigning to them Raspberry Pi connected to the circuit and pins controlling: ultrasonic sensor, leds and buzzer.

Example:

from garage.GPA import GarageParkingAssistant

gpa = GarageParkingAssistant('192.168.1.5', 14, 15, 18, 23, 24)

gpa.start()

Schematic:

Below is schematic of created circuit

Details: