This is an update on my Anki Vector and how I control it with a PlayStation 4 controller.
If you want to do something similar, you want to start here: • Connect PS4 Controller to Raspberry P...
Once you have the controller connected and able to receive its events in Python, came back to this video as it will make more sense.
Code is available on GitHub: https://github.com/ArturSpirin/MyVector
SOFTWARE:
pyPS4Controller module is available on PyPi and GitHub
Pypi: https://pypi.org/project/pyPS4Control...
GitHub: https://github.com/ArturSpirin/pyPS4C...
HARDWARE:
PS4 DualShock 4 Controller: https://ebay.us/PnXchi
Anki Vector Robot: https://ebay.us/67PAWQ
I run the code for Vector on a Raspberry Pi because it has Bluetooth and is low powered so I can leave the code running for as long as I want. However, you can use another Linux machine which has Bluetooth.
For Raspberry Pi you can use any one of the following:
Raspberry Pi 3 b: https://ebay.us/dfe2Nu
Raspberry Pi 3 b+: https://ebay.us/m7bc5q
Raspberry Pi 4 b: https://ebay.us/GLE3QE
Смотрите видео Anki Vector motor controls with PS4 Controller онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Artur Spirin 24 Февраль 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,560 раз и оно понравилось 41 посетителям.