{"id":2290,"date":"2014-09-15T10:39:38","date_gmt":"2014-09-15T17:39:38","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=2290"},"modified":"2026-09-09T03:21:39","modified_gmt":"2026-09-09T10:21:39","slug":"proximity-sensing-leds-part-1-on-a-breadboard","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/proximity-sensing-leds-part-1-on-a-breadboard\/","title":{"rendered":"Proximity-Sensing LEDs: On a Breadboard and On a PCB"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Who doesn&#8217;t love interactive LEDs? This project started because I wanted to make a simple circuit that I could later move on to a printed circuit board (PCB) that I designed myself. (The original goal was to learn PCB design and layout.) This idea was given to me by my manager, Larissa, and was inspired by Evil Mad Science&#8217;s <\/span><a href=\"https:\/\/www.youtube.com\/watch?v=6WkqYltIJJU\"><span style=\"font-weight: 400;\">Octolively<\/span><\/a><span style=\"font-weight: 400;\">. Being an analog enthusiast, I came up with my own design that doesn&#8217;t use any ICs. You can see it in action in the GIF below.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Demo.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2291 aligncenter\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Demo.gif\" alt=\"Demo\" width=\"360\" height=\"202\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">How does it work? Each LED is grouped with an infrared (IR) LED and a photo-transistor. When a photo-transistor &#8220;sees&#8221; a certain wavelength of light, it is gated and turns on, allowing current to flow through it. I chose an IR LED that emits the same wavelength of light that the photo-transistor is configured to receive. As an object moves over the LEDs, the IR light coming from the IR LED reflects off of the object and back to the circuit. The photo-transistor receives the reflected IR light and turns on, allowing current to flow through it to the blue LED, turning it on. If you want to build one yourself, check out<\/span><a href=\"https:\/\/www.instructables.com\/Motion-Sensing-LEDs\/\"> <span style=\"font-weight: 400;\">this Instructable<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Part 2: On a PCB<\/b><\/p>\n<p><span style=\"font-weight: 400;\">As I mentioned, the plan was to eventually move this circuit to a PCB. The design process went well, and the circuit worked great on the PCB.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This was my first experience with PCB layout, and thankfully it was successful! The board I designed is in the picture below. We ordered 6 &#8220;prints&#8221; and soldered them in our MakerSpace. I also included extra vias (electrical connections between the layers of the board) so that we could connect multiple boards together.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2721\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1.jpg\" alt=\"blog_photo\" width=\"600\" height=\"240\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1.jpg 2976w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1-600x240.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1-1024x410.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1-225x90.jpg 225w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/blog_photo1-800x320.jpg 800w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/span><\/p>\n<p><span style=\"font-weight: 400;\">I used CadSoft&#8217;s EAGLE software to do the layout, and CadSoft offers a freeware version of EAGLE so anyone can do this! If you&#8217;re interested in learning PCB layout, I posted an<\/span><a href=\"http:\/\/www.instructables.com\/id\/Basic-PCB-Design-in-EAGLE-Part-2-of-Proximity-Sens\/\"> <span style=\"font-weight: 400;\">Instructable<\/span><\/a><span style=\"font-weight: 400;\"> on my design process. A PCB layout course was also taught in the MakerSpace around this time.<\/span><\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-2290 jlk' data-task='like' data-post_id='2290' data-nonce='9ed1c2aa61' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-2290 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-2290 jlk' data-task='unlike' data-post_id='2290' data-nonce='9ed1c2aa61' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-2290 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-2290 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Who doesn&#8217;t love interactive LEDs? This project started because I wanted to make a simple circuit that I could later move on to a printed circuit board (PCB) that I designed myself. (The original goal was to learn PCB design and layout.) This idea was given to me by my manager, Larissa, and was inspired by Evil Mad Science&#8217;s Octolively. Being an analog enthusiast, I came up with my own design that doesn&#8217;t use any ICs. <\/p>\n","protected":false},"author":16,"featured_media":2291,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1563],"tags":[72],"ppma_author":[4467],"class_list":["post-2290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide","tag-design"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/Demo.gif","jetpack_sharing_enabled":true,"authors":[{"term_id":4467,"user_id":16,"is_guest":0,"slug":"wwadkins","display_name":"William Wadkins","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/f23af17e3f0aa5cdce4db10c96eb005614c30853a9579a999104e070cf86df4c?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Wadkins","last_name_2":"","first_name":"William","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/2290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=2290"}],"version-history":[{"count":3,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/2290\/revisions"}],"predecessor-version":[{"id":32586,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/2290\/revisions\/32586"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/2291"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=2290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=2290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=2290"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=2290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}