项目作者: tolgacesur

项目描述 :
Turns on and off a light emitting diode(LED)
高级语言: JavaScript
项目地址: git://github.com/tolgacesur/johnny-five-socket-io-arduino.git


johnny-five-socket-io-arduino

Johnny-Five is the JavaScript Robotics & IoT Platform. Released by Bocoup in 2012, Johnny-Five is maintained by a community of passionate software developers and hardware engineers. Over 75 developers have made contributions towards building a robust, extensible and composable ecosystem.


about johnny-five here

About Project

Turns on and off a light emitting diode(LED) connected to digital
pin 13, when pressing a pushbutton attached to pin 7.

Setup and Assemble Arduino

Setup and Assemble Arduino

  • Download Arduino IDE
  • Plug in your Arduino or Arduino compatible microcontroller via USB
  • Open the Arduino IDE, select: File > Examples > Firmata > StandardFirmataPlus
  • StandardFirmataPlus is available in Firmata v2.5.0 or greater
  • Click the “Upload” button.

If the upload was successful, the board is now prepared and you can close the Arduino IDE.

Fritzing diagram

Fritzing diagram: button-bumper.fzz

  • LED attached from pin 13 to ground
  • Pushbutton attached to pin 7 from +5V
  • 10K resistor attached to pin 7 from ground
  • Note: on most Arduinos there is already an LED on the board
    attached to pin 13.

Result

  • Console

  • Button Down

  • Button Up