TobseF/Arduino-Countdown-Timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ArduinoESP8266WiFiaRESTSoftwareSerial

This countdown timer is part of an ExitGame where payers have to deactivate a bomb by coding challenges.
The timer runs a second based countdown in the format "00:00".
The countdown can be controlled by a REST interface.

7-Segment-Image

The code runs on an Arduino compatible Adafruit Feather HUZZAH with ESP8266.
It controls a SparkFun 7-Segment Serial Display. So wee don't need to manual control each segment. Instead serial data can be sent.

NameMethodParamDescription
startGETtime [ms]Starts the countdown timer with the given time.
stopGETtime [ms]Stops the countdown timer and displays the finish time.
resumeGET-Restarts the countdown.
disableGET-Deactivates the timer, so all lights are off.
  1. Install Arduino IDE
  2. Setup the Arduino IDE for the Adafruit Feather HUZZAH
  3. Install the aREST lib:
    Tools > Manage Libraries.. Search & install aREST (v2.7.5 by Marco Schwartz)
  4. Open the timer.ino in the Arduino IDE.
  5. Change the variables ssid and password to match your W-LAN credentials.
  6. Verify, Compile & Upload the sketch to the board.
  7. Connect the the Feather board with the 7-Segment Serial Display. Add a 5V power supply:
    The timer shows "Connecting" and "Ready" after connecting to a WLAN.
Feather - PINConnect7 Segment - PIN
VCCUSB
GNDGND
RX16
  1. Test the timer by sending a GET to it's IP with start?time=120000.

About

⏲ Countdown timer for Arduino and the SparkFun 7-Segment Serial Display controlled by REST

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages