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
Arduino
  • Products
  • More
Arduino
Arduino Forum Can someone explain how this V-USB circuit works?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 7 replies
  • Subscribers 395 subscribers
  • Views 1962 views
  • Users 0 members are here
  • v-usb
  • usb
  • Design
  • attiny
  • arduino
  • vusb
Related

Can someone explain how this V-USB circuit works?

Former Member
Former Member over 11 years ago

Hi everyone,

 

http://www.practicalarduino.com/pics/virtual-usb-keyboard-schematic.jpg

I'm attempting to learn how to communicate with Atmel chips such as the Attiny85 without having to use a serial-to-USB converter. I'm fairly new to electronics circuit design, and I am having trouble understanding what role the zener diodes and resistors have in the communication between the 5V MCU and USB. If you can, please explain why certain resistances and zener diode ratings are used in this situation(and why zener diodes work and regular diodes don't)

 

Thanks in advance,

Tom

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

    Tom,

     

    The difference between a zener diode and a plane old vanilla diode is that a zener will break down and conduct current when a reverse voltage exceeds a threshold. In your diagram, if we drive DIO2 with a voltage > 3.6 volts, then the zener will turn on limiting D-/D+ to ~3.6 V.

    The 68 ohm resistors will help to limit the amount of current flowing through the reversed biased diode. If we are driving the signal with 5V, then the current thought the zener will be limited to approximately 20 mA. In addition, the resistors will help slow the output signal down a bit, decreasing ringing/emi/etc.

    The 2.2k DIO5 resistor probably is used to indicate a low speed usb device.

     

    Best Regards,

     

    Argus

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

    Will it work with a 100 ohm resistor instead of the 68 ohm? I just bought this Attiny85 and I have some spare resistors to try it but I am not sure if 100 ohms will work the same as I don't have any 68 ohm.

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

    It wont be ideal but should work if wiring is short, so if your doing this on a breadboard or similar then it should be ok (Functional)

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

    @Tom

     

    For a quick lash up there is no need to worry about the zeners (except that you probably don't need them at all.)

     

    The usual reason for adding some kind of voltage clamping to USB data lines is to ensure that they will pass EMC testing. One of the tests is to apply high voltage discharges to the signal lines to simulate the kind of thing that will happen if you touch one with a finger while you are carrying  a static charge. In dry conditions with some kinds of carpet this can happen often. Test specs vary but typically you might expect to apply 8kV from a 100pF capacitor via a 1500ohm resistor (simulated Human Body Discharge Human-body model - Wikipedia, the free encyclopedia) . The initial current into your USB line will be about 5.3A and a typical 3.6V 400mW zener will have a dynamic resistance of about 24ohms so the voltage across the zener will rise to over 100V (in real life it might not be quite so bad because of the zener's self capacity). Zeners are no use in this application. There are lots of transient protection devices available which WILL clamp the HBD but they don't work very well without careful pcb layout - on breadboard just don't bother.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • michaelkellett
    michaelkellett over 11 years ago in reply to Robert Peter Oakes

    @Tom

     

    For a quick lash up there is no need to worry about the zeners (except that you probably don't need them at all.)

     

    The usual reason for adding some kind of voltage clamping to USB data lines is to ensure that they will pass EMC testing. One of the tests is to apply high voltage discharges to the signal lines to simulate the kind of thing that will happen if you touch one with a finger while you are carrying  a static charge. In dry conditions with some kinds of carpet this can happen often. Test specs vary but typically you might expect to apply 8kV from a 100pF capacitor via a 1500ohm resistor (simulated Human Body Discharge Human-body model - Wikipedia, the free encyclopedia) . The initial current into your USB line will be about 5.3A and a typical 3.6V 400mW zener will have a dynamic resistance of about 24ohms so the voltage across the zener will rise to over 100V (in real life it might not be quite so bad because of the zener's self capacity). Zeners are no use in this application. There are lots of transient protection devices available which WILL clamp the HBD but they don't work very well without careful pcb layout - on breadboard just don't bother.

     

    MK

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