09 March 2025

Team 14 Progress Review

 The controller our team has decided on is the bike handlebars for ExciteBike. This design uses 3 potentiometers, one in each handlebar to act as the slow and fast speed, and one potentiometer in the center of the weighted base to simulate "turning" or changing lanes. These potentiometers simulate similar actions a motorbike operator takes while driving. There is also an Arduino Circuit Playground below the turning potentiometer, with the Y-axis accelerometer being utilized for the "leaning" mechanic in Excitebike.




Conceptually, our controller relates to the game ExciteBike by stylistically resembling the handlebars of a dirtbike, the vehicle the player controls while playing the game. The front of the controller also has a number plate and a front fender to aesthetically relate to the idea that the player is trying to control a motorbike.






//[include libraries]

//initialize variables for all potentiometers and accelerometer

//for slow acceleration
//float slowPo

//for fast acceleration
//float fastPo

//for switching lanes
//float turnPo

//for wheelies and air balance
//float lean



void setup() {
  //Setup pins
  //lean = accelerometer 
  //slowPo = pinx
  //fastPo = piny
  //turnPo = pinz

  //map inputs
  //map turnPo inputs to (-1,1)
  //map slowPo, fastPo, and lean inputs to (0,1)
}

void loop() {
  //disclaimer numbers are subject to change with testing

  //check if the slow throttle is throttled a certain amount
  //if slowPo >= .35
    //slow accel button press

  //check if the fast throttle is throttled a certain amount
  //if fastPo >= .35
    //fast accel button press

  //checks if handlebar is turned to the left a certain amount
  //if turnPo <= -.5
    //turn left button press

  //checks if handlebar is turned to the right a certain amount
  //if turnPo >= .5
    //turn right button press

  //checks if controller is leaned back a certain amount
  //if lean <= .25
    //lean back button press

  //checks if controller is leaned forward a certain amount
  // if lean >= .75
    //lean forward button press
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.