SlideShare ist ein Scribd-Unternehmen logo
1 von 71
Downloaden Sie, um offline zu lesen
2007.12.22-23



 YCAM                     #2
                HELLO!!
2   1 14:40 15:00
•
•
• LED
•
    – 2
    –     GND
    –     V
•
    –
    –   A
•
    –
    –   Ω
• 1,000        1kΩ
• 1,000,000          1MΩ
• 1,000
    1
              1mA
• 1,000,000
      1
                     50µA
•
•
+5V   GND
LED
•
•
    –
    –
    –
•
•
•
•
•
LED
LED


• LED
        20mA
•
•
•
V =I ×R

• V    V
• I   A
• R    Ω
− LED         = LED            ×R

R

                   − LED
      R=
            LED

    5.0V LED        1.8V    10mA

         5 − 1.8    3.2
      R=         =      =
           0.01    0.01
LED
•   +5V
•   GND
•
LED   NG
2   2 15:00 15:20
Processing
•
•
•
Processing
•
•
•
•
Processing
• Processing Development Environment
• Sketch
• Display Window
Processing                  1

                               1

//       1
void setup()
{
  // Display Window
  size(200, 200);
}

//
void draw()
{
  //
  background(255, 255, 255);
}
Processing   2
Processing                                 2

                                   2

PFont myFont; //

void setup()
{
  size(200, 200);

    myFont = loadFont(quot;HelveticaNeue-32.vlwquot;); //
    textFont(myFont, 32); //
}

void draw()
{
  background(120, 120, 120);

    text(quot;Hello!!quot;, 15, 50); //
}
Processing
•
•
•
2     3 15:20 16:30
Funnel
• Gainer I/O
•
• LED
•
Funnel      Gainer I/O
1. Funnel Server
2.         I/O           LED
3. I/O                   LED
Funnel

                          3         I/O     LED

import processing.funnel.*;

Gainer gainer;

void setup()
{
  size(200, 200);
  frameRate(30);
  gainer= new Gainer(this, Gainer.MODE1);
  gainer.autoUpdate = true;
}

void draw()
{
  background(100);
}
Funnel

                       4      I/O   LED

void mousePressed()
{
  gainer.led().value = 1.0;
}

void mouseReleased()
{
  gainer.led().value = 0.0;
}
Funnel

                          5         I/O     LED

import processing.funnel.*;

Gainer gainer;

void setup()
{
  size(200, 200);
  frameRate(30);
  gainer= new Gainer(this, Gainer.MODE1);
  gainer.autoUpdate = true;
}

void draw()
{
  background(100);
}
Funnel

                       6         I/O      LED

void gainerButtonEvent(boolean pressed)
{
  if (pressed) {
    gainer.led().value = 1.0;
  } else {
    gainer.led().value = 0.0;
  }
}
Funnel      Gainer I/O
            2
•               dout 0   1   2
    – LED
    –
•               aout 0 255       256
    – LED
    –
Funnel   aout 0   LED
Funnel   aout 0   LED
Funnel

                        7           aout 0      LED

void setup()
{
  ...
  osc = new Osc(this, Osc.SQUARE, 1.0, 0);
  osc.serviceInterval = 30;
  osc.addEventListener(Osc.UPDATE, quot;oscUpdatedquot;);
}

void oscUpdated(Osc osc)
{
  gainer.led().value = osc.value;
}
Funnel

                      8         aout 0      LED

void risingEdge(PortEvent e)
{
  if (e.target.number == gainer.button) {
    osc.reset();
    osc.start();
  }
}

void fallingEdge(PortEvent e)
{
  if (e.target.number == gainer.button) {
    osc.stop();
  }
}
Funnel   Gainer I/O
            2
•                din 0   1    2
    –
    –
•                ain 0 255        256
    –
    –
Funnel   ain 0
Funnel   ain 0
Funnel       ain 0
1. SimpleScope
2.
3. ain 1
4.
Funnel
Funnel
Funnel
1. Topics/Fractals and L-Systems/Tree
2.
3. Funnel
4. mouseX ain 0
Funnel   ain 0
Funnel   ain 0
Funnel      ain 0
1.       Tree

2. SimpleScope
3. Scaler
4.
Funnel   ain 0
Funnel   ain 0
Funnel   ain 0
Funnel   ain 0
Funnel   ain 0
Funnel   ain 0
Funnel   ain
Funnel   ain
Funnel       ain
1. SimpleScope
2.                     3
3. x, y, z
   •
   •
Funnel
•
•
Funnel
Funnel
1.
2. SimpleScope
3. -1    +1
4. sin
Funnel
1. RGBCube Mouse
2.
3.
Funnel   ain 0
Funnel
•
•
•
2                   16:30 17:00
•                                     LED
                       9        analogInput(0)   SetPoint

void setup()
{
  ...
  gainer.analogInput(0).filters = filters;
  ...
}

void risingEdge(PortEvent e)
{
  if (e.target.number == gainer.analogInput[0]) {
    ...
  }
}
3        17:00 18:00
1.       30
2.            1

Weitere ähnliche Inhalte

Was ist angesagt?

Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function Jannat Jamshed
 
Day2.Combinational Logic
Day2.Combinational LogicDay2.Combinational Logic
Day2.Combinational LogicRon Liu
 
The Ring programming language version 1.7 book - Part 60 of 196
The Ring programming language version 1.7 book - Part 60 of 196The Ring programming language version 1.7 book - Part 60 of 196
The Ring programming language version 1.7 book - Part 60 of 196Mahmoud Samir Fayed
 
The Ring programming language version 1.10 book - Part 67 of 212
The Ring programming language version 1.10 book - Part 67 of 212The Ring programming language version 1.10 book - Part 67 of 212
The Ring programming language version 1.10 book - Part 67 of 212Mahmoud Samir Fayed
 

Was ist angesagt? (6)

Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function Robot In OpenGL Using Line Function
Robot In OpenGL Using Line Function
 
Day2.Combinational Logic
Day2.Combinational LogicDay2.Combinational Logic
Day2.Combinational Logic
 
Mv assignment (repaired)
Mv assignment (repaired)Mv assignment (repaired)
Mv assignment (repaired)
 
Vhdlbputspdas
VhdlbputspdasVhdlbputspdas
Vhdlbputspdas
 
The Ring programming language version 1.7 book - Part 60 of 196
The Ring programming language version 1.7 book - Part 60 of 196The Ring programming language version 1.7 book - Part 60 of 196
The Ring programming language version 1.7 book - Part 60 of 196
 
The Ring programming language version 1.10 book - Part 67 of 212
The Ring programming language version 1.10 book - Part 67 of 212The Ring programming language version 1.10 book - Part 67 of 212
The Ring programming language version 1.10 book - Part 67 of 212
 

Andere mochten auch

Andere mochten auch (6)

Technical Workshop 20080501
Technical Workshop 20080501Technical Workshop 20080501
Technical Workshop 20080501
 
LLTV Hardware Sketching
LLTV Hardware SketchingLLTV Hardware Sketching
LLTV Hardware Sketching
 
Slides AXIS WS1
Slides AXIS WS1Slides AXIS WS1
Slides AXIS WS1
 
Maker Faire Tokyo 2015
Maker Faire Tokyo 2015Maker Faire Tokyo 2015
Maker Faire Tokyo 2015
 
au未来研究所ハッカソン
au未来研究所ハッカソンau未来研究所ハッカソン
au未来研究所ハッカソン
 
IoT Workshop in Macao
IoT Workshop in MacaoIoT Workshop in Macao
IoT Workshop in Macao
 

Ähnlich wie YCAM Workshop Part 2

Workshop at IAMAS 2008-05-24
Workshop at IAMAS 2008-05-24Workshop at IAMAS 2008-05-24
Workshop at IAMAS 2008-05-24Shigeru Kobayashi
 
Topviewsimulator
TopviewsimulatorTopviewsimulator
TopviewsimulatorRashmi
 
LED Cube Presentation Slides
LED Cube Presentation Slides LED Cube Presentation Slides
LED Cube Presentation Slides Projects EC
 
Home automation system
Home automation system Home automation system
Home automation system Hira Shaukat
 
How to hack electronics
How to hack electronics How to hack electronics
How to hack electronics Planning-ness
 
m.tech esd lab manual for record
m.tech esd lab manual for recordm.tech esd lab manual for record
m.tech esd lab manual for recordG Lemuel George
 
Arduino: Analog I/O
Arduino: Analog I/OArduino: Analog I/O
Arduino: Analog I/OJune-Hao Hou
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
CMEL 2.4 inch Amoled(240x320) Datasheet
CMEL 2.4 inch Amoled(240x320) DatasheetCMEL 2.4 inch Amoled(240x320) Datasheet
CMEL 2.4 inch Amoled(240x320) DatasheetPanox Display
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051) vijaydeepakg
 

Ähnlich wie YCAM Workshop Part 2 (20)

Workshop at IAMAS 2008-05-24
Workshop at IAMAS 2008-05-24Workshop at IAMAS 2008-05-24
Workshop at IAMAS 2008-05-24
 
67WS Seminar Event
67WS Seminar Event67WS Seminar Event
67WS Seminar Event
 
Make: Tokyo Meeting 03
Make: Tokyo Meeting 03Make: Tokyo Meeting 03
Make: Tokyo Meeting 03
 
67WS Funnel
67WS Funnel67WS Funnel
67WS Funnel
 
YCAM Workshop Part 3
YCAM Workshop Part 3YCAM Workshop Part 3
YCAM Workshop Part 3
 
Topviewsimulator
TopviewsimulatorTopviewsimulator
Topviewsimulator
 
LED Cube Presentation Slides
LED Cube Presentation Slides LED Cube Presentation Slides
LED Cube Presentation Slides
 
Home automation system
Home automation system Home automation system
Home automation system
 
Simply arduino
Simply arduinoSimply arduino
Simply arduino
 
How to hack electronics
How to hack electronics How to hack electronics
How to hack electronics
 
Geidai Open Workshop 2009
Geidai Open Workshop 2009Geidai Open Workshop 2009
Geidai Open Workshop 2009
 
m.tech esd lab manual for record
m.tech esd lab manual for recordm.tech esd lab manual for record
m.tech esd lab manual for record
 
Arduino based applications part 1
Arduino based applications part 1Arduino based applications part 1
Arduino based applications part 1
 
Arduino: Analog I/O
Arduino: Analog I/OArduino: Analog I/O
Arduino: Analog I/O
 
P-Space Arduino/Genuino day 2016
P-Space Arduino/Genuino day 2016P-Space Arduino/Genuino day 2016
P-Space Arduino/Genuino day 2016
 
Programming arduino makeymakey
Programming arduino makeymakeyProgramming arduino makeymakey
Programming arduino makeymakey
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
CMEL 2.4 inch Amoled(240x320) Datasheet
CMEL 2.4 inch Amoled(240x320) DatasheetCMEL 2.4 inch Amoled(240x320) Datasheet
CMEL 2.4 inch Amoled(240x320) Datasheet
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051)
 
publish manual
publish manualpublish manual
publish manual
 

Mehr von Shigeru Kobayashi

Maker Faireを持続可能にするには?
Maker Faireを持続可能にするには?Maker Faireを持続可能にするには?
Maker Faireを持続可能にするには?Shigeru Kobayashi
 
テレマティクスハッカソン参加同意書
テレマティクスハッカソン参加同意書テレマティクスハッカソン参加同意書
テレマティクスハッカソン参加同意書Shigeru Kobayashi
 
monoFabアイデアソンミーティング参加同意書
monoFabアイデアソンミーティング参加同意書monoFabアイデアソンミーティング参加同意書
monoFabアイデアソンミーティング参加同意書Shigeru Kobayashi
 
情報学基礎:エレクトロニクス
情報学基礎:エレクトロニクス情報学基礎:エレクトロニクス
情報学基礎:エレクトロニクスShigeru Kobayashi
 
Rebuilding the world, from the 'periphery'
Rebuilding the world, from the 'periphery'Rebuilding the world, from the 'periphery'
Rebuilding the world, from the 'periphery'Shigeru Kobayashi
 
Engadget電子工作部:インテルGalileoでガジェットを作ろう!
Engadget電子工作部:インテルGalileoでガジェットを作ろう!Engadget電子工作部:インテルGalileoでガジェットを作ろう!
Engadget電子工作部:インテルGalileoでガジェットを作ろう!Shigeru Kobayashi
 
第2回iBeaconハッカソン
第2回iBeaconハッカソン第2回iBeaconハッカソン
第2回iBeaconハッカソンShigeru Kobayashi
 
イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房
イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房
イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房Shigeru Kobayashi
 
Rapid PrototypingからRapid Manufacturingへ
Rapid PrototypingからRapid ManufacturingへRapid PrototypingからRapid Manufacturingへ
Rapid PrototypingからRapid ManufacturingへShigeru Kobayashi
 
大阪市立大学大学院創造都市研究科ワークショップ
大阪市立大学大学院創造都市研究科ワークショップ大阪市立大学大学院創造都市研究科ワークショップ
大阪市立大学大学院創造都市研究科ワークショップShigeru Kobayashi
 

Mehr von Shigeru Kobayashi (20)

Maker Faireを持続可能にするには?
Maker Faireを持続可能にするには?Maker Faireを持続可能にするには?
Maker Faireを持続可能にするには?
 
Maker Faire Tokyo 2018
Maker Faire Tokyo 2018Maker Faire Tokyo 2018
Maker Faire Tokyo 2018
 
Gesture Workshop
Gesture WorkshopGesture Workshop
Gesture Workshop
 
Telematics Hackathon
Telematics HackathonTelematics Hackathon
Telematics Hackathon
 
テレマティクスハッカソン参加同意書
テレマティクスハッカソン参加同意書テレマティクスハッカソン参加同意書
テレマティクスハッカソン参加同意書
 
monoFab Ideathon Meeting
monoFab Ideathon MeetingmonoFab Ideathon Meeting
monoFab Ideathon Meeting
 
monoFabアイデアソンミーティング参加同意書
monoFabアイデアソンミーティング参加同意書monoFabアイデアソンミーティング参加同意書
monoFabアイデアソンミーティング参加同意書
 
CEATEC JAPAN 2014
CEATEC JAPAN 2014CEATEC JAPAN 2014
CEATEC JAPAN 2014
 
BLE Boot Camp
BLE Boot CampBLE Boot Camp
BLE Boot Camp
 
Fab MeetUp Vol.5
Fab MeetUp Vol.5Fab MeetUp Vol.5
Fab MeetUp Vol.5
 
SK creator planet 2014
SK creator planet 2014SK creator planet 2014
SK creator planet 2014
 
Solid 2014 kobayashi
Solid 2014 kobayashiSolid 2014 kobayashi
Solid 2014 kobayashi
 
情報学基礎:エレクトロニクス
情報学基礎:エレクトロニクス情報学基礎:エレクトロニクス
情報学基礎:エレクトロニクス
 
Rebuilding the world, from the 'periphery'
Rebuilding the world, from the 'periphery'Rebuilding the world, from the 'periphery'
Rebuilding the world, from the 'periphery'
 
Engadget電子工作部:インテルGalileoでガジェットを作ろう!
Engadget電子工作部:インテルGalileoでガジェットを作ろう!Engadget電子工作部:インテルGalileoでガジェットを作ろう!
Engadget電子工作部:インテルGalileoでガジェットを作ろう!
 
第2回iBeaconハッカソン
第2回iBeaconハッカソン第2回iBeaconハッカソン
第2回iBeaconハッカソン
 
イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房
イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房
イノベーション創出のファシリテータとしてのデジタル工作機械を備えた市民工房
 
Rapid PrototypingからRapid Manufacturingへ
Rapid PrototypingからRapid ManufacturingへRapid PrototypingからRapid Manufacturingへ
Rapid PrototypingからRapid Manufacturingへ
 
iBeaconハッカソン
iBeaconハッカソンiBeaconハッカソン
iBeaconハッカソン
 
大阪市立大学大学院創造都市研究科ワークショップ
大阪市立大学大学院創造都市研究科ワークショップ大阪市立大学大学院創造都市研究科ワークショップ
大阪市立大学大学院創造都市研究科ワークショップ
 

Kürzlich hochgeladen

8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCRashishs7044
 
8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCRashishs7044
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCRashishs7044
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Servicecallgirls2057
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfRbc Rbcua
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menzaictsugar
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxsaniyaimamuddin
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfShashank Mehta
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 

Kürzlich hochgeladen (20)

8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR8447779800, Low rate Call girls in Tughlakabad Delhi NCR
8447779800, Low rate Call girls in Tughlakabad Delhi NCR
 
8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR8447779800, Low rate Call girls in Rohini Delhi NCR
8447779800, Low rate Call girls in Rohini Delhi NCR
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
8447779800, Low rate Call girls in Uttam Nagar Delhi NCR
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
 
APRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdfAPRIL2024_UKRAINE_xml_0000000000000 .pdf
APRIL2024_UKRAINE_xml_0000000000000 .pdf
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptxFinancial-Statement-Analysis-of-Coca-cola-Company.pptx
Financial-Statement-Analysis-of-Coca-cola-Company.pptx
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
Call Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North GoaCall Us ➥9319373153▻Call Girls In North Goa
Call Us ➥9319373153▻Call Girls In North Goa
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Darshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdfDarshan Hiranandani [News About Next CEO].pdf
Darshan Hiranandani [News About Next CEO].pdf
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 

YCAM Workshop Part 2

  • 1. 2007.12.22-23 YCAM #2 HELLO!!
  • 2. 2 1 14:40 15:00 • • • LED
  • 3. – 2 – GND – V
  • 4.
  • 5. – – A
  • 6.
  • 7. – – Ω
  • 8.
  • 9. • 1,000 1kΩ • 1,000,000 1MΩ • 1,000 1 1mA • 1,000,000 1 50µA
  • 10.
  • 12. +5V GND
  • 13.
  • 14.
  • 15.
  • 16. LED
  • 17. • • – – –
  • 20. LED
  • 21. LED • LED 20mA • • •
  • 22. V =I ×R • V V • I A • R Ω
  • 23. − LED = LED ×R R − LED R= LED 5.0V LED 1.8V 10mA 5 − 1.8 3.2 R= = = 0.01 0.01
  • 24. LED
  • 25. +5V • GND •
  • 26. LED NG
  • 27. 2 2 15:00 15:20 Processing • • •
  • 29. Processing • Processing Development Environment • Sketch • Display Window
  • 30. Processing 1 1 // 1 void setup() { // Display Window size(200, 200); } // void draw() { // background(255, 255, 255); }
  • 32. Processing 2 2 PFont myFont; // void setup() { size(200, 200); myFont = loadFont(quot;HelveticaNeue-32.vlwquot;); // textFont(myFont, 32); // } void draw() { background(120, 120, 120); text(quot;Hello!!quot;, 15, 50); // }
  • 34. 2 3 15:20 16:30 Funnel • Gainer I/O • • LED •
  • 35. Funnel Gainer I/O 1. Funnel Server 2. I/O LED 3. I/O LED
  • 36. Funnel 3 I/O LED import processing.funnel.*; Gainer gainer; void setup() { size(200, 200); frameRate(30); gainer= new Gainer(this, Gainer.MODE1); gainer.autoUpdate = true; } void draw() { background(100); }
  • 37. Funnel 4 I/O LED void mousePressed() { gainer.led().value = 1.0; } void mouseReleased() { gainer.led().value = 0.0; }
  • 38. Funnel 5 I/O LED import processing.funnel.*; Gainer gainer; void setup() { size(200, 200); frameRate(30); gainer= new Gainer(this, Gainer.MODE1); gainer.autoUpdate = true; } void draw() { background(100); }
  • 39. Funnel 6 I/O LED void gainerButtonEvent(boolean pressed) { if (pressed) { gainer.led().value = 1.0; } else { gainer.led().value = 0.0; } }
  • 40. Funnel Gainer I/O 2 • dout 0 1 2 – LED – • aout 0 255 256 – LED –
  • 41. Funnel aout 0 LED
  • 42. Funnel aout 0 LED
  • 43. Funnel 7 aout 0 LED void setup() { ... osc = new Osc(this, Osc.SQUARE, 1.0, 0); osc.serviceInterval = 30; osc.addEventListener(Osc.UPDATE, quot;oscUpdatedquot;); } void oscUpdated(Osc osc) { gainer.led().value = osc.value; }
  • 44. Funnel 8 aout 0 LED void risingEdge(PortEvent e) { if (e.target.number == gainer.button) { osc.reset(); osc.start(); } } void fallingEdge(PortEvent e) { if (e.target.number == gainer.button) { osc.stop(); } }
  • 45. Funnel Gainer I/O 2 • din 0 1 2 – – • ain 0 255 256 – –
  • 46. Funnel ain 0
  • 47. Funnel ain 0
  • 48. Funnel ain 0 1. SimpleScope 2. 3. ain 1 4.
  • 51. Funnel 1. Topics/Fractals and L-Systems/Tree 2. 3. Funnel 4. mouseX ain 0
  • 52. Funnel ain 0
  • 53. Funnel ain 0
  • 54. Funnel ain 0 1. Tree 2. SimpleScope 3. Scaler 4.
  • 55. Funnel ain 0
  • 56. Funnel ain 0
  • 57. Funnel ain 0
  • 58. Funnel ain 0
  • 59. Funnel ain 0
  • 60. Funnel ain 0
  • 61. Funnel ain
  • 62. Funnel ain
  • 63. Funnel ain 1. SimpleScope 2. 3 3. x, y, z • •
  • 68. Funnel ain 0
  • 70. 2 16:30 17:00 • LED 9 analogInput(0) SetPoint void setup() { ... gainer.analogInput(0).filters = filters; ... } void risingEdge(PortEvent e) { if (e.target.number == gainer.analogInput[0]) { ... } }
  • 71. 3 17:00 18:00 1. 30 2. 1