Connecting multiple microcontrollers in one USB

Discussion in 'The Projects Forum' started by encrypted05, Dec 13, 2014.

  1. encrypted05

    Thread Starter New Member

    Nov 24, 2014
    6
    0
    Hello! We will be creating a project wherein we will be using 10 US-100 Ultrasonic Sensors, 10 servo motors, 2 DC motors, and 2 solenoids which is why we will be using multiple microcontrollers. Would it be possible to connect all those in order for it to be plugged in a computer in just one USB?
     
  2. blocco a spirale

    AAC Fanatic!

    Jun 18, 2008
    1,440
    368
    Yes.
     
  3. ScottWang

    Moderator

    Aug 23, 2012
    4,855
    767
    How much current do you need?
    usb 1.0 -- 100mA.
    usb 2.0 -- 500mA.
    usb 3.0 -- 900mA.
    usb 3.1 -- 1500mA, 2A, 3A, 5A.
     
  4. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,398
    497
    Connect them to USB Hub, connect USB Hub to the computer. I think that would be by far the easiest way to do it.
     
    Last edited: Dec 13, 2014
    encrypted05 likes this.
  5. MrChips

    Moderator

    Oct 2, 2009
    12,449
    3,365
    Yes, I do it all the time. You have to create a LAN with some kind of protocol, i.e. :

    [start character] [device address] [message] [checksum] [end character]

    I use Silicon Labs CP2102 UART-USB bridge.

    All microcontrollers connect in parallel to RXD and TXD.
    All microcontrollers receive all messages but only act upon a message addressed to it.
    All microcontrollers' TXD are disabled until it is required to send.
     
    encrypted05 likes this.
  6. encrypted05

    Thread Starter New Member

    Nov 24, 2014
    6
    0
    I'll try what you guys said and I'll let you know which one worked best. Thanks a lot! :)
     
Loading...