You are on page 1of 13

Phys 4050 Electronics Lab

2016 C. Wexler 1
2016 C. Wexler 2
2016 C. Wexler 3
USB (serial ICSP programming
communication, (loading bootloader)
programming
via bootloader, RESET*
XTAL, 16 MHz
power)

POWER IN
(6-20 V)
Activity LEDs POWER OUT
(power, RX, TX, D13) (regulated 5V, 3.3V)
2016 C. Wexler 4
Digital I/O ports
D0-D13 (~ = PWM) External INTERRUPTS
SPI (10, 11, serial communication
12, 13) RX (D0), TX (D1)

POWER IN
(6-20 V)

I2C (A4,A5) Analog In (A0-A7), also


Digital I/O (D14-D19)
2016 C. Wexler 5
ATtiny85
Internals
(328
little
brother)

2016 C. Wexler 6
ATtiny LED Flasher

const int ledPin = 4; void loop() {


const int potPin = 3; int potReading = analogRead(potPin);
// 0 to 1023
void Setup() { digitalWrite(ledPin, HIGH);
pinMode (ledPin, OUTPUT); delay(potReading/2);
pinMode (potPin, INPUT); digitalWrite(ledPin, LOW);
} delay(potReading/2);
}
2016 C. Wexler 7
Arduino IDE (integrated development environment)

2016 C. Wexler 8
2016 C. Wexler 9
Proyectos Independientes

2016 C. Wexler 10
2016 C. Wexler 11
2016 C. Wexler 12
1 clase + 5 practicas + proyecto

2016 C. Wexler 13

You might also like