On an impulse just before Christmas, I bought myself an NBA “over-the-door” mini basketball hoop. I wasn’t sure what I’d do with it, but having a basketball hoop for my office seemed like a good move. In the end I decided to experiment and bring some connectivity to it by hooking it up to a Raspberry Pi to give it a scoreboard display. Here’s how that went, with step-by-step instructions if you’d like to try to adapt and improve upon it!This tutorial isn’t intended to be used as a step-by-step “do exactly as I did” style guide — my hope is that you’ll take this concept and use it for all sorts of other ideas. Add a virtual scoreboard that counts how often people come into your office. Or go with a different sport (maybe a mini soccer goal tracker?). Or use an entirely different sensor but track hits on it visually with a Raspberry Pi!
There are so many potential applications of this technique. Try stuff and let me know how you go! What You’ll NeedIn order to be able to follow along and make something similar, here’s a list of the parts I used (or their equivalent for the things I had around my lab already):.
— I used an older version of this from 2015, if you’re going to buy one, get a newer version like this!. — if you are looking to install this yourself and have an SD card ready to go. — This is the mini basketball hoop I used. You could use a different one — especially if its net works better!. — This is my favourite display for the Raspberry Pi, it is a touchscreen, so you can interact with the UI without needing to connect up a mouse.
— To make the display look a bit nicer when all together with the Pi, I have my Pi in this black case. — I had a spare cheap clone HC-SR04 sensor around, but I’d recommend buying a good quality one.
SCOREBOARD CONFIGURATIONS FOR ANY VENUE. One sided, basic baseball scoreboards, prominent football scoreboards with detailed trusses, massive 360 degree, 4-Face video boards hanging at center court, or whatever scoreboard design you’ve had in mind, Nevco has the experience, consultative approach, and full product line to help you design a full scoring solution that best meets. After falling in replica handbags love with Beatrice,gucci replica handbag Pierre immediately worked hard. In 2009, after dropping out of college, he took over a hermes replica handbags construction company founded handbag replica by his father and became a replica handbags major shareholder. Later he became the vice president of the Monaco Yacht Club.
My one has occasional odd readings and is a bit temperamental.One thing to note — if you don’t have a 7 inch display for your Pi, you could display the score on a nearby computer monitor too. Any device on your local network with a web browser and a screen would work!
The CodeWant to skip to downloading the code? What I put togetherI hung my new basketball hoop up on a door with an ultrasonic sensor attached to the hoop to track when a ball goes into the hoop. Underneath is a Raspberry Pi powered scoreboard — I’d actually recommend finding longer cables so you can connect it outside of basketball falling range. Me testing out my connected scoreboard — with a customised Suns themed interface!I’ll go over why everything is as it is below — along with some suggestions for those who might want to improve upon this base!
Languages we’ll be using. JavaScript – In order to follow along, you’ll need a knowledge of the basics, but we won’t have lines upon lines of code, things are actually pretty simple in the JS side of things. Node.js – A basic knowledge of how to run npm and Node is needed to run our scoreboard server.Setting up our Raspberry PiIf you are completely new to the Raspberry Pi and haven’t set anything up yet, never fear! There are many guides out there for setting things up and it’s nice and straightforward. The Raspberry Pi foundation have for installing the Raspbian operating system using the NOOBS operating system manager. You’ll want to make sure the operating system is running before you get onto any of the other steps. Touchscreen setupI put together my connected scoreboard using a Raspberry Pi 3 with touchscreen.
My touchscreen and case were already put together and screwed down tight as I’ve used this Pi 3 before for other projects, however if you are starting from scratch — it isn’t too hard to connect up. Newer shipments (like mine) actually have a bunch of it already assembled, with the adapter board already screwed onto the LCD screen, if that’s the case, half the steps are already complete! Instructions on how to assemble the screen are available online:.
— these are the instructions which come with the screen in case you lose them!. — they explain the details of the process too. — they’ve got a good amount of detail and tips for setting up the screen and case to use in various situations.Case setupWhen it comes to putting the case around the LCD screen and Raspberry Pi, that process is also quite easy with the case I have. I already had mine together, however the general steps for this are:. Make sure you’ve already got your microUSB card inside the Raspberry Pi and are happy with how it’s running!
Annoyingly with a lot of cases, you can’t get the card out once the case is in place. My case linked above is one of those so make sure the card is all good before you lose access to it!. Place the Pi with screen into place inside the case. Arrange the ribbon cables and cables coming from the GPIO so they aren’t in the way. Make sure the holes for your USB ports and such are on the correct side of the bulkier part of the case and line up nicely.
Once everything is lined up nicely, screw in the four screws to put it all together!. Turn it on! If you find that the screen comes up upside down, don’t worry, it’s a side effect of the case manufacturers lining up the power to come out of the top. When I mounted my scoreboard though, I mounted it with the power coming out of the bottom, so this wasn’t an issue for me. If it is an issue for you:. Run sudo nano /boot/config.txt to open the config for the Pi. Then add lcdrotate=2 to the end, this will rotate the screen around.
Press Ctrl X and the Ctrl Y to save your changes. Restart your Pi and when it loads back up it should be the right way around!Running Node.js on our Raspberry PiConveniently, Raspbian has Node installed by default!
However, it is a rather old version of Node. You can check which version is installed on your Pi by opening up the Terminal and typing in:node -v. I then reattached that back to the wall, lining up the Pi in its case to ensure it is straight.
![Virtual Virtual](/uploads/1/2/5/5/125579780/503078719.png)
I stuck mine directly under the hoop — which in retrospect wasn’t the best spot for it. I’d recommend maybe putting it off to the side depending on the length of the jumper cables you’ve got. I gently detached the Pi case from the back once I had it lined up so that I could push down on the back of the case to stick it as firmly to the wall as I could.I was so worried about whether the Pi would stick that I placed a beanbag underneath the hoop just to be safe! Luckily, after over a week of it hanging there and being hit by a basketball numerous times it’s still hanging! That tape is magic.I attached my sensor initially with the same tape onto the hoop, but using tape meant I was limited to somewhere under the hoop that was flat enough to stick it to this ended up being a bit too low and the basketball net often interferred with tracking.
So this is how I’d recommend you not to stick the sensor!Instead, I took off the sensor from that spot and used blutack to stick it directly under the hoop. My more successful placement of the ultrasonic sensor!The net still managed to get in the way, so I used one of the cable ties from the NBA hoop packaging to tie some of the net together to avoid interference:It’s still not perfect, but seemed to help a little!I also used one of those cable ties to keep the cables connecting up the ultrasonic sensor together. Those cable ties are super handy. In ActionTo run everything, we need to run the Node.js server using the sudo keyword as our Node app needs solid permissions to be allowed to access the GPIO pins. To run our Node.js server, we enter the following. Sudo node index.jsThat should run and look like so in the console:If we open up our Raspberry Pi’s browser and go to we should see our scoreboard ready to count!I personally prefer Chromium on my Raspberry Pi as I prefer its full screen mode and more up to date browser.
If you don’t have Chromium on your Raspberry Pi, it’s simple to install with two commands:The usual: sudo apt-get updateFollowed by: sudo apt-get install chromium-browser -yesIt should then be visible within the “Internet” section of your Pi’s menu. My Suns themed version of the scoreboard ConclusionIn the end, the basketball hoop score tracking works alright, but could definitely be taken to the next level. I’m tempted to purchase an to see whether it tracks more accurately.
There’s also a lot more that can be done with the browser-based scoreboard — you could add a countdown timer, or two player mode so you can take turns with a friend!If you build something similar with my initial concept above, I’d love to hear about what you’ve built! Let me know in the comments below, or get in touch with me on Twitter at. Other Raspberry Pi guides at SitePointIf you are keen on doing more with your Raspberry Pi, we’ve got other neat articles around Raspberry Pi tinkering below!.
Top 4 Download periodically updates software information of scoreboard full versions from the publishers,but some information may be slightly out-of-date.Using warez version, crack, warez passwords, patches, serial numbers, registration codes, key generator, pirate key, keymaker or keygen forscoreboard license key is illegal.