Skip to content

Instantly share code, notes, and snippets.

View cgp's full-sized avatar

cgp cgp

  • Clarivate
  • 05:56 (UTC -05:00)
View GitHub Profile
package frc.robot;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.kinematics.ChassisSpeeds;
import edu.wpi.first.math.kinematics.SwerveModuleState;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import swervelib.SwerveDrive;
import swervelib.SwerveModule;
@cgp
cgp / gist:7289efa49cdf6fd033cd4eb0321cb50e
Created February 24, 2023 23:48
Useful links for everybot
https://www.youtube.com/playlist?list=PLrna2STRqYY87NvF51rnfGlbh-su3NSHM
@cgp
cgp / 3d-printing.md
Last active February 14, 2022 17:44
3d printing controllers skr 2 marlin monoprice maker select wanhao duplicator i3

These are just my notes on updating from a Melzi board to an SKR 2 along with Marlin firmware for a monoprice maker select v2 (wanhao duplicator i3).

Exact specs

I'm using the skr v2 for the monoprice maker select v2, which, to my untrained eye is basically adding hyperdrive technology to a go cart, but, maybe I make too much of the difference in the hardware.

Tasklist (rough, will be adjusted a lot)

  • Wire up the board?
  • Compile Marlin firmware + configs
  • Calculate current limiters for drivers
  • Hook up the front panel
@cgp
cgp / ir-receivers.md
Last active January 14, 2022 16:16
Infrared IR photoresistor receivers on Arduino esp8266 nodemcu

My Note taking for IR receivers and IR photoresistors using arduino or nodemcu platforms.

Currently, I'm using the following IR photoresistor (also called an IR diode?), mostly by accident because I thought it was an IR receiver. I didn't think there would be a difference between the three pin infrared receiver and the two pin infrared receiver. Oops.

http://www.gikfun.com/leds-c-6_51/5mm-940nm-leds-infrared-emitter-and-ir-receiver-diode-p-519.html

https://forum.arduino.cc/t/cant-get-an-ir-photoresistor-to-work/698649/1

These are very basic components geared towards proximity testing.

@cgp
cgp / install-chef-12-6-0-amazon-linux
Last active October 29, 2020 14:10 — forked from rtacconi/install-chef-12-6-0-amazon-linux
Install chef server 12.6.0 on Amazon Linux
# sometimes you don't have a corporate server you want to hook up to?
chown ec2-user /home/ec2-user/.chef/companypem
wget https://packages.chef.io/stable/el/6/chefdk-0.14.25-1.el6.x86_64.rpm
rpm -Uvh chefdk-0.14.25-1.el6.x86_64.rpm