Xbox Controller + Pi 4 + CNC = It Works

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 มิ.ย. 2024
  • It took a while, but finally got the XBox controller to work with the Raspberry Pi 4 both via USB & Bluetooth. I am using a Pi 4 & gSender for Pi Version 0.7.4. I do not know if this will work on earlier Pi's if you try it and it does let us know.
    This not just for cnc, if you are running raspberry pi os you can use this to set up your Xbox controller, and install qjoypad. This may not work for all games.
    PLEASE NOTE: That this is for Xbox controllers with Bluetooth, this should Not work with wifi. Link for the XBOX & PI i used is at the bottom of the Description.
    Music by Hawk vs Dove:
    hawkvsdove.bandcamp.com/music
    YOU CAN GET THE NEW MK2 LONG MILL HERE (These are affiliate links that help support the channel and add nothing to the overall cost):
    sienci.com/product/longmill-m...
    GSENDER:
    sienci.com/gsender/?ref=dehammer
    1:43 -
    sudo apt-get update
    sudo apt-get upgrade
    2:49 -
    sudo apt install xboxdrv
    3:31 -
    lsusb
    3:54 -
    sudo apt-get install qjoypad
    4:30 -
    echo 'options bluetooth disable_ertm=Y' | sudo tee -a /etc/modprobe.d/bluetooth.conf
    REBOOT AFTER ABOVE IS DONE
    5:30 -
    sudo bluetoothctl
    5:52 -
    agent on
    default-agent
    scan on
    6:51 -
    connect MAC_ADDRESS
    trust MAC_ADDRESS
    (REPLACE MAC_ADDRESS WITH THE MAC_ADDRESS YOU GET FROM THE SCAN)
    7:17 -
    sudo apt-get install joystick
    7:33 -
    sudo jstest /dev/input/js0
    8:16 -
    PUTTING IT ALL TOGETHER AND MAPPING KEYS IN QJOYPAD & GSENDER
    The Below Links are affiliate links and I may make a commission off of any items sold. This helps fund the channel and to keep making videos.
    Raspberry Pi:
    amzn.to/2Za8eOi
    32 Gig Micro SD Card:
    amzn.to/3jmzVKU
    Xbox Controller:
    amzn.to/3leWbqN
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 6

  • @dronesvisionsaeriennes
    @dronesvisionsaeriennes ปีที่แล้ว +1

    Cool, i love your video, i looked for how to jogg my axes, i get a xbox controller in my drower...
    phil

  • @TheTimeProphet
    @TheTimeProphet 10 หลายเดือนก่อน

    Unfortunately this line sudo apt install xboxdrv is not finding anything at the repository.

    • @D.E.Hammer
      @D.E.Hammer  10 หลายเดือนก่อน

      What Pi are you using and which OS? If you installed the 64 bit version of Raspberry Pi OS, that could cause problems with xboxdrv. You can check with uname -m

    • @TheTimeProphet
      @TheTimeProphet 10 หลายเดือนก่อน

      @@D.E.Hammer I am using Raspbien 64bit. Turns out I don't need xboxdrv at all. I just had to connect my controller to a pc and update the firmware on my controller. Now it connects perfectly to the pi

    • @TheTimeProphet
      @TheTimeProphet 10 หลายเดือนก่อน

      @@D.E.Hammer It's ok now. fully working I didn't need xboxdvr at all.

    • @D.E.Hammer
      @D.E.Hammer  10 หลายเดือนก่อน

      Cool, I had some others reach out to me as well with similar issue.