element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Dancing traffic light
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 5 replies
  • Answers 2 answers
  • Subscribers 673 subscribers
  • Views 606 views
  • Users 0 members are here
  • raspberry_pi
  • raspberry-pi
  • matlab
  • simulink
Related

Dancing traffic light

anujaapte
anujaapte over 11 years ago

Madhu here! For this week’s post I will discuss a video that I came across on Youtube. I assume everyone would agree that this is a cool concept, but how did they implement this?


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

 

I will present my thoughts here and it would be great to discuss alternative approaches with all of you – My hunch is that the booth is equipped either with a video recorder or some sort of a motion detector.

 

The video recorder route can be relatively simple with a raspberry pi because of its processing power. The background is of a certain color, which means that there has to be a unique RGB weight that can be used to extract the person accurately. Once you have a sequence of images in which you know where the person is, then turning ON and OFF the appropriate LEDs at certain frame rate is not a hard problem. Implementing this in real-time would be much more challenging which makes me believe that they went with the second guess – the motion detector.

 

Motion sensors can detect joints easily and would be ideal for this application, but they do not work effectively outdoors (which is probably why they chose an indoor booth).


For more inspiration check out this video created by my colleague Bharath that teaches MATLAB enthusiasts how to implement similar ideas using a Kinect sensor (in Real-time). 

  • Sign in to reply
  • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    I love the concept as a safety add-on and it looks cool too, as for the implementation, a very low resolution camera (64*64)  is all that is needed and only Black and white, a simple comparator to convert to an on or off for the relevant LED. There is no need for colour as the lower display always uses green and the upper RED, to the system it is all black and white with NO shades in-between

     

    as such you would not even technically need a micro-controller but then where is the fun in that

     

    even an Arduino UNO would be fast enough to capture the relatively low frequency / resolution video and convert it in real time to the LED output stream

     

    Thats my thought

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Problemchild
    0 Problemchild over 11 years ago

    More likely a low resolution camera which has a threshold applied to it then those bits streamed into the LED array.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to Problemchild

    Snap image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 11 years ago in reply to Problemchild

    Indeed Peter the simplest is often the best couldn't think of why you would need to make it complicated!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 11 years ago in reply to Problemchild

    Just storing some footage 64x64 and playing it back would make for some interesting Redlights maybe even have competions to "collect" all the variations about the city image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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