Go Down

Topic: Arduino Joystick Coding (Read 1 time) previous topic - next topic

stevekap25

For my senior design project, I need to modify a go-kart for our client.  Our client has cerebral palsy and cannot drive a normal go-kart; therefore we need to make this go-kart joystick accessible.  We are in the process of connecting an 8-way joystick  to the Arduino Due  in hopes of the following:
- Movement in positive y will accelerate
- Movement in negative y will brake
- Movement in positive x/y will turn the wheels right/left

3 pins of the Arduino are then outputted to Motor Driver which is connected to 3 actuators to power the acceleration, braking, and steering.  Our goal is when he moves the joystick in any direction, the Arduino will read the input and supply a voltage to the driver which will then power the corresponding actuator.  My group for some reason cannot get past the coding though.  We are novices with the Arduino coding as this is our first time working with this microprocessor.  We normally would not ask a question this advanced, but since this is going to a good cause we are hopeful that you might be able to help. If not, is there anyone you would recommend talking with.

stevekap25

For my senior design project, I need to modify a go-kart for our client.  Our client has cerebral palsy and cannot drive a normal go-kart; therefore we need to make this go-kart joystick accessible.  We are in the process of connecting an 8-way joystick  to the Arduino Due  in hopes of the following:
- Movement in positive y will accelerate
- Movement in negative y will brake
- Movement in positive x/y will turn the wheels right/left

3 pins of the Arduino are then outputted to Motor Driver which is connected to 3 actuators to power the acceleration, braking, and steering.  Our goal is when he moves the joystick in any direction, the Arduino will read the input and supply a voltage to the driver which will then power the corresponding actuator.  My group for some reason cannot get past the coding though.  We are novices with the Arduino coding as this is our first time working with this microprocessor.  We normally would not ask a question this advanced, but since this is going to a good cause we are hopeful that you might be able to help. If not, is there anyone you would recommend talking with.

zoomkat

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

Nick Gammon

If that doesn't help, post what code you have. Hopefully you are reading the joystick X, Y and Z values.

Nick Gammon

It would also help to post a link to the joystick in question, and the motors. We can't read minds you know.

Read this before posting a programming question

Go Up