I want to add a port type B to arduino nano but I don't know what is the best way to connect it's pins to, to be easy in soldering, any suggestions?
Best regards,,
Why do you want to do this?
I moved to arduino nano while I have too many B-type wires for my project.
What do you mean by a "port type B", exactly? That is not specific enough to uniquely identify what you want.
Referring to.....??
The USB?
You want to 'convert'? (as in swap) out the micro usb port for a type-b usb? (WTF?) LOL
Like the same USB port on the Arduino UNO for example?
I would just look for an adapter if you really wanna use a regular USB cable
Yes, the same one in the arduino uno or mega. your idea is good to use a connector when you are talking about one or two up to 10-20 pieces but in my case, I want to make that for hundreds, so the best way is to solder the port with the arduino nano.
So please, if you know how to wire it tell me.
Can't.
The type-B socket won't fit between the vias of a Nano, and it has through-hole pins that interfere with the diode and traces under the board. And you can't make it mechanically strong.
Leo..
Wawa:
Can't.
The type-B socket won't fit between the vias of a Nano, and it has through-hole pins that interfere with the diode and traces under the board. And you can't make it mechanically strong.
Leo..
I don't want it to be strong, Just if you know how, tell me and I will deal with other things my self, like which pin have to be connected with which IC's pin over the arduino nano or so.
hsalame:
I don't want it to be strong...
You will sing another tune once you plug a much heavier type-B USB cable into it.
Compare the Uno and the Nano .pdf or Eagle shematic files to connect this socket.
They are right here on the Arduino site.
Leo..
I cannot see how you could replace the miniusb connector with a full size type b connector, and attach it firmly enough that the normal action of plugging and unplugging the cable and handling the board won't rip it off. You drastically underestimate how much of a problem this is (speaking from experience).
Mini-USB cables are like $2 each - assuming you can't find a geeky friend with a pile of excess cables who'll give you one (they were very common for cameras and the like before microusb became a standard, but outside of hobby electronics, they're rarely used now, so people have old ones they don't use).
They could have used a microUSB connector instead, but the SMD versions of those get ripped off the board (and it lifts the trace, making repair almost impossible) - they were designed for applications where there is a plastic housing with a tight-fitting hole for the USB connector which acts as strain relief, while the SMD miniUSB connectors generally have larger mounting tabs, and are way more durable, while the microUSB connectors with through-hole tabs for secure mounting would require an additional wave soldering step, significantly increasing the assembly costs. A full sized type B connector would have had the same issue with the extra wave soldering step, in addition to making the board bulkier.
The only way I can envision something like this succeeding is to butcher the full-size USB cable (cut off the type B end) and solder it to the board permanently (you'd have to figure out which pin was D+ and D- as there's no standard color, and put solder those to the appropriate pins of the serial adapter IC on the nano (if its a CH340G based clone, this is pretty easy - if it's an FTDI adapter, this is very hard, because the pitch is like twice as fine), +5v to the diode (the side away from the band), and Gnd to Gnd, and then apply copious amounts of hot-glue to keep the place where the wires are soldered down from flexing (the solder joint concentrates the stress, such that normal handling will rapidly break it). But this results in a nano with the cable permanently attached, which is probably very awkward. Roughly estimating how long it would take me (very experienced with electronics assembly and good at soldering), even if you value your time at minimum wage, it ain't worth it (and from the way you're asking the questions, it would take you longer than it would take me)
Sigh! The XY problem strikes yet again!
Thank you guys for your reply.
as I mentioned before, the best way to perform that in my project was connecting the port with the arduino. So, I used an avometer to trace the connections of the (vbus, D-, D+) and found that it is connected to (CH340G) IC. So I opened it's diagram and got know how I need to connect the new type B port.
I attached the wiring and it is working perfectly, BTW I made a PCB that contains the port, arduino and the other parts that I'm using.
Here is the attachment.
Type B-min.pdf (861 KB)