This is sample code to read the analog keypad I describe in this article. Simply clone the ATtiny85 template library and replace the main.c file with the one contained here.
This gist provides sample code for using Nokia 5110 displays using the ATtiny85 template library. For a full description of code behind this please see this post on The Garage Lab website.
To use this sample code first clone the ATtiny85 template repository and then replace 'main.c' with the source provided here.
This is a simple Python script to capture screen shots from a Tektronix scope, rotate them to landscape mode and convert them to PNG. The script simply sits in the background monitoring the serial port and creating the images in a specified directory.
The following settings are required on the TDS 1012:
- Printing in PCX format to the RS232 port.
- RS232 set to 19200N81.
A null modem cable is required to connect the scope to a PC, I used a USB to DB9 serial adaptor on the PC end.
This is a very simple 4 channel FET driver breakout board based around the 2N7000 N Channel FET in TO-92 format. It can be driven by both 3.3V and 5V digital outputs and allows you to switch up to 60V and 200mA. It is a nice simple solution for driving LED's or other low power devices from a microcontroller or Raspberry Pi.
The other files in this gist include a PDF of the (single layer) PCB suitable for toner transfer etching and an image of the schematic. It fits neatly on a breadboard making it a useful addition to your prototyping tools.
#!/usr/bin/env python | |
#---------------------------------------------------------------------------- | |
# 13-Nov-2014 ShaneG | |
# | |
# Some slight changes to the code for consistancy with the output generated | |
# by 'linegrinder'. The origin is now in the lower left corner, x increments | |
# upwards, y increments to the right. The boards are now treated with the | |
# same origin location (this is what linegrinder generates). | |
# | |
# Rotations are in the counter clockwise direction with the working origin |
#!/usr/bin/env python | |
#---------------------------------------------------------------------------- | |
# 11-Jan-2015 ShaneG | |
# | |
# Turn the results of the autoprobe log into a PNG file for visualisation. | |
#---------------------------------------------------------------------------- | |
from sys import argv | |
from os.path import splitext | |
from random import random | |
from PIL import Image |