element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents How to Make a Basketball Auto Score Keeper Using Colour Sensing -- Episode 579
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 28 Nov 2022 3:37 PM Date Created
  • Last Updated Last Updated: 2 Dec 2022 8:24 AM
  • Views 15839 views
  • Likes 8 likes
  • Comments 12 comments

How to Make a Basketball Auto Score Keeper Using Colour Sensing -- Episode 579

Everything is a competition at Lorraine’s home and work, especially when it comes to throwing balls into basketball hoops. Watch as she upgrades it to automatically detect who has scored a basket using a colour sensor, a micro:bit and multi-coloured balls.

Watch the Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Supplemental Content:

  • Episode 579 Resources
  • Adafruit micro:bit tutorial
  • Adafruit colour sensor code

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
micro:bit version 1 BBC 2 Buy Now
DF Robot Sensor Board, RGB Colour DFROBOT 1 Buy Now
RGB LED strip 1 metre MULTICOMP PRO 1 Buy Now
Male to female jumper wires MULTICOMP PRO 1 Buy Now
Pin Header AMP _ TE CONNECTIVITY 1 Buy Now
Kitronik Edge Connector Kitronik 1 Buy Now
 

Additional Parts:

Basketball hoop
Coloured balls

element14 presents

element14 presents  |  About Lorraine |  Project Videos

  • micro:bit
  • e14p_LU
  • Basketball score keeper
  • Colour sensing
  • colour sensor
  • basketball
  • friday_release
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply
  • lorrainbow
    lorrainbow over 2 years ago in reply to dougw

    aw, I remember these!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lorrainbow
    lorrainbow over 2 years ago in reply to beacon_dave

    Yeah, ambient light does make a difference. The sensor definitely acted different outside in the dark to inside in the light

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to dougw

    If using bean bags, or specific 'balls', then slipping an RFID tag inside might be another way to do it.

    Slip the micro:bit inside and you could use its magnetometer to detect the hoop whilst using the accelerometer to track its flight profile. Transmit this data to a paired mobile device to get training feedback. Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 2 years ago in reply to dougw

    I recall that SparkFun did one of these a while back with built-in scoreboard

    https://www.youtube.com/watch?v=F-GyVX0CfeI&t=6s

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 2 years ago

    If you are looking for ideas, your scoring system would work great on one of those bean-bag games...

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lorrainbow
    lorrainbow over 2 years ago in reply to DAB

    Thanks DAB. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lorrainbow
    lorrainbow over 2 years ago in reply to dougw

    Yeah, I'd have to calibrate against the exact colours of the balls.. which isn't unreasonable 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • lorrainbow
    lorrainbow over 2 years ago in reply to beacon_dave

    Oh yeah, my clock would make a great scoreboard! 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 2 years ago

    Nice project.

    Getting proper spectral detection is not easy.

    You might try using a Hue and Saturation approach.

    It might give you a better discrimination of the objects.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dougw
    dougw over 2 years ago

    It looks like it will work well if the balls fit the hoop and they have good colors. It might be easier to just use RED, NOT RED and DARK, if the green ball is not a really saturated green.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube