Coder Social home page Coder Social logo

cubotino_pocket's Introduction

CUBOTino Pocket

This repo contains the relevant files for ....

How to make CUBOTino Pocket: A small, 3D printed, optimal solver for 2x2x2 Rubik's cube title image

Further robot info at: https://www.instructables.com/CUBOTino-Pocket-Optimal-Solver-Robot-for-Rubiks-Cu/

An impression of the robot: https://youtu.be/wB4MwINGon0

This git repo simplifies the download of the individual files and automates as much a possible the deployment to the Raspberry Pi

This installation has proved to work on different Raspberry Pi models; Please report in case you experience issues.

How to use it:

  1. Flash your SD card according to the procedure in the document here , Chapter 7, Step1 to Step3
  2. Put the sd card in the pi and power it. You can monitor the boot process if you connect an hdmi monitor to it but it is not essential.
  3. Try to connect to the Raspberry Pi via SSH. On Windows you can use Putty. On linux and mac you can type directly:
  1. If you can't reach the pi like this, you will have to scan your network to find the IP to use
  2. After you are connected via ssh, type the following commands in the shell:
git clone https://github.com/AndreaFavero71/cubotino_pocket.git
cd cubotino_pocket/src
chmod +x install/setup.sh
sudo ./install/setup.sh
  1. Make sure the script runs without error until the end. It should ask you to reboot. Type 'y' and hit enter.
  2. If the question "Reboot (y/n)" does't appear, them the installation is facing issues; Try to fix the errors, and run the script again.
  3. If the question "Reboot (y/n) does appear, You should get the proper environment after the reboot.

Build the robot:

Follow the instructions (saved at /doc folder)

Tuning the servos position via GUI (via VNC):

cd ~/cubotino_pocket/src
source .virtualenvs/bin/activate
python Cubotino_P_GUI.py

title image

Executing manually

From a shell, you can run the main python script like this:

cd ~/cubotino_pocket/src
source .virtualenvs/bin/activate
python Cubotino_P.py

of course, you can replace Cubotino_P.py by any other python scripts as mentioned in the documentation.

Enabling autostart

When everything is tuned and you want to autostart the software automatically on reboot, just type :

    sudo crontab -e

select the nano editor '1' then go to the last line of the window and remove the first '#' character of the line . This uncomment the startup script that launches cubotino on startup. You can reboot after to test it.

VNC connection

You can always connect with ssh. If you prefere VNC you can download the RealVNC client (this is the one I use). You just have that start it like this:

vncviewer cubotino.local

It will ask for the credential. Use 'pi' and the same password you use for ssh. You should have a desktop version in this way

Check out the "How_to_make ... .pdf" document (at /doc folder) for further info.

Please leave a feedback if you build it

I hope many of you will decide to build your own CUBOTino, and that you'll enjoy it as much much as I did.
I hope you will also post an "I Made it", on the Instructables site of this project (link above);
I can ensure you, seeing a new born CUBOTino makes me feel very well ๐Ÿ™‚

cubotino_pocket's People

Contributors

andreafavero71 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.