Skip to content

Instantly share code, notes, and snippets.

View polyhedron's full-sized avatar

Matt Saragusa polyhedron

View GitHub Profile
@polyhedron
polyhedron / two_channel_receiver.ino
Created September 27, 2020 14:33 — forked from ShawnHymel/two_channel_receiver.ino
Mixing 2 channels from an RC hobby controller for arcade drive
/**
* Two Channel Receiver
* Author: Shawn Hymel (SparkFun Electronics)
* Date: Aug 24, 2017
*
* Connect a TB6612FNG and RC (PWM) receiver to the Arduino.
* Mixes two channels for arcade drive.
*
* This code is beerware; if you see me (or any other SparkFun
* employee) at the local, and you've found our code helpful,
@polyhedron
polyhedron / fred_bot.ino
Created September 27, 2020 14:33 — forked from ShawnHymel/fred_bot.ino
Use two magnetic encoders to make a robot drive in a straight line for 1 meter
/**
* Adventures in Science: Fred Bot
* SparkFun Electronics
* Author: M. Hord (October 8, 2013)
* Modified by: B. Huang (October 31, 2014)
* Modified by: Shawn Hymel (July 21, 2017)
*
* Use two magnetic encoders on Fred's motor shafts (48:1
* gearbox, 60mm wheels) to make him move in a straight line for
* 1m.
@polyhedron
polyhedron / DB.php
Created February 6, 2018 03:56
My Database Class
<?
/**
* Class SQLiDB
**/
class SQLiDB {
var $mysqli;
/**