Tutorials - Fab Academy at AS220 Labs - Providence, RI

Input Device Examples - Arduino IDE

ATtiny 45 / 85 Pinouts

ATtiny 45 pinout

Download datasheet

ATtiny 44A vs. Arduino Pin-Out Numbering

ATtiny 45
Pin Number
Corresponding Arduino
Pin Number
Details
1 No number, no access? RESET
2 Pin 3 Analog Input 3
3 Pin 4 Analog Input 2
4 No number, no access? GND(-)
5 Pin 0 PWM, AREF, MOSI
6 Pin 1 PWM, MISO
7 Pin 2 Analog Input 1, SCK
8 No number, no access? VCC(+)

If using a Mac - you need PySerial:

To install, open terminal and move to the directory.

Type:

sudo python setup.py install

Hello Sonar (Ultrasonic)

Ultrasonic range finder HC-SR04. Here is the datasheet.

Here is how it works

Example code:

Hello Motion

''

HC-SR501 Motion Sensor Datasheet

Learn about PIR (Pyroelectric ("Passive") InfraRed) motion sensors

Example code

More Example Code

Hello Capacitive Sensing