Skip to content

Firmware for 3D Printer Control, runs on stock Debian (armhf), 'Gender-Neutral', 'Hardware-Neutral'

License

Notifications You must be signed in to change notification settings

Alex2114/Deb-3df

Repository files navigation

Deb-3df is a generic firmware for high power Debian powered armhf microcomputers with Python. that accepts G-codes and turns them into coordinates on your 3D-printer. It's similar to Marlin and Teacup, originally tailor made for the Replicape as Redeem (http://wiki.thing-printer.com/index.php?title=Redeem). It aims to be 'gender neutral' and 'hardware independent', a fork of Redeem to run on the Chip Pro (getchip.com) and SinapTec hardware, an etchable GPL 3D printer control board, and all round Frappe-maker, (http://reprap.org/wiki/SinapTec)! It's written in Python.

Preferred software features:

  • Accelleration with corner speed prediction.
  • Printer settings loaded from file
  • Controllable via OctoPrint, ethernet, USB, Toggle on LCD screen.

Installation:

Complete Debian based eMMC flasher image for Chip Pro on SinapTec board (WIP)

// Most users should probably not use the [Kamikaze CNC // image](http://wiki.thing-printer.com/index.php? // title=Kamikaze), it is a complete BeagleBone eMMC flasher image that comes with Redeem for Beaglebone.

// This indicates code or process specific to the BeagleBone and Replicape hardware, it is likely obsolete on other // hardware

Debian package for Chip Pro on SinapTec board (WIP)

Installation from source for Chip Pro on SinapTec board (WIP), see below

Requirements

// These instructions assumes you have a kernel with a // Beaglebone cape manager Linux kernel >4

Installation

#You can clone this repository directly on your controller:

ssh [email protected]
cd /usr/src  
git clone https://github.com/Alex2114/Deb-3df.git   

For Debian, install swig, python-smbus:
apt-get install swig python-smbus

Compile the native path planner module:

cd /usr/src/redeem/
python setup.py install  
mkdir /etc/redeem
cp configs/* /etc/redeem
cp data/* /etc/redeemlicape board

 - Manual installation of redeem from feed
 - Disable logging to file
    nano /etc/redeem/local.cfg
- Install socat
- Install octoprint
- Install python-octoprint-redeem


### Device tree overlay
### Get and compile the device tree overlay.  
### For Kernel 4.1, see the instructions for the new 
### [Beaglebone cape overlay repository]
### (https://github.com/beagleboard/bb.org-overlays)  
 
### Disable HDMI with sound (will load HDMI without sound):  

### For post uboot v2014.07/v2014.10/v2015.01 images
### `nano /boot/uEnv.txt`  

### Change this line:  
### `#cape_disable=capemgr.disable_partno=BB-BONELT-HDMI`
### to
### `cape_disable=capemgr.disable_partno=BB-BONELT-HDMI`
### 
### Reboot

### After a reboot, you should see a the cape firmware load:  
### `dmesg | grep -i replic`  

Enable the redeem service:  


## Change startup script location

If you have the Debian package based version installed along side, 
you have to change the startup script from /usr/bin to /usr/local/bin:

nano /lib/systemd/system/redeem.service systemctl daemon-reload systemctl restart redeem


If you do not have the file "/lib/systemd/system/redeem.service" instlled: 
First modify the redeem.service file to update redeem 'binary' location.
Since the software was installed form source, it is added to /usr/local
`nano /usr/src/redeem/systemd/redeem.service`

Edit line
`ExecStart=/usr/bin/redeem`
to
`ExecStart=/usr/local/bin/redeem`

Copy redeem systemd startup script into place, enable it for startup on boot and start it now.

cp /usr/src/redeem/systemd/redeem.service /lib/systemd/system/redeem.service
systemctl enable redeem.service
systemctl start redeem.service



# Development:  
  Try to be PEP8 compliant: http://legacy.python.org/dev/peps/pep-0008/

## Locating files 
Do an "updatedb" and then "locate Redeem.py". It should give you the location. Please note that
if you install from source, the files will have a different location than if you install from a deb package.
/usr/lib vs. /usr/local/lib/.

## Making firmware changes
As for the firmware files (the code that runs on PRUSS, or other hardware), they are moved to /tmp during compilation, but should reside in a sub directory from Redeem.py before compilation.
A recompile of the firmware can be triggered by touching /etc/redeem/local.cfg

# Contributors
Elias Bakken
Mathieu Monney
Daryl Bond

# Generic armhf port
Alex Tao, Tao Submarines and Systems, Chios, Aegean Sea, Mediterra


# Install Redeem on Debian 8.3 on Beaglebone and Chip Pro (getchip.com) for SinapTec board (http://reprap.org/wiki/SinapTec) (WIP)
//  - Disable universal cape manager in Beaglebone hardware
//  nano /boot/uEnv.txt
// delete cape_universal=enable
// - Download and install Replicape firmware on Beaglebone 
//  - Hardware
//     git clone https://github.com/eliasbakken/bb.org-
// overlays
//     cd bb.org-overlays/
//     ./dtc-overlay.sh
//     ./install.sh

 - Manual installation of redeem from feed
 - Disable logging to file
    nano /etc/redeem/local.cfg

//  - Disable loading overlays in Beaglebone hardware
//    nano /opt/source/adafruit-beaglebone-io-    
//   python/source/spimodule.c
 - Install socat
 - Install octoprint
 - Install python-octoprint-redeem

About

Firmware for 3D Printer Control, runs on stock Debian (armhf), 'Gender-Neutral', 'Hardware-Neutral'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published