in Development, DIY, Javascript

Foosball Scoreboard using node and Johnny-Five

 

We are quite competitive when it comes to foosball at the office, we try to mentally keep track of scores and wins over a few weeks span but that never works out. We wanted a method of tracking points that din’t involve us writing it down.

This is when we came up with the idea of building a mobile website that we would use on our phones to track game scores and stats.

Being an amateur hardware hacker, I decided to take it a step further and automate the scoring with an Arduino (To be replaced with a raspberry pi on final version) to send and receive information from the table to web page scoreboard, I used the Socket.IO library and Johnny-five library. It allowed me to capture events from the Arduino sensors mounted on the table and send them in real time to the scoreboard and also form the scoreboard back to the Arduino.

Communication

Server to Arduino communication

Using the Johnny-Five library, when the ball goes down the goals it brakes the laser and triggers a switch that lets the server know that a point was scored.

Server/Client communication

We are using socket.io to send information from the server in real time to the scoreboard web page.

 

Counting points

Counting PointsTo count the point a pair of lasers and photo resistors wired to an Arduino where used as buttons to trigger a function in my application to add points for each team. When the ball cuts the laser it interrupts a switch and Johnny-five on the server records the change of state and triggers a goal!

 

 

The project is still ongoing but currently on hold as other priorities have taken over but work on this should resume shortly.

Webmentions

  • Hermes Italia Borse

    Hermes Italia Borse

    The post is written in very a good manner and it entails much useful information for me.UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the…

  • http://www.uogonline.com/moodle/course/view.php?id=6

    http://www.uogonline.com/moodle/course/view.php?id=6

    sve take.Very good, thanks for sharingUOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the Elementary Level, S. WardPD894-Infusing Methodolo…

  • Hermes Outlet Online Italia

    Hermes Outlet Online Italia

    It is appropriate time to make some plans for the future and it’s time to be happy.UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the Ele…

  • CariPac Summer Internship 2012

    CariPac Summer Internship 2012

    from you in the future as well. In fact your creative writing abilities has inspired me.UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the…

  • http://www.uogonline.com/moodle/course/view.php?id=11

    http://www.uogonline.com/moodle/course/view.php?id=11

    This excellent article assisted me very much!UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the Elementary Level, S. WardPD894-Infusing Me…

  • Section 504 of the Rehabilitation Act of 1973: Support for Students with Disabilities

    Section 504 of the Rehabilitation Act of 1973: Support for Students with Disabilities

    That would work perfectly as a title. This thing doesn’t come out until August, so there’s still time, marketing people!UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIn…

  • Hermes Kelly 32 Price

    Hermes Kelly 32 Price

    Thanks for sharing. I want to appreciate writers’ valuable effortsUOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the Elementary Level, S.…

  • CDE Moodle

    CDE Moodle

    Nice job, I really like how your site looks.UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the Elementary Level, S. WardPD894-Infusing Met…

  • Hermes Kelly

    Hermes Kelly

    Thanks for sharing. I want to appreciate writers’ valuable effortsUOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the Elementary Level, S.…

  • Hermes Belts

    Hermes Belts

    from you in the future as well. In fact your creative writing abilities has inspired me.UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical Education at the…

  • Replica Hermes Bags

    Replica Hermes Bags

    Just a quick note to let you know that I appreciated your insights about the topic. Quite helpful for what I am interested in these days.UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Hea…

  • Hermes Belts

    Hermes Belts

    Maybe you could write next articles referring to this article. I want to read even more things about it!UOG TADEOCDE MoodleWERI Professional Development CourseCariPac Summer Internship 2012PD894-Comprehensive School Health EducationIncreasing Physical…

  • Hermes Kelly

    Hermes Kelly

    Hermes Outlet lying in her birthday suit on a white sandy beach.It is Androgyny 鈥?Yes.and dismissal.Related Articles The First Herm猫s Birkin Bag Under How to Spot a Well-Made Hermes Bombay Handbag,Click Here To Buy the right type of designer handbag.an…