were you ableto install 'python-dev' , because i cant and i says that the packages replace it: python-dav-is-python3. So do i need to replace 'python-dev' with 'python-dav-is-python3' or something else?
Guys heres some notes to make: 1. It MIGHT work after unplugging hdmi cable, highly unlikely to because hdmi cable is a form of dev/input/ event so basically once you unplug it, it wilk work, but if you are running a robot and you run the script on startup, the events will be different and thus it wont work 2. Raspberry pi doesnt have an on/off button and needs an sd card, just reminder, unless its raspi 5, but that one can only shut down and switch on and not turn off fully 3. A lot of the commands are outdated or need sudo, if commands dont work use sudo in front, if deprecated follow the new command, and python2.7 should be swapped to python3 more than likely since this video is outdated 4. I forgot to mention, any mouses or keyboards or cables plugged in raspberry pi count as events so that can mess with your script, i dont know work arounds beside using the command to see the events and trial and error 5. GREAT VIDEO 🙏 6. (Optional) Try to use a headless setup if possible
Great video. So straight forward. I have only just started to work on my project (Meccanum drive robot) I'll be using a xbox 360 controller, my 8bitdo NESPro30 does not want to connect no matter what I do. You mentioned button holding. Are you planning to make a second video about that or possible the other input types? Ideally I want to use the joysticks for navigation with my project.
Thank you, really helpful video. I want to set up 2 SNES type controllers for 2 player pong game. How will this work for the 2nd controller, will it get its own unique values or will I need to reference the event() before the controller value?
I'm a noob but I figured I'd give my thoughts. if you find the inputs for your controller you should be able to have your py script take those inputs from the controller to an if statement that would utilize the GPIO pins on the pi to make robot go brrr
awesome tutorial! thanks! I used this to get an xbox one s controller reading into python on an RPI3 perfectly. Now Im just wondering if there is a way to handle the controller going to sleep (event 40) from within that for loop...as is, this causes the program to crash... any suggestions? thanks!
hey Sam, I'm following your tutorial with a Raspberry pi Zero W, I want to connect a generic PS3 controller but it turns out that when I hit the Bluetooth scan my raspberry disconnects me from ssh session
I was following along fine until I started using python. I got a no module named evdev import error. Please Help! Also I just realized I have python 3.7 not 2. How do i get python 2 working?
I made it work for python 3 by installing it with pip3 (pip3 install evdev) then, I also got the "no module" error, which I solved by making python's path variable point towards it like this: import sys sys.path.append('/home/pi/.local/lib/python3.7/site-packages/') if your directory is something else you'd change it inside the brackets accordingly.