Mattroberts' Firmware

From RepRap
Revision as of 15:48, 25 August 2011 by Mattroberts (talk | contribs) (Add a brief guide to the firmware)
Jump to: navigation, search
Crystal Clear action run.png
Mattroberts' Firmware

Release status: Beta

No image available.png
Description
Firmware
License
Author
Contributors
Based-on
Categories
CAD Models
External Link


Introduction

This code describes my firmware. My intention is simply to document (with working code) the various tricks that I think I've done first (or best).

Download

The license for the firmware is CC-by-3.0. And it can be downloaded from this link...

In order to compile it, you'll also need to install two supporting libraries (MIT licenced)...

What File Does What?

  • config.h contains the description of the printer (in terms of steps/mm, maximum feedrate, baud rate to use, etc.)
  • parse.c contains the gcode parser
  • cmd.c contains the command interpretor
  • dda.c contains the line drawing algorithm
  • divide.c, log.c, dist.c contain supporting functions for dda.c
  • hw/ contains the real implementation of all the various things that the hardware does. All the AVR specific code is here.
  • hw/pins.h contains a description of the motherboard (which pin drives what thing)
  • sim.c contains a simple implementation of all the hardware functions. This allows one to test a firmware before uploading to a printer.
  • host.c contains a simple terminal program that can send gcode files to the printer.

Pressure Management

The unique feature of this firmware is the pressure management code. This code is contained in dda.c.