Durring my winter break I had some free time on my hands. I recenty got two arduinos for christmas and found an old knex coaster in my basement. I managed to fabricate a small little loop da loop coaster with what parts I had. Then I decided I wanted to automate the coaster using the arduino. Next thing I knew I had build a coaster that was fully automated using the code found in the ardino folder. However I wanted it to become connected to the internet of things. Using the knowledge and the tools availible I was able to do it using only javascript and some html and css.
- Computer Mac, Windows, Linux
- Arduino and Arduino IDE (or off brand works fine too)
- You will need to flash firmada to the Arduino in order for it to work with johnny-five.
- Node.js and npm installed on your computer
- npm install johhny-five
- npm install firebase
- A text editor of your choice I prefer Atom or DreamWeaver but Sublime or Adobe Brackets are two other popular choices
- Lots of jumper wires and 220ohm resistors
This was my first time using firebase, node.js, johhny-five, and arduinos! So there are probably several errors or ways to simplify the code!
- HTML
- CSS
- Javascript
- Some basic knowledge of databases and JSON data
Keep (app.js, index.html, & coasterStyles.css) together! coasterBrain.js will need the dependecies specified in the package.JSON file. It also must connected to the arduino!