This shows you the differences between two versions of the page.
iothings:proiecte:2025sric:racing-game-simulator [2025/05/28 19:46] ionut_razvan.stan [Software] |
iothings:proiecte:2025sric:racing-game-simulator [2025/05/28 20:47] (current) ionut_razvan.stan [System Architecture] |
||
---|---|---|---|
Line 27: | Line 27: | ||
* displays the game and adapts to the inputs given in a concurrently safe way | * displays the game and adapts to the inputs given in a concurrently safe way | ||
+ | |||
+ | The ESP 32 Dev Module is plugged into a breadboard, with the ground pin connected to the power rail, as well as the 5V pin. There are two IR FC-51 Sensors on a smaller breadboard, with the ground pins connected to the ground rail, the VCC pins connected to the 5V rail, and the output of the "left" sensor to the 34th GPIO pin, "right" being pin 35. In addition, two buttons, connected on another breadboard for "forward" and "back". They get ground from the main ground rail, and their other connectors are plugged into pins 27 and 26. | ||
====== Hardware ====== | ====== Hardware ====== | ||
The Hardware is composed of : | The Hardware is composed of : | ||
Line 108: | Line 110: | ||
lastTime = millis(); | lastTime = millis(); | ||
} | } | ||
- | } | + | }'' |
- | '' | + | |
The game frontend uses the standard HTTP library from Golang to listen to HTTP requests at a certain point. It also uses Raylib (through a community made binding module) to render 3D Graphics. | The game frontend uses the standard HTTP library from Golang to listen to HTTP requests at a certain point. It also uses Raylib (through a community made binding module) to render 3D Graphics. | ||
- | |||
'' | '' | ||
- | |||
func handler(w http.ResponseWriter, r *http.Request) { | func handler(w http.ResponseWriter, r *http.Request) { | ||
// fmt.Printf("Received a %s request at %s\n", r.Method, r.URL.Path) // Prints for any request | // fmt.Printf("Received a %s request at %s\n", r.Method, r.URL.Path) // Prints for any request | ||
Line 172: | Line 171: | ||
'' | '' | ||
- | ====== Challenges ====== | ||
- | |||
- | |||
- | ====== References ====== |