Skip to content

Instantly share code, notes, and snippets.

View TinajaLabs's full-sized avatar

Chris Jefferies TinajaLabs

  • Tinaja Labs
  • Berkeley, SF Bay Area
View GitHub Profile
@TinajaLabs
TinajaLabs / DSLR_slide_scanner.ino
Created January 19, 2016 07:20
Scan slides with DSLR and slide projector using arduino and some relays.
/*
Code uses an Arduino Uno to control a slide scanner and a DSLR to make it easier to digitize slides.
I got these relays on Amazon for about $3 each. They take 5VDC, Gnd, and a low
voltage to close the normally open relay. http://www.amazon.com/gp/product/B00G9TQH8U
Features:
This relay module is 5V active low.
It is a 1-channel relay interface board, which can be controlled directly by a wide range of microcontrollers such as Arduino, AVR, PIC, ARM, PLC, etc.
It is also able to control various appliances and other equipments with large current.
@TinajaLabs
TinajaLabs / tinaja_sensors.sh
Last active August 29, 2015 14:26
This is an init file for Raspberry Pi, Raspbian which can automatically launch a python script at boot-up
#! /bin/sh
# /etc/init.d/tinaja_sensors
### BEGIN INIT INFO
# Provides: tinaja_sensors
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Tinaja_Sensors initialisation
@TinajaLabs
TinajaLabs / watchbunny.py
Last active August 29, 2015 14:22
watch bunny - code that detects motion and sends a tweet when detected
#!/usr/bin/env python
# example code - https://github.com/bear/python-twitter/blob/master/examples/tweet.py
# motion detector - https://www.adafruit.com/products/189 -
# running on Raspberry Pi A+
import RPi.GPIO as io
import os, sys
import time