GithubHelp home page GithubHelp logo

machineagency / pygestalt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nadya/pygestalt

0.0 2.0 0.0 13.04 MB

A control system framework for personal fabrication.

Python 78.82% C++ 13.72% C 2.62% HTML 4.84%

pygestalt's Introduction

gestalt

Python library for controling Gestalt Nodes with 086-005 firmware. A control system framework for personal fabrication.

Introduction

Pygestalt is a Python library with examples that enables the use of high-level language (Python) to control low-level things. So far G-code was used to describe what a CNC machine should do, which motor to spin, set the target temperature of an extruder etc. Pygestalt enables you to create your own language for the machine you are building.

Usage

First make sure that your Gestalt Node is there with the 086-005 firmware installed.

Second make sure that you have Python installed. You can check that by opening Terminal and using the following command.

python --version

It should output a line similar to the one below.

Python 2.7.12

If that is not the case, consult the Python Beginners Guide or ask your favorite search engine!

Third make sure that you have the Python package manager or pip installed. Follow the pip installation guide or, again, ask your favorite search engine.

Fourth install Python serial library or pyserial. Open Terminal and use the command below.

pip install pyserial

Fifth (finally )download pygestalt. To do that open Terminal, navigate to your secret machine project directory and use the following command (oh yes, you should have Git). You can also click on the green button above and download a .zip archive.

git clone https://github.com/nadya/pygestalt.git

Then you have to change directory to pygestalt by using the cd command.

cd pygestalt

Make sure that you are there by using the pwd (Print Working Directory) command. It should output a path with /pygestalt at the end.

Sixth install pygestalt. Run the following command to do that.

sudo python setup.py install

You can check if it is there with pip.

pip show pyserial

It should print some basic information about the pyserial library and its authors.

Seventh try it out! The best way is to pick the examples/machines/htmaa example, modify the single_node.py and run it. Below is the line you should edit, look for the follwing part.

portName = '/dev/ttyUSB0'

Use ls /dev/cu* (on a Mac OS system) to find out your serial port. It should look similar to the one below.

/dev/cu.usbserial-FTXW4I60

Replace /dev/ttyUSB0 with the one you got, save and run the single_node.py program.

python single_node.py

It will ask you to identify the X axis by pressing a button on the Gestalt Node board. If your motor is connected, it should move there and back.

Congratulations if you managed to get it working. For any comments feel free to add an issue or you see things missing, submit a pull request. Many people will be and remain thankful.

References

pygestalt's People

Contributors

imoyer avatar nadya avatar mhirsch avatar kr15h avatar

Watchers

Sonya Vasquez avatar James Cloos avatar

pygestalt's Issues

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.