// 0513 LDR CODE:
int ldr= 0;
int led= 9;
int val=0;
void setup()
{
Serial.begin(9600);
pinMode(ldr,INPUT);
pinMode(led,OUTPUT);
}
void loop()
{
val = analogRead(ldr);
val=map(val,0,1023,0,255);
analogWrite(led,val);
Serial.println(val);
}
//END LDR
FLASH:
1. FLASH 安全性設定網址 : LINK
2. download 橋梁 Serproxy: LINK
3. FLASH FILES: LINK
4. 下面程式碼LINK
//FLASH CODE
// 0513 LDR CODE:
int ldr= 0;
int led= 9;
int val=0;
void setup()
{
Serial.begin(9600);
pinMode(ldr,INPUT);
pinMode(led,OUTPUT);
}
void loop()
{
val = analogRead(ldr);
val=map(val,0,1023,0,255);
analogWrite(led,val);
Serial.print(0,BYTE); //FLASH CODE!
Serial.println(val);
}
2010年5月12日 星期三
2010年5月5日 星期三
0506- week 2 class
LDR CODE:
int ldr= 2;
int led= 9;
int val=0;
void setup()
{
Serial.begin(9600);
pinMode(ldr,INPUT);
pinMode(led,OUTPUT);
}
void loop()
{
val = analogRead(ldr);
val=map(val,0,1023,0,255);
Serial.println(val);
analogWrite(led,val);
}
code:
int inPin = 5;
int val = 0;
int pin11 = 9;
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(inPin);
if(val >= 1){
val = constrain(val, 1, 100);
val = map(val, 1, 100, 1, 255);
analogWrite(pin11, val);
}
else{
analogWrite(pin11, 0);
}
Serial.println(val);
}
from: http://www.aaronalai.com/emf-detector-averaging-code
影片:
小葵組
1. Microcontroller Course - Arduino Project 1 http://www.youtube.com/watch?v=jt2diwf_-3Q&feature=related
(個人覺得漂亮)
2. LED Cube Live Winamp Visualization http://www.youtube.com/watch?v=81DjwWqE6Iw&feature=fvw (閃亮亮)
3. Sun Tracking Solar Panel w/ Arduino http://www.youtube.com/watch?v=ATnnMFO60y8 (感測日光在哪轉向哪邊,好像太陽花)
寢具家電
1. Happillow, the ultimate alarm clock snore detecting pillow http://www.youtube.com/watch?v=DmFLO-fjGsU&feature=related (枕頭時鐘/鬧鐘)
2. Light-emitting shirts! http://www.youtube.com/watch?v=Yd99gyE4jCk&NR=1
3. RX-8 controlled from an iPod Touch http://www.youtube.com/watch?v=xqZj4ArrlhA (發引擎、熄火、開燈、開後座)
4. Arduino EMF detector http://www.youtube.com/watch?v=y1Bke3750WE (測電磁波)
muti-touch 組
iBar - largest multitouch touchscreen http://www.youtube.com/watch?v=iaKehq6qsdY&feature=related
1. LED graffiti 可在牆上塗鴉
2. Keith 的wii和天線控制銀幕和聲音
http://www.the-demos.com/2009/10/08/dorkbot-live-highlights/
Keith的影像和聲音都很要張力,看完都會有很炫的感覺
3. 天工開物,無人office,魚打鍵盤
另外有關3D
3D led display globe http://www.youtube.com/watch?v=oLygWkHo9nw&NR=1
code:
int inPin = 5;
int val = 0;
int pin11 = 11;
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(inPin);
if(val >= 1){
val = constrain(val, 1, 100);
val = map(val, 1, 100, 1, 255);
analogWrite(pin11, val);
}
else{
analogWrite(pin11, 0);
}
Serial.println(val);
}
from: http://www.aaronalai.com/emf-detector-averaging-code
int ldr= 2;
int led= 9;
int val=0;
void setup()
{
Serial.begin(9600);
pinMode(ldr,INPUT);
pinMode(led,OUTPUT);
}
void loop()
{
val = analogRead(ldr);
val=map(val,0,1023,0,255);
Serial.println(val);
analogWrite(led,val);
}
code:
int inPin = 5;
int val = 0;
int pin11 = 9;
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(inPin);
if(val >= 1){
val = constrain(val, 1, 100);
val = map(val, 1, 100, 1, 255);
analogWrite(pin11, val);
}
else{
analogWrite(pin11, 0);
}
Serial.println(val);
}
from: http://www.aaronalai.com/emf-detector-averaging-code
影片:
小葵組
1. Microcontroller Course - Arduino Project 1 http://www.youtube.com/watch?v=jt2diwf_-3Q&feature=related
(個人覺得漂亮)
2. LED Cube Live Winamp Visualization http://www.youtube.com/watch?v=81DjwWqE6Iw&feature=fvw (閃亮亮)
3. Sun Tracking Solar Panel w/ Arduino http://www.youtube.com/watch?v=ATnnMFO60y8 (感測日光在哪轉向哪邊,好像太陽花)
寢具家電
1. Happillow, the ultimate alarm clock snore detecting pillow http://www.youtube.com/watch?v=DmFLO-fjGsU&feature=related (枕頭時鐘/鬧鐘)
2. Light-emitting shirts! http://www.youtube.com/watch?v=Yd99gyE4jCk&NR=1
3. RX-8 controlled from an iPod Touch http://www.youtube.com/watch?v=xqZj4ArrlhA (發引擎、熄火、開燈、開後座)
4. Arduino EMF detector http://www.youtube.com/watch?v=y1Bke3750WE (測電磁波)
muti-touch 組
iBar - largest multitouch touchscreen http://www.youtube.com/watch?v=iaKehq6qsdY&feature=related
1. LED graffiti 可在牆上塗鴉
2. Keith 的wii和天線控制銀幕和聲音
http://www.the-demos.com/2009/10/08/dorkbot-live-highlights/
Keith的影像和聲音都很要張力,看完都會有很炫的感覺
3. 天工開物,無人office,魚打鍵盤
另外有關3D
3D led display globe http://www.youtube.com/watch?v=oLygWkHo9nw&NR=1
code:
int inPin = 5;
int val = 0;
int pin11 = 11;
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(inPin);
if(val >= 1){
val = constrain(val, 1, 100);
val = map(val, 1, 100, 1, 255);
analogWrite(pin11, val);
}
else{
analogWrite(pin11, 0);
}
Serial.println(val);
}
from: http://www.aaronalai.com/emf-detector-averaging-code
2010年4月28日 星期三
0429 Class
Arduino 官方網站 http://arduino.cc/
參考書籍:
踏進互動科技世界 - 使用 Arduino
世界第一簡單 電學原理
Making Things Talk
Arduino 基礎教學檔案下載
From: http://sites.google.com/site/lifegogoworkshop/
台科大駐校藝術家 聖博 分享之教學

麵包版內部結構圖
from:東海物理
From IDEO Seven Rules of brainstorming:
1) Defer judgment
Don’t dismiss any ideas.
Any idea is a good idea, no matter how crazy.
Nothing can kill the spirit of a brainstorm quicker than judging ideas before they have a chance to gain legs.
2) Encourage wild ideas
3) Build on the ideas of others
4) Stay focused on the topic
5) One conversation at a time
6) Be visual
7) Go for quantity
參考書籍:
踏進互動科技世界 - 使用 Arduino
世界第一簡單 電學原理
Making Things Talk
Arduino 基礎教學檔案下載
From: http://sites.google.com/site/lifegogoworkshop/
台科大駐校藝術家 聖博 分享之教學
麵包版內部結構圖
from:東海物理
From IDEO Seven Rules of brainstorming:
1) Defer judgment
Don’t dismiss any ideas.
Any idea is a good idea, no matter how crazy.
Nothing can kill the spirit of a brainstorm quicker than judging ideas before they have a chance to gain legs.
2) Encourage wild ideas
3) Build on the ideas of others
4) Stay focused on the topic
5) One conversation at a time
6) Be visual
7) Go for quantity
訂閱:
意見 (Atom)