repstrap-extruder (2009/11/12)
index
/home/sam/Public/repstrap-extruder.py

RepStrap Extruder EMC2 Userspace Driver
 
INTRODUCTION
 
This is an user-space driver for EMC2 RepStrap setup, specifically handling the communication 
between the EMC2 and the RepStrap extruder controller through serial port.
 
It is designed to work with the AVR firmware comes with this software, but not the official RepRap firmware.
 
The program needs proper configuration to be useful, including HAL setup and some hardware specific parameters.
Please read the README.html for setup and usage.
 
DESCRIPTION
 
The user-space driver does the followings:
* Maintain communication channel with the extruder hardware
* Setup HAL pins for communication with EMC2
* Reading status from the extruder hardware periodically, report to HAL pins
* Monitor spindle and other HAL pins, and control the extruder accordingly
 
These are achieved through a polling loop.
 
For a complete system design diagram, please read the README.html.

 
Modules
       
hal
math
os
serial
sys
time

 
Classes
       
Extruder

 
class Extruder
     Methods defined here:
__del__(self)
__init__(self, hal_component)
execute(self)
Start the main process loop.
This will return only when error (Communication, Exception, etc) is encountered.

 
Functions
       
main()
Program entry point. Setting up HAL pins and construct the Extruder instance.

 
Data
        COMM_BAUDRATE = 38400
COMM_PORT = '/dev/ttyUSB0'
__author__ = 'Saw Wong (sam@hellosam.net)'
__date__ = '2009/11/12'
__license__ = 'GPL 3.0'

 
Author
        Saw Wong (sam@hellosam.net)