Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automaticaddison robot #773

Open
jrrobb85 opened this issue May 23, 2021 · 4 comments
Open

automaticaddison robot #773

jrrobb85 opened this issue May 23, 2021 · 4 comments

Comments

@jrrobb85
Copy link

jrrobb85 commented May 23, 2021

I am trying to control my automaticaddison robot with Wiimote controller. I have followed instructions to install cwiid library but when I operate the code to remote control I get the following error message.

pi@raspberrypi:~/robot $ python3 remote_control.py
Traceback (most recent call last):
  File "remote_control.py", line 2, in <module>
    import cwiid
ModuleNotFoundError: No module named 'cwiid'

When I delete the "import cwiid" i then get the error message as follows.

pi@raspberrypi:~/robot $ python3 remote_control.py
Press and hold the 1+2 buttons on your Wiimote simultaneously
Traceback (most recent call last):
  File "remote_control.py", line 5, in <module>
    wii = cwiid.Wiimote()
NameError: name 'cwiid' is not defined

The Wiimote controller is paired with the Raspberry Pi.

Can you help an 88 year old who is trying to keep the little grey cells working?

@dlech
Copy link
Member

dlech commented May 23, 2021

I would try to pair the Wimote like this: https://wiki.archlinux.org/title/XWiimote#Connect_the_Wii_Remote

Then just use the generic Linux input system instead of cwiid.

@jrrobb85
Copy link
Author

jrrobb85 commented May 24, 2021 via email

@GrahamSH-EXB
Copy link

Since cwiid is a pip library, you should ssh into the robot (using vscode) and run pip install cwiid. Then try running your program

@jrrobb85
Copy link
Author

jrrobb85 commented Jul 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants