Skip to content

Instantly share code, notes, and snippets.

// Differential Steering Joystick Algorithm
// ========================================
// by Calvin Hass
// https://www.impulseadventure.com/elec/robot-differential-steering.html
// https://github.com/ImpulseAdventure/
//
// Converts a single dual-axis joystick into a differential
// drive motor control, with support for both drive, turn
// and pivot operations.
//
@ImpulseAdventure
ImpulseAdventure / printf_lwt.c
Last active September 26, 2017 05:38
Lightweight printf() for Arduino
// ========================================================================
// Very lightweight printf() for Arduino
// by Calvin Hass
// http://www.impulseadventure.com/elec/
// ========================================================================
//
// printf() feature support:
// - %u (16-bit unsigned int)
// - %d (16-bit signed int)
// - %s (null-terminated string)
@ImpulseAdventure
ImpulseAdventure / rc_pwm2spi.ino
Last active February 3, 2022 18:37
RC Receiver PWM to SPI slave for ATtiny / Arduino
// RC Receiver PWM to SPI slave
// ============================
// by Calvin Hass
// http://www.impulseadventure.com/elec/
//
// This code implements a simple SPI slave receiver interface
// combined with multi-channel pulse-width modulation (PWM)
// measurement. Each channel's pulse width is measured in
// microseconds and returned in a channelized register interface.
// This code can be useful for using a remote-control transmitter