Skip to content

Tri-color LED cycling colors via pressure sensor using Johnny-Five, Arduino, and Node.js.

Notifications You must be signed in to change notification settings

opheliasdaisies/tri-color-led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project is using the Johnny-Five library to cycle through colors on a Tri-Color LED, dependent on a pressure sensor.

To run the code, clone the repo, cd into the directory, and run npm install. Then run node colors.js. The pressure sensor input will be logged in the terminal.

Video is below. You'll need an Arduino (set up with the Firmata protocol), a tri-color LED, and a few resistors. (I destroyed my first LED by forgetting the resistors. Oops.)

Link to the video is here: http://youtu.be/ePiiaja1CuI

Here's a photo of the Arudino/Breadboard setup: Tri-Color LED Setup

About

Tri-color LED cycling colors via pressure sensor using Johnny-Five, Arduino, and Node.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published