Using a Game Controller with Arduino and Processing

preview_player
Показать описание

Today we will be exploring a creative way to control a servo using Processing, and an Xbox360 controller. If you are already pretty game development savvy, you might be interested in our Custom Game Controller tutorial, which uses Unity.

**************************************************************

What’s MakeUseOf? Technology, simplified.

The MakeUseOf blog covers all types of technology, including advice for all the popular operating systems and gadgets on the market, and tips for your browsing, social media and gaming habits.

We’re also keen to help you personally make more of your time using technology, so we include a lot about personal productivity, finance, smart home tech, entertainment and more.

Plus, we’re always running giveaways and finding great deals we can share with you. So keep an eye out for them! Plenty of our readers have won iPhones, tablets and more through our giveaways.

Рекомендации по теме
Комментарии
Автор

Great tutorial. It took me 3 days to get everything right. One I wasn't paying attention and two I had to do some tweaking. Instead I used this motor shield I just bought and a computer game controller. Very amazing and I'm still a novice at all this but my overall computer skills still above average.

dopeboi
Автор

i followed your steps as you went and it all worked well. now next phase i explained below.

sbpcls
Автор

I was able to use a cheap stk 7007f bluetooth controller with processing. I was able to map al de buttons from the controller over the bluetooth dongle via the GCP configurator. Awesome! Thank you for the great video!

markiesheli
Автор

OMG, Thank you sooo much for this video. I had not used Processing before. It's wonderful.

GaryParkin
Автор

thanks : ) I am trying to build a robot to be accepted in to a technology school and this will help me control it!

teltowfamily
Автор

Absolutly fantastic <3 I so much hope you will make "pretty quickly" secound tutorial for controling full robot arm with the controller ; )))) Thank you so much!

name_it
Автор

This is great - Works really well.

Is there no way to get this to work with the arduino as a standalone unit (without the computer)?

VortexMotiveVision
Автор

Thank you for this. This helped me a lot for my university project.

ciprianpasca
Автор

What if i need to use a ps4 controller with and Arduino wich is not attached to a PC.

ARandomHumanBein
Автор

If I intend to connect the Arduino to the laptop using a Bluetooth module HC-05, what changes do I have to make in the Processing code?

asifmuktadir
Автор

I followed exactly how you do but why i go this "NullPointerException" on line thumb = map(cont.getSlider("servoPos").getValue(), -1, 1, 0, 180);. can you help me with this

zimbow
Автор

Congrats for your excellent presentation. 🖒

asgorreidaa
Автор

Great video, really helpful. How would you go about looping the servos so when the user presses and holds forward on the joystick, the servos continuously move back and forth?

joxl
Автор

Nice video! How can i use a gamepad that connects remotely to the arduino robot without having to plug it into the pc? Maybe with a usb female module? Will it work?

echo_smart
Автор

Is there a way to record the input from the controller, save it, and use it to repeat the same motions? For example, I control the servo with the controller, and then later I can make it replicate those same movements.

rafeneathery
Автор

Is possible to control the servo directly with the gamepad by connecting the reciever with arduino

nithishlogaraj
Автор

Really nice tutorial, simple and fast.

Nimer
Автор

now how to run this code natively using usbshield on top essentially bypassing the computer and controlling servos with assigned joystick attached?

sbpcls
Автор

Question: Ca i do this if i use a wireless controller and a bluetooth module on the board?

ciprianpasca
Автор

How can we perform the same thing but with an ESP32 instead of Arduino?

pranavdhawan