This project is to help you get up-and-running with Arduino, the popular open-source electronics platform based on easy-to-use hardware and software. Once you are set up you can pair-up with the other hardware hackers at our weekly meetups.
- Laptop (running macOS, Linux or Windows)
- USB Port
- Atom with:
- Script package
- Standard linter package (recommended)
- Node.js
- Arduino Uno (or compatible board)
- Breadboard
- LED Lights
- Resistors
- Jumper Cables
Note: If you don't have any of those, don't worry you can share with someone else at the meetup. 😄
In a medium sauce pan...
- take your laptop out of the medium sauce pan
- In the terminal, do:
npm install -g johnny-five
- Install Atom. Oh, and
apm install script
you'll be wanting that. - If you're running Ubuntu or another Linux distro, In the terminal, do:
whoami
Make careful note of who you are.sudo usermod -a -G dialout <whoyouare>
(whoami
told you this.)
- If you're on a mac, you don't have to shave the yak in step 4.
- Keep your laptop out of the sauce pan.
- Fork and clone this repo.
- In the terminal, do:
cd arduino-basic
- In the terminal, do:
atom .
- Plug the Arduino into a convenient USB port on your laptop. (It ought to be set up with the LED and everything already.)
- In atom, open
strobe.js
- Click anywhere in the code editor and then type the magic command keys:
- macOS:
⌘I
- Linux:
SHIFT-CTRL-B
- Windows: coming soon
Extra credit: Star this repo
This incantation should make the light on the Arduino blink repeatedly. You have now used JS and Johnny 5 to make a physical thing do a thing!
What!? It didn't do the thing?! Raise an issue! Clearly we didn't 'splain it right!