Skip to content

Instantly share code, notes, and snippets.

View ShawnHymel's full-sized avatar

Shawn Hymel ShawnHymel

View GitHub Profile
@ShawnHymel
ShawnHymel / Fingerprint_GT-521F32_Demo.ino
Created February 26, 2018 21:05
Identify a fingerprint using the GT-521F32 sensor and display a welcome message on an OLED screen
/**
* Fingerprint Door Demo
* Date: February 26, 2018
* Author: Shawn Hymel (SparkFun Electronics)
*
* Connect a GT-521F32 fingerprint and servo to an Arduino Pro
* Mini (3.3V). Install the FPS_GT511C3 library and run the
* FPS_Enroll example to enroll a fingerprint. Upload this
* program to display a message on the OLED on correct
* fingerprint identification.
@ShawnHymel
ShawnHymel / Timer_Interrupt_05.ino
Created February 20, 2018 18:42
Blinky with Timer Interrupt
// Pins
const int led_pin = PB5;
// Counter and compare values
const uint16_t t1_load = 0;
const uint16_t t1_comp = 31250;
void setup() {
// Set LED pin to be output
@ShawnHymel
ShawnHymel / Save_Reminder.ino
Last active June 3, 2022 03:33
Save early. Save often.
/**
* Save Reminder
* Date: February 1, 2018
* Author: Shawn Hymel (SparkFun Electronics)
*
* Connect to an open USB port on your computer. Every 5 minutes,
* the LED will begin flashing. Press the button to send a ctl+s
* or cmd+s key press to your computer to save your work.
*
* Pick your operating system by updating the OS variable.
@ShawnHymel
ShawnHymel / H3LIS331_Ball_Demo.ino
Created December 13, 2017 23:02
H3LIS331 Ball Demo
/**
* H3LIS331 Ball Demo
*
* Date: December 13, 2017
* Author: Shawn Hymel (SparkFun Electronics)
*
* Moves a ball around the OLED.
*
* Connect the H3LIS331 breakout board to the Arduino's I2C port
* (A4 and A5 on most boards). Connect Micro OLED board to SPI
@ShawnHymel
ShawnHymel / Endless Runner bb.png
Last active October 7, 2025 01:00
Endless Runner Game
Endless Runner bb.png
@ShawnHymel
ShawnHymel / Clap On Light_bb.png
Last active December 14, 2017 09:09
Clap On Light
Clap On Light_bb.png
@ShawnHymel
ShawnHymel / Light Seeking Robot_bb.png
Last active December 13, 2018 22:19
Light Seeking Robot
Light Seeking Robot_bb.png
@ShawnHymel
ShawnHymel / bot_receiver.ino
Created September 28, 2017 20:56
Plastic Ant Combat Bot Receiver
/**
* Two Channel Receiver
* Author: Shawn Hymel (SparkFun Electronics)
* Date: Aug 24, 2017
*
* Updated Sep 28, 2017 - Added direction multiplier (DIR) to
* account for transmitter controller directions.
*
* Connect a TB6612FNG and RC (PWM) receiver to the Arduino.
* Mixes two channels for arcade drive.
@ShawnHymel
ShawnHymel / timelapse.py
Last active September 14, 2017 16:19
Raspberry Pi time lapse and pan camera
#!/usr/bin/env python
import smbus
import calendar
import time
import picamera
import os, errno
wait = 5.0
iso = 100
@ShawnHymel
ShawnHymel / two_channel_receiver.ino
Created August 24, 2017 15:17
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,