Skip to content

OpenTechSchool/wildemoehre

Repository files navigation

Arduino <> Node.js <> Websocket <> Browser

This Project connects an Arduino with a simple button to a tone-producing browser app through a Node.js websocket connection.

Getting Started

You need:

  • Node.js - i used version 8.9.3 when i created this.
  • the Arduino IDE
  • an Arduino
  • a breadboard
  • a 10k resistor
  • a button
  • a bunch of jumper cables.

Go to your Console/Bash/Terminal. Clone this repository, cd into it and install like this:

git clone https://github.com/OpenTechSchool/wildemoehre.git
cd wildemoehre
npm install
npm start

Now open http://localhost:3000 in a mordernish browser that supports the Web Audio API. Look up your IP address in the local network and go to http://{yourcomputersIP}:3000 with your phone or other computers. Turn on sound, press the button.

Connect your Arduino through USB, get it wired like this:

How To Wire your parts

And load the TriggerButtonSerial.ino onto the Arduino. Press Button while devices are still on that site. Modify code & have fun.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published