Like the subject says, I am trying to control the extension and retraction of a linear actuator with one button on my PS3 controller. If no (R2) button is pushed then the actuator will be or go into retraction, if I press and hold the R2 button it will start to extend, let go, and it will retract, so on and so forth.
Follow the example code that comes with the library or
run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.
Thanks for the response, I've been playing with a lot of sample code, however, I can not get the result I am looking for. It seems simple, do not press anything and it will retract till it hits it limit, press the button and it extends, till you press the button again and it starts to retract.
Post your sketch, well formated, with well-tempered comments and in so called code tags "< code >" and a detailed circuit diagram to see how we can help.
Thank you Paul! This is good stuff, quick question though, since I am using PS3 controller with bluetooth will I need all the resistors and such, I don't see understand where that would be necessary.
Hey Paul, I am stuck! Grab a PS3 controller, a micro controller, 12v battery and a motor drive, preferably anL298N and show/ tell me how to do what it is what i want to do. thank you