SlideShare une entreprise Scribd logo
1  sur  71
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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ハッカソン
 
大阪市立大学大学院創造都市研究科ワークショップ
大阪市立大学大学院創造都市研究科ワークショップ大阪市立大学大学院創造都市研究科ワークショップ
大阪市立大学大学院創造都市研究科ワークショップ
 

Dernier

Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst SummitHolger Mueller
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdftbatkhuu1
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Unlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdfUnlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdfOnline Income Engine
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.Aaiza Hassan
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...Paul Menig
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...lizamodels9
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableDipal Arora
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...anilsa9823
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxpriyanshujha201
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 

Dernier (20)

Progress Report - Oracle Database Analyst Summit
Progress  Report - Oracle Database Analyst SummitProgress  Report - Oracle Database Analyst Summit
Progress Report - Oracle Database Analyst Summit
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Event mailer assignment progress report .pdf
Event mailer assignment progress report .pdfEvent mailer assignment progress report .pdf
Event mailer assignment progress report .pdf
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Unlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdfUnlocking the Secrets of Affiliate Marketing.pdf
Unlocking the Secrets of Affiliate Marketing.pdf
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
M.C Lodges -- Guest House in Jhang.
M.C Lodges --  Guest House in Jhang.M.C Lodges --  Guest House in Jhang.
M.C Lodges -- Guest House in Jhang.
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...7.pdf This presentation captures many uses and the significance of the number...
7.pdf This presentation captures many uses and the significance of the number...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
Call Girls In Holiday Inn Express Gurugram➥99902@11544 ( Best price)100% Genu...
 
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service AvailableCall Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
Call Girls Pune Just Call 9907093804 Top Class Call Girl Service Available
 
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
Lucknow 💋 Escorts in Lucknow - 450+ Call Girl Cash Payment 8923113531 Neha Th...
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 

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