Skip to content

Commit 48d7601

Browse files
authored
Project/alexandros.tzikas (#1320)
* Add project page for alexandros.tzikas * Alexandros Tzikas project documentation * weekly log update * Update log/add schematics * fixed schematics+hardware+log update * Update to log + other things
1 parent d1efd62 commit 48d7601

3 files changed

Lines changed: 39 additions & 14 deletions

File tree

website/versioned_docs/version-fils_en/project/2026/alexandros.tzikas/index.md

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,19 @@ An embedded project that simulates a real-life parking, using a barrier to allow
1111
:::
1212

1313
## Description
14-
This project is designed to be a model of a real-life parking; it uses two ultrasonic sensor to detect cars approaching a barrier (operated by a SG90 servomotor), both entering and exiting the parking, opening the barrier for exiting cars and opening the barrier for entering cars if they are authorized to enter, witch is ascertained by an ESP32-CAM. If the parking is full, the barrier will not open for any cars attempting to enter. The computations and processing are all done by the microcontroller (STM32-NUCLEO-U545RE-Q).
14+
This project is designed to be a model of a real-life parking; it uses two ultrasonic sensor to detect cars approaching a barrier (operated by a SG90 servomotor), both entering and exiting the parking, opening the barrier for exiting cars and opening the barrier for entering cars. If the parking is full or blocked (entry can be temporarly blocked via a button), the barrier will not open for any cars attempting to enter. A buzzer will play a sound effect when a car tries to enter/exit. The number of available parking slots is shown by 4 LEDs that will be lit for free spaces and unlit for occupied spaces. The computations and processing are all done by the microcontroller (STM32-NUCLEO-U545RE-Q).
1515

1616
## Motivation
1717
I chose this project because it is a real-life application witch can help me learn rust better, as it help me understand subjects such as real-time sensor integration; it was also suggested to me by a coleague as beeing a reliable project idea.
1818

1919
## Architecture
2020

21-
![System Architecture](./maarchbun.svg)
21+
![System Architecture](./maarchupdated.svg)
2222

2323
Input:
2424

2525
*HC-SRO4* ultrasonic sensor will receive signals to see the ditance of a car from the sensor and will send the signals through a GPIO pin
2626

27-
*ESP32-CAM* will detect authorized vehicles trying to enter and send a signal when one is seen
28-
2927
Processing:
3028

3129
*STM32-NUCLEO-U545RE-Q* will do computations and signal processing and send data to the laptop via USB.
@@ -34,7 +32,9 @@ Output:
3432

3533
*SG90 servomotor* will receive signals to open/close a barrier when a car enters/exits
3634

37-
*LED* will be used to see that the system works properly
35+
*status LEDs* a green and a red led will be set high/low depending on whether the barrier is open or closed
36+
37+
*parking space LEDs* 4 yellow LEDs will be set high/low depending on the number of available parking spots.
3838

3939
## Log
4040

@@ -52,10 +52,20 @@ The problem with the servomotor got fixed after I got some batteries to power it
5252

5353
### Week 4 May - 10 May
5454

55-
After more debugging I finally found the problem with the sensor and fixed it - to be continued
55+
After more debugging I finally found the problem with the sensor and fixed it; I added the second sensor and transitioned from the testing code to the code for the final parking system - spent some time doing research on how to write the code, and more time debugging/fixing errors and unexpected problems
56+
57+
### Week 11 May - 17 May
58+
More software - base form of the project was completed; also rearanged things on the breadboard, as it was a bit messy. Towards the week's end, I started looking into implementing authorization via an ESP-CAM. After some hours, it became clear that I would not be able to finish such a feature in time, due to forgetting an important hardware component neccesary for the implementation, but mostly due to a lack of time as next week I had to focus on other projects/examinations.
59+
60+
### Week 18 May - 24 May
61+
Not much done during the week due to a lack of time because of other projects/examinations; I got some cardboard for the actual parking lot and started adding some extra things - a buzzer that would play tunes for succesful entry/exit, 4 LED's to show parking availability and a button to block the barrier from opening. Rearranged stuff again due to lack of space on the breadboard, also attached servo to make the barrier stationary.
62+
63+
### Week 25 May - Pm fair
64+
Started week by revising code - to be continued
5665

5766
## Hardware
5867

68+
picture will be updated soonly
5969
![Hardware picture](./mahardware.webp)
6070

6171
*STM32-NUCLEO-U545RE-Q* will do computatiosn, signals processing and transmit data to the laptop
@@ -64,12 +74,15 @@ After more debugging I finally found the problem with the sensor and fixed it -
6474

6575
*SG90 servo motor* will open/close the barrier
6676

67-
*ESP32-CAM* will scan incoming vehicles and check for authorization
68-
6977
*LED* will provide visual feedback during testing
7078

79+
*Buzzer* will play different chimes for succesful entry/exit and for failed entry
80+
81+
*Button* will temporarly block the barrier from beeing opened
82+
7183
## Schematics
7284

85+
to be updated
7386
![KiCAD Schematics](./kicadmabun2.svg)
7487

7588
## Bill of Materials
@@ -79,7 +92,6 @@ After more debugging I finally found the problem with the sensor and fixed it -
7992
| STM32-NUCLEO-U545RE-Q | microcontroller | borrowed from politehnica
8093
| [HC-SRO4 ultrasonic sensor x 2](https://www.emag.ro/set-2-senzori-distanta-ultrasonic-digital-3-3-5v-45x20x15mm-multicolor-9344435370736/pd/DCPK2H3BM/?ref=history-shopping_484549223_232871_1) | measuring distance from barrier | 36 Lei
8194
| [SG90 servo motor x 4](https://www.emag.ro/set-servomotor-sg90-unghi-de-lucru-180-grade-4-bucati-3874783591898/pd/DLHDYTYBM/?ref=history-shopping_484549223_157633_1) | moving the barrier | 48 Lei
82-
| [ESP32-CAM](https://www.emag.ro/microcontroler-esp32-cam-cu-ov2640-wi-fi-si-camera-bluetooth-5v-5904162804207/pd/DSTDNLMBM/?ref=history-shopping_485848746_38837_1) | checks vehicles for authorization | 67 Lei
8395
| [Breadboard kit](https://www.emag.ro/kit-electronica-pentru-incepatori-cu-modul-esp8266-si-placa-d1-compatibil-cu-arduino-ideal-pentru-proiecte-diy-be000116/pd/D15YQF3BM/?ref=history-shopping_484549223_206277_1) | Connecting components | 124 Lei
8496
| [female-male wires](https://www.emag.ro/10-x-fire-dupont-mama-tata-20cm-ai306-s459/pd/DZJ66JBBM/?ref=history-shopping_485848746_38837_2) | connecting components | 1 Leu
8597
| [female-female wires](https://www.emag.ro/10-x-fire-dupont-mama-mama-10cm-ai310-s450/pd/DWF66JBBM/?ref=history-shopping_485848746_38837_3) | connectign components | 2 Lei
@@ -104,4 +116,17 @@ After more debugging I finally found the problem with the sensor and fixed it -
104116

105117
## Links
106118

107-
coming soon
119+
[Sensor documentation](https://web.eece.maine.edu/~zhu/book/lab/HC-SR04%20User%20Manual.pdf)
120+
[Sensor tutorial](https://projecthub.arduino.cc/Isaac100/getting-started-with-the-hc-sr04-ultrasonic-sensor-7cabe1)
121+
[Sensor tutorial](https://controllerstech.com/hcsr04-ultrasonic-sensor-and-stm32/)
122+
[Servomotor documentation](http://www.ee.ic.ac.uk/pcheung/teaching/DE1_EE/stores/sg90_datasheet.pdf)
123+
[STM documentation](https://www.st.com/en/evaluation-tools/stm32-nucleo-boards/documentation.html)
124+
[Servomotor tutorial](https://www.electronics-lab.com/project/using-sg90-servo-motor-arduino/)
125+
[Buzzer tutorial](https://controllerstech.com/interface-passive-buzzer-with-stm32/)
126+
[Buzzer help](https://www.omnicalculator.com/other/note-frequency)
127+
[Rust Book](https://docs.rust-embedded.org/book/)
128+
[Embassy Intro](https://embassy.dev/)
129+
[PullUp resistors](https://learn.sparkfun.com/tutorials/pull-up-resistors)
130+
[Pin Map](https://embedded-rust-101.wyliodrin.com/docs/fils_en/lab/02)
131+
[Other](https://embedded-rust-101.wyliodrin.com/docs/fils_en/category/lab)
132+

0 commit comments

Comments
 (0)