Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 46: Line 48:
 The ESP32 code uses an HTTP library to send post requests gotten through platformio: The ESP32 code uses an HTTP library to send post requests gotten through platformio:
  
 +''​
  
 #define DISTANCE_THRESHHOLD 3000 #define DISTANCE_THRESHHOLD 3000
Line 108: Line 110:
     lastTime = millis();     lastTime = millis();
   }   }
-} +}''​
  
  
Line 116: Line 117:
  
  
 +''​
 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 168: Line 169:
 // other code // other code
 } }
 +''​
  
- 
- 
- 
- 
-====== Challenges ====== 
- 
- 
-====== References ====== 
iothings/proiecte/2025sric/racing-game-simulator.1748450806.txt.gz · Last modified: 2025/05/28 19:46 by ionut_razvan.stan
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0