Giter Club home page Giter Club logo

dartduino2012's Introduction

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
}

dartduino2012's People

Contributors

julio-saito-linx avatar luisleao avatar marciocamurati avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.