Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

how to you get cwiid #5

Open
will-chantrey opened this issue May 28, 2018 · 13 comments
Open

how to you get cwiid #5

will-chantrey opened this issue May 28, 2018 · 13 comments
Labels

Comments

@will-chantrey
Copy link

hi i am just asking how do you exactly install the cwiid module and how do you even get your python files transferred to your robot and also how do you get the ev3py module installed. does the wii remote connect up to the ev3 robot via bluetooth

please reply

@G33kDude
Copy link
Owner

Hello!

You can install cwiid from the debian package repositories using the command sudo apt-get install python-cwiid.

To get files onto my robot I connect it to WiFi then log in from my computer using SSH. Then I use commands like wget and git clone to download my files from the internet. Another way I get files onto the robot is by opening a text editor from ssh (like nano) and pasting the file contents in. Finally, I copy files over directly using an SFTP client like WinSCP.

One more note is that this code repository is no longer maintained and has been replaced by the official ev3dev-lang-python repository. None of the code here still works with modern releases of ev3dev.

@will-chantrey
Copy link
Author

will-chantrey commented Jun 23, 2018 via email

@G33kDude
Copy link
Owner

You can start Python 3 by using the python3 command. Either python3 on its own to start an interactive session where you can type code and run it in real time, or python3 filename.py to run a file.

Here is one guide for how to use the command line that you connect to using PuTTY and SSH:
https://www.youtube.com/watch?v=oxuRxtrO2Ag

@G33kDude
Copy link
Owner

Also yes, the wiimote does connect to the bot over Bluetooth. To connect it you would need to make sure that the bot's Bluetooth is enabled (which can be done from the graphical interface on the brick).

@will-chantrey
Copy link
Author

will-chantrey commented Jun 24, 2018 via email

@will-chantrey
Copy link
Author

will-chantrey commented Jun 24, 2018 via email

@will-chantrey
Copy link
Author

will-chantrey commented Jun 24, 2018 via email

@will-chantrey
Copy link
Author

will-chantrey commented Jun 24, 2018 via email

@G33kDude
Copy link
Owner

You installed debian/ev3dev to a MicroSD card according to the instructions here, right? Make sure after installing that your ev3 has access to the internet and that you update the package lists before you try to install anything with the sudo apt-get update command.

Once you have python-cwiid installed you will need to have a python script that will work with new releases of ev3dev. The one in this repository WILL NOT WORK. I usually have to rewrite my code from close to scratch whenever I bring the ev3 out for demos once a year. This is the newest version of the script I could find on my hard drive:

https://gist.github.com/G33kDude/b75e659a89c05619021cc30e96baf7df

Note that this version will probably ALSO NOT WORK out of the box with the most recent version of ev3dev. My ev3 is over 1300 miles away from me and because of that I cannot help to make the script work if it does not.

@will-chantrey
Copy link
Author

will-chantrey commented Jun 30, 2018 via email

@will-chantrey
Copy link
Author

will-chantrey commented Jul 1, 2018 via email

@will-chantrey
Copy link
Author

will-chantrey commented Jul 1, 2018 via email

@will-chantrey
Copy link
Author

will-chantrey commented Aug 12, 2018 via email

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

No branches or pull requests

2 participants