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
      •  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
Test & Tools
  • Technologies
  • More
Test & Tools
Forum looking for the right IR emitter, receiver, and help with OR(ing)
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 16 replies
  • Subscribers 359 subscribers
  • Views 1488 views
  • Users 0 members are here
  • small
  • pin
  • series
  • project
  • emitter
  • wiring
  • receiver
  • many
  • led
  • ir
  • arduino
  • or
  • 40
Related

looking for the right IR emitter, receiver, and help with OR(ing)

14corman
14corman over 11 years ago

I am working on a project that has 40 receivers and 40 emitters working together and I was wondering if anyone would know of the best ones to get? I am looking for ones that are 90 degrees so I don't have to worry about alignment in the z axis just the X and Y. Also I would like them to be fairly powerful because the beam will be traveling over 60 inches. I was also wondering as a side note if anyone would know of a good way to OR them all together? My only thing i can think of is using 10 74ls32's in series to OR all 40 IRs. My project is being able to sense an object in the path of any of these 40 IRs so I just want there to be a 1 when any 1 of them gets triggered. I am looking to put that into an arudino uno so that is why I am trying to get the least number of pins needed as possible and as of right now that will get me down to one, but it will require a lot of wiring.

 

thank you for your help.

  • Sign in to reply
  • Cancel
Parents
  • dougw
    0 dougw over 11 years ago

    Hi Cory,

    If I understand what you want correctly, you need 40 light sensors with just one output - if any sensor loses light (interrupted beam) the output triggers.

    If you could explain the geometry of how they are positioned hand how large is the interrupting object it might help us to optimize. If they are close together, you may get light from multiple sources hitting each detector. If this is outside, then sunlight may saturate all detectors -you might have to modulate the light to differentiate it from ambient light.

    1) If you could have retro reflectors on the object and use light sources beside each detector - then the trigger would occur when a light was received instead if interrupted. Then you could simply use photo transistors or photo darlingtons (more sensitive) for detection and they can all be "ORed" simply by connecting all of their collectors to the same pull-up resistor. (parallel open collector configuration) If any photo darlington gets some reflected light the output will go low.

    2) This could also be done with light interruption as well by connecting the output of each sensor to an open-collector transistor, but this requires wiring up an extra 40 transistors.

    3) If the speed of the object is not too great, you could use cadmium sulfide detectors or cadmium selenium which is better for IR. Just connect them all in series (a single daisy chain = minimum pins and connections). Since they can be less than 1K ohm when lit up and 20K when dark, you just need a single pull-up resistor and a comparator to detect an "ORed" interruption trigger. You might even get away with using a transistor instead of a comparator - you could adjust the threshold using diodes or a zener.

    Doug

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

    The object is a ping pong ball. I am building a ping pong table that will be inside. Once I did all the math I realized I need 40 sensors on either side of the table and each would be about 1.5 inches apart so no mater where the ball lands on either side it will always trip a beam. I am looking for the ball to just be recognized that it hit the table on whichever side it does land on which is why i just need the l/0 output for either side.

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

    The diode OR sounds promising.

    It just so happens I just finished building a sensitive shock sensor. In addition to an output it illuminates an LED when it detects a vibration.

    It can detect a pin drop from a couple of mm.

    To provide some indication of whether this could work for your application, I jammed the sensor on the underside of my dinning room table (I don't have a ping pong table) and bounced a ping pong ball on the table.

    In the video you can see the circuit board powered by a USB battery at the far side of the table where the sensor is. And you can see the LED flash when the  ball hits the table. The sensor could be made more sensitive since there is an amplifier in my circuit - I just don't need more sensitivity for my application. Attachment to the table could also be improved, I just stuck it in a crack.

    Note that this table is split in the center to allow extra leaves to be inserted. When I bounce the ball on the other side of the split the impact is not detected. This would be ideal for ping pong tables that have two separate halves.

    Doug

     

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

     

    Ping pong sensor

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

    not sure but I would think there is a need for separation of sensors across the net, if the idea is to detect if a player indeed cleared the net and hit the table, bouncing on your own side may not count after it has just arrived ?

     

    just a thought, so is it possible to have each side separated without a gap in the table ?

     

     

    LOL, sorry Doug, for some reason I did not see the last line of your post, ignore me lol

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

    Well this gets into the system design choices that depend on accuracy requirements, cost, complexity and some unknowns that may need to be tested. You could probably use either amplitude or propagation speed to determine which court was impacted.

    With a single sensor in each court, you could determine which signal was larger to determine which court was impacted. There might be ambiguity near the net, so. this may need careful calibration for impacts near the net.

    If propagation delay is used, the first sensor to trigger would "win" and indicate which court was impacted. Basically the first trigger would "lockout" the other one for some period.

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

    yes i was planning on having a separation as my goal is to make this look as much like a ping pong table as possible. What is the schematic for the circuit you are using or where did you buy it? I will give that a shot as I said I have successfully managed to hook up 3 IR sensors in series to one pin using a diode for each sensor and so far it is working perfectly, but your idea of the vibration circuit is very interesting I could theoretically stick one to the bottom of each side, and that would be much cheaper than buying and wiring 40 IR emitters and 40 IR receivers since i only have to buy a few parts to make the boards.Here I show the 3 sensor test that I have set up now. It's not the cleanest I just wanted to see if it would work first.

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

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

    As for the rules, they would be standard so the system on which I detect the ball wouldn't matter. If the ball hits one side more than once than it is a point to the other person. if the ball hits the net and goes over then that would count. This is where the one of the only faults i see with the shock detector method. If the ball gently lands on the side( for instance it hits the net but gently falls over so it lands bounces maybe once then roles) then that may be a problem. I have thought about that and was going to add to the code to prevent a problem like that with the IR method anyways so it's not a big deal because that is still easier and cheaper.

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

    I'm pretty sure a sensor could be set up to detect a ball falling just a couple of inches.

    It is definitely an inexpensive sensor.

    I would prefer to wait on publishing the circuit until the person I designed it for has had a chance to publish her research paper. Not a question of rights and it is a completely different application, its just a courtesy. I will discuss it with her.

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

    Yes, I was thinking it could be detected, if I could replace 80 sensors with 2 chips that would save me a lot of money. So, since it would be less expensive I could at least build the circuit and test it to see if it works. If it doesn't then I wont lose much money , and I could probably find a way to use it later with another project. I don't mean to sound pushy if I do I'm sorry, but do you happen to know when she has to turn the paper in? I do understand and it is fine for me to wait on her to turn it in though. This table is actually tuned down because my original design was to make a grid of IR sensors for each side to make a grid so the machine knew exactly where the ball was then where it landed make an animation at that location, but I couldn't afford it so I settled with just being able to sense the ball altogether. That is why I started out thinking the IR sensors were best. I will continue to work on that IR method while I wait because in the future when I do have the money( I'm talking 10-15 years) to build the table the original way I will be able to just build it and not worry if it will work or not. Thank you for telling me about your circuit though it will be nice to see if it will be able to see if it will work which I'm pretty sure it will.

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

    If you had one of these shock sensors under each corner of the table, you could use time-of-arrival of the shock wave to determine X-Y ratios and pinpoint where the ball hit.

    You might be able to do everything with 4 microphones instead. They could detect both the ball hitting the bat and the table, giving you position of when and where the bat hit the ball and when and where it hit the table. This also gives you velocity and direction of the ball. If you want a better idea of what height the ball hit the bat you would need at least one more microphone. Of course, you would also need to  figure out how to prevent or ignore other sounds.

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

    That is  a good idea. Thank you. Not only would that save me time but money as well. I think my best bet would would be the sock sensor. I don't think I would be able to do the microphone idea because it can get pretty loud when playing unless I can find the frequency range that comes when a ball hits the table. I will be waiting to see about that shock sensor though so because as of right now that is the easiest and cheapest way I can think of. Thank you again for the help.

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

    The shock sensor solution gives you some information about how fast the ball is travelling - just by the time between ball strikes on the table. It wouldn't be super accurate, because you don't know exactly where the bat is, but still pretty useful for simulating the action. And if you know where the ball hits on both sides and the rough speed, you actually know roughly where the ball gets hit from.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • dougw
    0 dougw over 11 years ago in reply to 14corman

    The shock sensor solution gives you some information about how fast the ball is travelling - just by the time between ball strikes on the table. It wouldn't be super accurate, because you don't know exactly where the bat is, but still pretty useful for simulating the action. And if you know where the ball hits on both sides and the rough speed, you actually know roughly where the ball gets hit from.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • 14corman
    0 14corman over 11 years ago in reply to dougw

    That would be for later on down the road when I can afford the parts for that advanced project. The version I am making just needs to know if the ball hits the table and which side it hit. so I could just have a shock sensor on each side and that could detect if the ball hits that side or not. As for the advanced project, my goal was to have big tvs act as a monitor for each side so 2 tvs total and I could have them show the animations to where the ball would hit. That is why I can not afford it right now, and so I am just settling with making this version.

    • 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