GithubHelp home page GithubHelp logo

marcopashkov / rasm Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 248 KB

raspberry pi -> arduino -> stepper motors (library to controll the hardware stack)

Arduino 32.56% Python 54.13% JavaScript 13.31%

rasm's Introduction

RASM

Raspberry pi -> Arduino -> Stepper Motors (library to controll the hardware stack)

Goal

The goal of this repository is it to create a simple plotter - along the lines of Der Kritzler.

status (march 29th 2013)

I just set up the github repository, so for now I will more or less randomly push code into the repository and only over time create a documentation etc. So if you have questions just write me MarcoPashkov AT gmail DOT com.

Hardware

Communication

The raspberry pi talks via USB to the arduino on a serial connection. At this point all that the arduino understands are simple messages explicetly for the stepper motors. Since I wanted to get a working prototype fast I wrote as little code as possible to get everything working.

  • message format: motor,speed,steps,direction,step-style;
  • e.g.: 1,100,50,1,1;
  • motor 1 moves 50 steps with speed 100 "forward" in "single"-style.

values:

  • motor: 1,2
  • speed: 1 - 250 (for me - above that my arduino has power-issues - might have to put a direct power supply in for the motor shield)
  • steps: 1 - โˆž
  • direction: 1(forward), 2(backward)
  • step-style: 1 (single), 2 (double), 3 (interleave), 4 (microsteps)

top layer

Using pyserial, flask and processing.js I want to build a small webserver that accepts vertor images and then directs the stepper motors to draw the image.

Software Requirements

  • flask
  • pyserial
  • gunicorn

How to start the server(of course with the correct raspberry pi IP-address/port):

cd ~/rasm/raspberrypi/
gunicorn server:app --bind 192.168.1.8:8000 --workers 2

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.