Process
I finally connected Arduino to my game and before setting up the jumping board, I tried checking whether the force resistor works and if so, how it works. I searched on the internet how to connect the force resistor sensor to Arduino and get the data.
Schematic
I followed this schematic to hook up the resistor:
Arduino code:
int fsrPin = 0; // the FSR and 10K pulldown are connected to a0 int fsrReading; // the analog reading from the FSR resistor divider void setup(void) { Serial.begin(9600); } void loop(void) { fsrReading = analogRead(fsrPin); Serial.print("Analog reading = "); Serial.print(fsrReading); }
Next steps:
- Work on the jumpability of the game
- Set up the jumping area->work on the sensitivity of the sensors
- Fix the bugs with lives