No description or website provided.
Dart
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.children
.gitignore
.project
Config.dart
README.md
dartDuinoClient2012.css
dartDuinoClient2012.dart
dartDuinoClient2012.html
dart_logo_grande.png

README.md

DartHackaton

We create a Quiz application for the DartHackaton realized at Globalcode in São Paulo, Brazil.

Hack in this project:

  • Júlio Saito (@saitodisse)
  • Luis Leão (@luisleao)
  • Marcio Camurati (@marciocamurati)
  • Rafael Brito

Demo video: http://youtu.be/M5wDBLSGOlE

Slides (pt-br): https://docs.google.com/presentation/d/1ZQ_j91lW0FWugcmvHpicE6DiS0-_6pEebie-d_e2YhU/edit

We created four applications that work integrated:

How it work?

The Backend controls the questions and answer, setting the current question, it connect in the serial proxy and creates one HttpServer to answer in JSON to the Frontend application. The Frontend connect to the Backend for make periodic requests with XMLHttpRequest, showing the current question or the end screen when the user answer all the questions. At the Arduino, when the user push one of the three buttons, it send the command to the serial port, answering the current question. Then the server send to Arduino if the answer is correct or not and the Arduino show a red or green light and turn on the bell.

JSON response example

{
    "question": "Question example 1?",
    "answers": [
        {
            "value": "Answer 1",
            "state": "N"
        },
        {
            "value": "Answer 2",
            "state": "N"
        },
        {
            "value": "Answer 3",
            "state": "C"
        }
    ],
    "status": true
}