Skip to content

Instantly share code, notes, and snippets.

View jrsphoto's full-sized avatar

John Scherer jrsphoto

View GitHub Profile
@jrsphoto
jrsphoto / extruder calibration.g
Last active June 5, 2019 07:52
[Extruder Calibration] gcode to calibrate 3d printer extruder #ender3 #3dprinting
; 0:/macros/Calibration/E Steps Calibration.g
; Macro to calibrate the extruder steps per mm by extruding 110mm of filament slowly and comparing expected result with actual result.
M291 S3 R"Proceed?" P"Run E Steps per MM Calibration?"
M117 "Homing"
G28 ; Home All Axis
G0 Z50 X122 Y122
T0 ; Activate Tool0
G10 P0 S220 R0 ; Hot end to 220c
M291 S3 R"Heating to 220" P"Mark 110mm on filament from top of extruder body."
// see http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267553811/0
// and http://code.google.com/p/digitalwritefast/
// It turns out that the regular digitalRead() calls are too slow and bring the arduino down when
// I use them in the interrupt routines while the motor runs at full speed creating more than
// 40000 encoder ticks per second per motor.
// Tuning encoder
#define c_EncoderAInterrupt 18
#define c_EncoderPinA 18
@jrsphoto
jrsphoto / read_enc.txt
Created September 20, 2019 22:28
modified function to read encoders with teensy 3.6
int enc_read( void ) {
int result = 0;
byte newState;
int enc_speed = 0;
unsigned long previousMillis = millis();
unsigned long stop_by = 50;
unsigned long currentMillis = millis();
while ((currentMillis - previousMillis) < stop_by) { // check if the previous state was stable
@jrsphoto
jrsphoto / ir829.conf
Created September 28, 2019 19:50
Cisco IR829 run-config
Current configuration : 2657 bytes
!
version 15.6
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service internal
service unsupported-transceiver
!
hostname IR800
@jrsphoto
jrsphoto / new_829.conf
Created September 28, 2019 22:43
updated ir829 config
Current configuration : 2815 bytes
!
! Last configuration change at 23:17:32 UTC Sat Sep 28 2019
!
version 15.6
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service internal
// -----------------------------------------------------------------------------------
// Configuration for OnStep MaxPCB (Teensy3.5/3.6)
/*
* For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep and
* join the OnStep Groups.io at https://groups.io/g/onstep
*
* See the Pins.MaxPCB.h file for detailed information on this pin map to be sure it matches your wiring *** USE AT YOUR OWN RISK ***
*
*/
@jrsphoto
jrsphoto / minipcb2.config.h
Created November 19, 2019 08:17
OnStep MiniPCB2 Config file
// ---------------------------------------------------------------------------------------------------------------------------------
// Configuration for OnStep
/*
* For more information on setting OnStep up see http://www.stellarjourney.com/index.php?r=site/equipment_onstep
* and join the OnStep Groups.io at https://groups.io/g/onstep
*
* *** Read the compiler warnings and errors, they are there to help guard against invalid configurations ***
*/
; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 16:01:30 GMT-0800 (Pacific Standard Time)
; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Ender3" ; set printer name
@jrsphoto
jrsphoto / bed.g
Last active April 17, 2020 05:07
Duet Reprap v3 config files for my Ender 3 pro
M561 ; clear any bed transform
M201 X1000.00 Y1000.00 Z90.00 ; reduce accelerations a bit before we probe
G29 ; probe the bed and enable compensation
M201 X5000.00 Y5000.00 Z95.00 E4000.00 ; set accelerations (mm/s^2)
G1 Z10 X10 Y10 F2000
@jrsphoto
jrsphoto / airspy_adsb config
Last active March 11, 2020 03:14
Piaware Config Files
#gain is 0 to 21, each step of gain is equivalent to about 3dB, so reduce in increments of 1 if 21 is too$GAIN= 21
#other options, append or remove from the line starting with OPTIONS=
#-f: error correction bits, 0, 1 or 2: default and recommended is 1 for now.
# (-f 2 is not recommended at the moment when feeding FlightAware and maybe others
# as they have expressed concern about 2 bit error correction)
#-v: leave it on, will provide messages to system log, read with sudo journalctl -u airspy_adsb
#-x: dx mode, improves reception of weak messages, introduces bogus messages (opinion: not worth it)
#-p: bit packing, reduces USB bandwidth but slightly increases CPU load. Not recommended in most cases.
#-e: preamble filter sensitivity, values: 0.1 to 10.0 (higher values increase CPU load and can improve de$#-w <whitelist_threshold> Whitelist threshold: 1..10 (default: 3, lower not recommended due to bogus me$#-b: enable bias-t