Skip to content

Instantly share code, notes, and snippets.

View aarongough's full-sized avatar

Aaron Gough (He/Him) aarongough

View GitHub Profile
Processing teensy41 (platform: teensy; platform_packages: toolchain-gccarmnoneeabi@1.100301.220327; board: teensy41; framework: arduino; upload_protocol: teensy-cli; extra_scripts: test/delay_after_upload.py; build_unflags: -std=gnu++11 -std=gnu++14; build_flags: -std=c++20)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy41.html
PLATFORM: Teensy (4.15.0) > Teensy 4.1
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
- framework-arduinoteensy 1.156.0 (1.56)
- tool-teensy 1.155.0 (1.55)

HAAS Acceleration Calculations

VF3

  • Y AXIS: Mits 900W Servo, 1500 Rated RPM, 3000 Max RPM, 5.39NM
  • Ballscrew: 40MM DIA 8MM Pitch
  • Max load: 3500 lb (1588 kg)
  • Max thrust: 2550 lbf (11343 N)
  • Advertised max feedrate: 1000 ipm
  • Calculated max feedrate (max rpm * pitch): 944 ipm
  • Max cceleration with rated load (+ 800lb saddle/table): 11343 / (1588 + 362) = 5.81 m/s2 (0.59 G)
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
</head>
<body>
<script>
var canvas = document.createElement("canvas");
var context = this.canvas.getContext("2d");
context.fillStyle = "black";
%
N0 O9002 (WORK OFFSET COMPENSATOR)
#IF H21 < 0 THEN GOTO :ERROR
#IF H21 = 0 THEN GOTO :ERROR
#PRINT "THIS PROGRAM UPDATES A FIXTURE OFFSET Z POSITION TO"
#PRINT "TAKE INTO ACCOUNT THE LENGTH OF THE REFERENCE TOOL (TOOL 21)."
#PRINT ""
#PRINT "ENTER THE NUMBER OF THE FIXTURE OFFSET TO UPDATE:"
#INPUT V10
#V1 = FZ(V10)
version: 2
jobs:
docker_config: &docker_config
- image: circleci/ruby:2.3.4
environment:
RAILS_ENV: test
- image: circleci/mysql:5.6
environment:
MYSQL_DATABASE: circle_test
MYSQL_HOST: 127.0.0.1
version: 2
jobs:
test_project_1:
docker:
- image: circleci/ruby:2.3.4
environment:
RAILS_ENV: test
- image: circleci/mysql:5.6
environment:
MYSQL_DATABASE: circle_test
def extract_string_literals( string )
string_literal_pattern = /"([^"\\]|\\.)*"/
string_replacement_token = "___+++STRING_LITERAL+++___"
# Find and extract all the string literals
string_literals = []
string.gsub(string_literal_pattern) {|x| string_literals << x}
# Replace all the string literals with our special placeholder token
string = string.gsub(string_literal_pattern, string_replacement_token)
# Return the modified string and the array of string literals
return [string, string_literals]
blank_object = {
:parent => nil,
:slots => {},
:size => 0
}
def send(receiver, message, *params, &block)
method_owner = receiver
while(method_owner[:slots][:lookup].nil?)
puts "ERR: lookup failed for ':lookup' on object:\n#{receiver.inspect}" and break if(method_owner[:parent].nil?)
@aarongough
aarongough / tachometer.c
Created September 10, 2013 13:36
A simple Tachometer written for the Arduino. Uses a 'photo interruptor' on pin 3 as the input. The photo interruptor used was: https://www.sparkfun.com/products/9299 In combination with this breakout board: https://www.sparkfun.com/products/9322
#include <SoftwareSerial.h>
#include <serLCD.h>
int lcdTxPin = 2;
int tachPin = 3;
volatile int pulseCount = 0;
volatile unsigned long samplePeriodStart = 0;
volatile unsigned long pulsePeriod = 0;
unsigned long rpm = 0;
class TooCheapForInstagram
def process(item)
return unless item.is_a?(Potion::StaticFile)
extensions = [".jpg", ".jpeg", ".gif", ".png"]
return unless extensions.include?(File.extname(item.output_path).downcase)
image = MiniMagick::Image.read(item.content)
image.sepia_tone("80%")
image.vignette("10")
item.content = image.to_blob