Uwe Ziegenhagen
Fukushima
I
11.03.2011: Erdbeben in
Fukushima, Kernschmelzen
Ergebnis: unabhngige
Strahlungsdaten in hoher
Dichte, ffentlich zugnglich
berblick
Was ist Arduino?
Allgemeines
Hardware
Software
Mein erstes Programm
Mehr Spa mit LEDs
LC Displays anschlieen
DOGM-Displays
I2 C-Displays
Serielle Displays
Mehr Beispiele
Mehr Informationen
Alternativen?
ber mich
Arduino = Physical-Computing-Plattform
Arduino Hardware
Leonardo Maus/Tastatur
Arduino Uno
IO-Ports
USB-Port
Atmega 16U2
ATMega 328
912V
IO-Ports
Abbildung : Arduino Uno Quelle: Wikipedia
Arduino Uno
ATmega328 Mikrocontroller
2 KB RAM, 1 KB EEPROM
16 MHz Takt
14 digitale I/O-Pins
Arduino Shields
Stand: 31.05.2013
Danger Shield
Proto Shield
Steckbretter (Breadboards)
Ethernet Shield
grafische Design-Umgebung
Fritzing
5 V 1.6 V
= 170
0.02 A
Nchster verfgbarer Wert 220
2
Erklrung dazu. . .
Verkabelung
Fritzing
Programmcode
Siehe Examples Basic Blink.pde
/*
Blink
Turns on an LED on for one second, then off for one second,
repeatedly.
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
//
//
//
//
I
I
I
I
http://www.instructables.com/id/
The-74HC164-Shift-Register-and-your-Arduino/step2/
Basic-wiring-and-operation/
Schieberegister Programmcode
#define data 2
#define clock 3
#define wait 200
byte
byte
byte
byte
zero
two
four
six
=
=
=
=
B00000001;byte
B00000111;byte
B00011111;byte
B01111111;byte
one
three
five
seven
=
=
=
=
B00000011;
B00001111;
B00111111;
B11111111;
void setup(){
pinMode(clock, OUTPUT); // make the clock pin an output
pinMode(data , OUTPUT); // make the data pin an output3
}
void loop(){
shiftOut(data,
shiftOut(data,
shiftOut(data,
shiftOut(data,
shiftOut(data,
shiftOut(data,
shiftOut(data,
shiftOut(data,
}
clock,
clock,
clock,
clock,
clock,
clock,
clock,
clock,
LSBFIRST,
LSBFIRST,
LSBFIRST,
LSBFIRST,
LSBFIRST,
LSBFIRST,
LSBFIRST,
LSBFIRST,
zero);
one);
two);
three);
four);
five);
six);
seven);
delay(wait);
delay(wait);
delay(wait);
delay(wait);
delay(wait);
delay(wait);
delay(wait);
delay(wait);
Das LoL-Shield
Webseite http://jimmieprodgers.com/kits/lolshield/
void DisplayBitMap()
{
boolean run=true;
byte frame = 0;
byte line = 0;
unsigned long data;
while(run == true) {
for(line = 0; line < 9; line++) {
//Here we fetch data from program memory with a pointer.
data = pgm_read_word_near (&BitMap[frame][line]);
LC Displays
Bibliothek: http://code.google.com/p/doglcd/
http://www.reichelt.de/?ACTION=3;ARTICLE=
77826;PROVID=2402
Schaltplan
Abbildung : Schaltplan
DOGM Programmcode
/* basiert auf DogLcd Library - Hello World
We assume the following pins are connected:
* LCD SI pin to digital pin 2
* LCD CLK pin to digital pin 3
* LCD RS pin to digital pin 4
* LCD CSB pin to digital pin 5
http://www.arduino.cc/en/Tutorial/LiquidCrystal
*/
#include <DogLcd.h>
DogLcd lcd(2, 3, 4, 5);
void setup() {
lcd.begin(DOG_LCD_M081,0x20);
lcd.print("Hallo!");
delay(500);
lcd.clear(); lcd.noCursor();
}
void loop() {
lcd.setCursor(0, 0);
lcd.print(millis()/1000);
}
Schaltplan
I2 C-Displays
NTP-Server abfragen
I
I
Serielle Displays
Serielle Displays
Ansteuerung per I2 C
Serielle Displays
Erdbebenwarner
Laundrino
Raumluftsensor
Arduino
USB-Kabel
Breadboard
Widerstnde
LEDs
Multimeter
Ltstation
Literatur
Bezugsquellen
http://www.arduino.cc
http://www.watterott.com
http://www.elmicro.com
http://www.segor.de
http://www.sparkfun.com
http://www.reichelt.de
http://www.seeedstudio.com/depot/
Bcher
Face2Face
I
I
offene Werkstatt
komplett ausgerstete Holz/Metall-Werkstatt
3D-Drucker, Lasercutter
umfangreiche Elektronik-und -Werkzeuge
Freitagabends ab 19 Uhr: freies Basteln
I
I
I
I
I
I
Im Nerd-Umfeld. . .