Your SlideShare is downloading. ×
0
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
YAPC2011-Perlでちょいモテ電子工作
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

YAPC2011-Perlでちょいモテ電子工作

2,178

Published on

Slides for YAPC::Asia2011 by mandy_44

Slides for YAPC::Asia2011 by mandy_44

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,178
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. YAPC::ASIA Tokyo ● 2011
    Pretty Electronic Engineering in Perl
    Yuki Manno (@mandy_44)
    2011/10/14
  • 2. ※ モテるかモテないかは自己責任でお願いします
  • 3. Myself
  • 4. Yuki Manno(@mandy_44)
    1986/06/10
    Aeronautics & Astronautics
    DeNA Co., Ltd.
  • 5. Arduino
  • 6. DIY (Do It Yourself)
    Open Source Hardware
    Micro Computer
    +
    IO Port
  • 7. Arduino MEGA ADK
    Arduino Bluetooth
    ArduinoLilyPad
  • 8. Digital In/Out
    USB Port
    AC In
    Analog In
    Power
  • 9. Tools
  • 10. Breadboard
    Jump Wire
    LED, LCD etc
  • 11. Input
    Output
    etc.
    etc.
  • 17. Hello World!!
  • 18. Arduino IDE
    C based language
    Upload sketch to Arduino
    http://www.arduino.cc/
  • 19. Blink LED
    voidsetup() {
    pinMode(13, OUTPUT);
    }
    void loop() {
    digitalWrite(13, HIGH); // set the LED on
    delay(1000); // wait for a second
    digitalWrite(13, LOW); // set the LED off
    delay(1000); // wait for a second
    }
  • 20. http://arduino.cc/en/Reference/HomePage
  • 28. Firmata
  • 29. Firmata a generic protocol for communicating with microcontrollers like the Arduino from software on a host computer.
    Host – Client Model
    http://www.arduino.cc/playground/Interfacing/Firmata
  • 30. Normal Arduino
    Arduino
    LED
    LCD
    Sensor
    Sketch
    Servo
    Sensor
    Anything
    LED
    Arduino
    Host
    Firmata
    LCD
    Firmata
    Servo
  • 31. Processing
    JAVA based language
    Arduino Libraries
  • 32. Perl
  • 33. Device::Firmata
    • Module to use Firmata
    • 34. https://github.com/amimoto/perl-firmata
    use Device::Firmata;
    use Device::Firmata::Constants qw( :all );
    my $led_pin=13;
    my $arduino= Device::Firmata->open(‘/dev/ttyusb’);
    $arduino->pin_mode($led_pin=> PIN_OUTPUT);
    while (1) {
    $arduino->digital_write($led_pin => HIGH);
    sleep(1);
    $arduino->digital_write($led_pin => LOW);
    sleep(1);
    }
  • 35. Demo
  • 36. Alalarm
    • Beep on mail arrival
    • 37. Hard to stop
    • 38. Get me up in midnight
    • 39. Using Amon2
  • Please mail to…
    mandy.alert@gmail.com
  • 40. Checker
    WEB App
    • Make question
    • 43. Change flag
    +
    • Not simple
    • 44. Made Amon2 Plugin for Arduino-> Can’t make persistent connection.
    • 45. Need improvement of Firmata
  • Thank you so much for your attention.
  • 46. Any Question?

×