Repository navigation
automaticaddison robot #773
Copy link
Copy link
Open
Description
Activity
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.- Hi David, Many thanks for responding to my cry for help. Unfortunately your solution didn’t work. My Wiimote is paired with the Rasspberry Pi, listed as an RVL-CNT-01. I am following automaticaddison’s article on building a robot. The code is as follows for using the Wiimote control. import gpiozero import cwiid robot = gpiozero.Robot(left=(17,18), right=(27,22)) print("Press and hold the 1+2 buttons on your Wiimote simultaneously") wii = cwiid.Wiimote() print("Connection established") wii.rpt_mode = cwiid.RPT_BTN while True: buttons = wii.state["buttons"] if (buttons & cwiid.BTN_LEFT): robot.left() if (buttons & cwiid.BTN_RIGHT): robot.right() if (buttons & cwiid.BTN_UP): robot.forward() if (buttons & cwiid.BTN_DOWN): robot.backward() if (buttons & cwiid.BTN_B): robot.stop() ***@***.***:~/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' ***@***.***:~/robot $ Connection will not be established. I have gone through the process for installing the cwiid library as follows. sudo apt-get install bison flex automake libbluetooth-dev aclocal autoconf ./configure make Any other suggestions? Regards, Jim Robb. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 + From: David ***@***.***> Sent: 23 May 2021 20:50 To: ***@***.***> Cc: ***@***.***>; ***@***.***> Subject: Re: [ev3dev/ev3dev-lang-python] automaticaddison robot (#773) 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. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#773 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKWQZT2EYC44YBQ3UGZNIO3TPFMCBANCNFSM45LQODKQ>.
Since
cwiidis a pip library, you should ssh into the robot (using vscode) and runpip install cwiid. Then try running your program- Hi Graham, Many thanks for your effort to help solve this problem. Unfortunately this also did not work. I attach a snip of the result for your info. Regards, ***@***.***D7727D.47900BE0] Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: ***@***.***> Sent: 05 July 2021 20:39 To: ***@***.***> Cc: ***@***.***>; ***@***.***> Subject: Re: [ev3dev/ev3dev-lang-python] automaticaddison robot (#773) Since cwiid is a pip library, you should ssh into the robot (using vscode) and run pip install cwiid. Then try running your program — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub<#773 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKWQZT2EPSDDXANIXWQ7M5LTWIC7ZANCNFSM45LQODKQ>.
Metadata
Metadata
Assignees
Labels
No labels
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.
When I delete the "import cwiid" i then get the error message as follows.
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?