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 PI Protection Guaranty!
  • 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
  • Replies 4 replies
  • Subscribers 677 subscribers
  • Views 696 views
  • Users 0 members are here
  • pi
  • raspberry_pi
Related

PI Protection Guaranty!

Former Member
Former Member over 11 years ago

Si I recently fried my first Pi. I would be less heart broken if it wasnt because I actually had the nerve to snip a wire on a project board while everything was up and running. ( kick me) needless to say, metal scissors and microprocessors dont mix. Nevertheless, it gave me a great idea for driving DC motors and relays safely using ambient light sensors and LED's.

 

length of black rubber hose,

electrical tape

ambient light sensor radioshack 4-pack, 2.79

loose pack of LED's (anything but ultraviolet)

appropriate transistors and resistors to get the job done.

 

 

cut the hose to 1/2" and insert the light sensor in one end, and an LED in the other. Make sure no light is leaking in behind the light sensor  OR the LED.  Drive the LED with your Pi( pulse width works fine) and drive the transistor with the light sensor. Then kick yourself for not thinking of this sooner! (I did),

 

I've been using this all day, and it seems to be working fine, and there is no physical connection to my sloppy project board and my pi what so ever.

  • Sign in to reply
  • Cancel
Parents
  • iagorubio
    iagorubio over 11 years ago

    Kudos my dear Ray, you have just invented the optocoupler image

     

    Opto-isolator - Wikipedia, the free encyclopedia

    http://uk.farnell.com/jsp/search/browse.jsp?N=2031+203598&Ntk=gensearch&Ntt=optocoupler&Ntx=mode+matchallpartial

     

    Anyway next time check the net for flyback diodes or clamp diodes.

     

    It's the "flyback" what fries your Pi. Any inductive load, DC motors and relays, send back voltage spikes when the magnetic field on its coils collapses, That is called "flyback".

     

    You can drive that voltage spike safely back to the inductive load by connecting some diodes inverted between the plus and minus wires of your motor. As they are inverted - they point to the plus wire - they normally don't drive any voltage, but when the voltage spike comes back from the motor, the charge in the ground wire suddenly is greater than in the plus wire so they suddenly invert polarity and drive the spike back to the motor opening a loop.

     

    Look at this schematic and forget about the IC.

     

    http://www.elektrotekno.com/userpix/6181_l298_2.jpg

     

     

    All those diodes D1 to D8 you see connecting ground to motor wires and to +Vs are flyback diodes to protect the IC from spikes.

     

    The easiest way to use them is to buy some darlington transistor arrays - that in the other hand can also help you to drive relays and DC motors with higer voltages than your Pi can handle - with those diodes built in.

     

    MIC5800YN - MICREL SEMICONDUCTOR - DARLINGTON ARRAY 4 LATCHED, 5800 | Farnell UK

    https://www.google.es/search?q=darlington+array+with+clamp+diodes

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • iagorubio
    iagorubio over 11 years ago

    Kudos my dear Ray, you have just invented the optocoupler image

     

    Opto-isolator - Wikipedia, the free encyclopedia

    http://uk.farnell.com/jsp/search/browse.jsp?N=2031+203598&Ntk=gensearch&Ntt=optocoupler&Ntx=mode+matchallpartial

     

    Anyway next time check the net for flyback diodes or clamp diodes.

     

    It's the "flyback" what fries your Pi. Any inductive load, DC motors and relays, send back voltage spikes when the magnetic field on its coils collapses, That is called "flyback".

     

    You can drive that voltage spike safely back to the inductive load by connecting some diodes inverted between the plus and minus wires of your motor. As they are inverted - they point to the plus wire - they normally don't drive any voltage, but when the voltage spike comes back from the motor, the charge in the ground wire suddenly is greater than in the plus wire so they suddenly invert polarity and drive the spike back to the motor opening a loop.

     

    Look at this schematic and forget about the IC.

     

    http://www.elektrotekno.com/userpix/6181_l298_2.jpg

     

     

    All those diodes D1 to D8 you see connecting ground to motor wires and to +Vs are flyback diodes to protect the IC from spikes.

     

    The easiest way to use them is to buy some darlington transistor arrays - that in the other hand can also help you to drive relays and DC motors with higer voltages than your Pi can handle - with those diodes built in.

     

    MIC5800YN - MICREL SEMICONDUCTOR - DARLINGTON ARRAY 4 LATCHED, 5800 | Farnell UK

    https://www.google.es/search?q=darlington+array+with+clamp+diodes

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • johnbeetem
    johnbeetem over 11 years ago in reply to iagorubio

    There's a good article on flyback diodes at Wikipedia: http://en.wikipedia.org/wiki/Flyback_diode

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to iagorubio

    I am familiar with 'flyback' I did some fuel cell experiments back in the day, and encountered several free energy concepts that try to capture collapsing fields and convert them into usable energy. I think that is the key to zero point, but I'm not going to unlock it in front of my pc. I fried my pi when i snipped the power and shorted it out. rookie mistake. as for the optocoupler. too bad I did'nt invent it first or I would be rich! nevertheless, i 're-invented' it, so I will pat my own back!

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