parkSTOP

Various creative Make projects.
rwblinn
Site Admin
Posts: 224
Joined: 07 Oct 2017, 12:16

parkSTOP

Postby rwblinn » 07 Oct 2017, 19:21

Introduction
The goal of parkSTOP is to build a parkSTOP device to visually indicate via LED if parking position is reached.
In addition, indicate via Android App, comunicating via Bluetooth, the actual distance and if parking position reached.
Usage f.e. to park in the garage for cars without parking distance sensors or park at an exact position.
Powered by an Arduino UNO, controlled by B4R & B4A.
Version v1.0 (20170124).

Image

Functionality
  • ParkSTOP Device: Indicate position LED RED = reached Stop distance, YELLOW = reached Warning distance (=1.5 times stop distance), GREEN = reached between notify distance and warning distance.
  • ParkSTOP Device: Alarm (via Buzzer) when reaching warning or stop distance.
  • ParkSTOP Device: Store settings (in EEPROM).
  • Android App: Show distance, indicator meter with bar to see position, indicate to stop, set stop-/ notify distance and if buzzer on.
  • Communication via Bluetooth between the devices e.g. ParkSTOP device and Android App.
  • Open to connect other Bluetooth devices (but only one at the time).

Creation Rules
  • Use as microcontroller an Arduino UNO.
  • Use standard LEGO bricks.
  • Minimize LEGO brick modifications.
  • LEGO Case with modular components.
  • Build code with B4R and B4A.

Prototype
Build to test the module functionality developed with B4 and B4A.

Download B4R & B4A Source Code
Published on the B4R Forum.

Hardware Parts (approx cost €)
  • 1x Arduino UNO (8 €)
  • 1x HC-05 Bluetooth Adapter (7 €)
  • 1x HC-SR04 Ultrasonic Distance Sensor (2 €)
  • 1x Buzzer (1.75 €)
  • 3x LED (0.75 €)
  • In addition for the prototype: Breadboard (2 €)
  • LEGO bricks [LEGO is a trademark of the LEGO Group] (10 €)
Software
  • Min software versions required:
  • Arduino IDE 1.8.0
  • B4R v1.80
  • B4A v6.50
Wiring
Image

Arduino = Buttons (WireColors)
Bluetooth

Code: Select all

HC-05 = Arduino
VCC = 5v (red)
GND = GND (black)
TX = 10 Receive Pin (green)
RX = 11 Transmit Pin (yellow)

Distance

Code: Select all

HC-SR04 = Arduino
VCC = 5v (red)
Trigger = D8 (blue)
Echo = D7 (white)
GND = GND (black)

Indicators

Code: Select all

LED RED = STOP
LED = Arduino
Anode (+) = D4
Cathode (-) = GND
LED YELLOW = WARNING
LED = Arduino
Anode (+) = D5
Cathode (-) = GND
LED GREEN = OK
LED = Arduino
Anode (+) = D6
Cathode (-) = GND

Buzzer

Code: Select all

Signal = D12 (red)
GND = GND (black)

To-Do List
  • B4A UPD: IndicatorMeter: make as custom view, big blue arrow as side indicator at the blue bar, scale.
  • B4A UPD: Set stop-/notify distance via spinner with steps of 10cm.

Changelog
  • 20170124: v1.0
  • 20170118: First prototype

Return to “Projects”



Who is online