The Artima Developer Community
Sponsored Link

Python Buzz Forum
Butchered USB TTL Serial Adaptor

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Aaron Brady

Posts: 576
Nickname: insommeuk
Registered: Aug, 2003

Aaron Brady is lead developer for Crestsource
Butchered USB TTL Serial Adaptor Posted: May 15, 2016 3:27 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Aaron Brady.
Original Post: Butchered USB TTL Serial Adaptor
Feed Title: insom.me.uk
Feed URL: http://feeds2.feedburner.com/insommeuk
Feed Description: Posts related to using Python. Some tricks and tips, observations, hacks, and the Brand New Things.
Latest Python Buzz Posts
Latest Python Buzz Posts by Aaron Brady
Latest Posts From insom.me.uk

Advertisement

<insert apology here>

Isn’t it frustrating when you’ve got a new toy and you want to use it but you’re missing the one piece that you need?

I ordered an STM32F103 board on eBay at the start of April. After six weeks I assumed it went missing so I ordered another one, which arrived a couple of days later. Then the original one arrived. Typical, eh?

I bought these so I could follow along with the JeeLabs Dive into Forth and because the Cortex ARMs seem ridiculously powerful compared to the ATmega chips that I’ve been using so far.

The first one arrived and all of the 5V serial leads we collectively had for the office (one FTDI cable and a BusPirate) were back at people’s homes. I even looked to see if we had a spare Arduino Uno — one neat trick is that you can pry the ATmega out of an Uno and then use digital pins 0 and 1 hooked up to another device to re-use the Arduino’s serial bridge. (Also works for at least Diecimila and Duemilanove).

Nope. All the Arduino-and-clones we had spare were the kind you program with an FTDI lead.

The next day Bas brought in the FTDI lead and I got the first board bootstrapped with Forth, but then my second board arrived and he suggested getting the two to speak would be a nice ‘learning Forth’ project. This was going to mean more cables.

Clearly two cables between four people and a half-dozen semi-finished projects wasn’t tenable, so I bought a couple more leads on eBay from “UK sellers”. My experience in the past has been the cheapest UK sellers are … not in the UK. Often, my package ends up arriving a couple of weeks later with a CN22 form stuck to the outside. This is fine, it’s the cost of buying the cheapest parts.

I didn’t want to wait, so I had a look around what we had on hand. We did have a spare RS232 to USB adaptor. This one speaks the full ±15V, and I briefly considered using one of the spare MILSPEC SP232’s we got cheap to bring it down to TTL, but that seemed mad: there was going to be a MAX232 or similar in the serial adaptor bringing it up to voltage so it could go a couple of centimetres before getting stepped down again.

Here begins our adventure into very small wires, fine SMT soldering and hot glue.

We popped open the case, and there were two main ICs, a Prolific 2303 (the USB to Serial IC) and a ADM3251E (the RS232 line level convertor). I tried to desolder this with no success, but Bas stepped in, cut the leads with a craft knife and ran the iron over the chip’s leads and it basically fell off. He also did the very fine soldering to pins 1 and 5 of the Prolific chip, TX and RX respectively.

Original Soldering

This was pretty fragile, but a quick test of connecting the two whiskers with a crocodile clip and typing into a serial terminal confirmed the connections were good (we got the characters we typed echoed back).

The most convenient connector for our purposes was going to be female DuPont wires, so I cut down some female-to-male wires with a vague colour code of:

  • Red for +5V
  • Grey for GND (because I had no black)
  • Blue for TX (why not?)
  • Green for RX

Colours

Clearly those very fine wires were going to be mechanically weak, so I borrowed my wife’s glue gun to hold everything in place, and soldered the much larger DuPont wires to the trimmed magnet wire.

Outsized Wires

Time for a quick test with the microcontroller (power is supplied separately at this point):

The Microcontroller

Woot Test

I drilled a hole in the original case large enough to admit the leads and wired up the 5V and GND. I pressed everything down and liberally covered it all in hot glue (not pictured: the photo didn’t come out properly).

Hole

The original case even fits back on more or less snugly.

Case

Now I could talk to both microcontrollers at the same time, and get to work activating their second USARTs to get them speaking to each other.

(Oh, and the cables I ordered actually were in the UK, and they arrived the next day. Still, there’s no harm in spending a lunch time hacking something you need from what you have to hand, right?)

Read: Butchered USB TTL Serial Adaptor

Topic: 25 Previous Topic   Next Topic Topic: Learn to Solder Badges

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use