Skip to content

Latest commit

 

History

History
 
 

webserver

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Webserver

Spins up a webserver on http://localhost:3000. Lights up the LED for 1 second for every request and performs a POST request on button press.

Requirements

  • Arduino (Nano)
  • breadboard
  • jumper wires
  • 1x red LED
  • 1x 220Ω resistor (Red-Red-Brown)
  • 1x 1kΩ resistor (Brown-Black-Red)
  • 1x button

Wire up

Instructions

  1. Update the code in webserver/index.js by changing POST_URL to a valid URL. For example a RequestBin
  2. Create the wire up setup shown above
  3. Connect Arduino to your laptop
  4. Run npm run webserver
  5. Go to http://localhost:3000