Laser Parkour repository
This is the Laser Parkour repository, for the laser parkour project in cooperation between the Hochschule Heilbronn and the Dillmann-Gymnasium Stuttgart.
How to use the Laser-Parkour sketch:
-
for the first use of a esp32 you have to install the necessary Board Manager by Pressing Strg + , on your keyboard and then adding https://dl.espressif.com/dl/package_esp32_index.json to the "Additional Boards Manager URLs" field.
For this action and for the first time you flash the esp23 a Internet-connection is necessary. -
build the circuit displayed in the file "wiring diagram.pdf"
-
if you don't know the correct values for your used parts, find them out by using the "test_sketch":
-
open the "test_sketch.ino" sketch
-
Set the correct settings under "Tools" for the Arduino:
Settings: Arduino Uno: Board: "Arduino Uno" Port: your Port -
upload the sketch to your Arduino
!!!IMPORTANT: to upload the sketch disconnect any wires from the TX and RX pins!!! -
open the Serial plotter under "Tools/Serial Plotter" or by pressing "strg + shift + l"
-
now interrupt the light shining on the photo-diodes, and look for a trigger value which is good for all diodes.
-
-
open the "sketch.ino" sketch
-
read the definitions in the sketch careful, and adjust them for your needs
-
upload the adjusted sketch on your Arduino
Settings: Arduino Uno: Board: "Arduino Uno" Port: your Port !!!IMPORTANT: to upload the sketch disconnect any wires from the TX and RX pins!!!
-
open the "sketch_esp.ino" sketch
-
if your want, change the ssid and password
-
Set the correct settings under "Tools" for the ESP32:
Settings: ESP32: Board: "ESP32 Dev Module" Upload Speed: "921600" CPU Frequency: "240MHz (WIFI/BT)" Flash Frequency: "80MHz" Flash Mode: "QIO" Flash Size: "4MB (32Mb)" Partition Scheme: "Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)" Core Debug Level: "None" PSRAM: "Disabled" Port: your Port -
upload the sketch to your esp32 !!!IMPORTANT: to upload the sketch disconnect any wires from the TX and RX pins!!!
-
reconnect the RX and TX pins correctly
-
!NEW: upload the files from the folder "web-page" to the SD-Card, and put in in the ESP32
-
restart the esp32 and Arduino by disconnecting both from the power-supply/USB-Port and then reconnecting them
-
connect to the Hotspot of the esp32
-
open the webpage http:https://192.168.1.1 for the name-input-page or the webpage !NEW: http:https://192.168.1.1/table.htm for only the Top-10 table
-
use the Laser-Parkour...
- loads files from SD-Card
- photo-diodes are connected in series
- top-list in web-interface
- name input via web-interface
- penalty time in case of laser interruption
- start and stop button
- loads files from SD-Card
- Interaction with the Arduino via web-interface hosted on a esp32