Shop OBEX P1 Docs P2 Docs Learn Events
Communication Issue — Parallax Forums

Communication Issue

CharlieIICharlieII Posts: 70
edited 2009-04-26 15:34 in General Discussion
Well, I have always run the Propeller from my breadboard and have never had any issue using the "dip plus" kits, numerous different times. It uses the "prop plug" to do the USB to Serial work.

Well, I tried to move past the breadboard and get an actual PCB worked up so I could take my projects off the desktop and into the real world, but I have a problem with the propeller tool not recognizing the existence of the propeller chip now.

My question is this...

What are the bare essentials needed for the propeller tool software to flash the propeller ram in terms of connections and such?

As it stands, I have just tested the PCB, and the chip has power, RX TX RES and Gnd connections appear as they should be in terms of the wire pinouts vs the little prop plug connections. I took an LED and tested the prop plug GND vs VDD and it lit up, so I assume the GND is good. I also removed and reversed the RX and TX wires at the PCB header to make sure that wasn't the problem. No change.

I connected the wires to the prop plug by removing the little plastic connector and soldering the wires directly to the little tabs. Is it likely that I damaged the prop plug when I did that?

I plan to setup another 40pin propeller on a section of breadboard and try to flash it with the same prop plug to check, but right now I'm tired, and was curious if you all might have some general guidelines or usual suspects when it comes to this sort of thing before I went to bed.

Maybe when I check back in the morning things will look a bit better.

Thanks.

Comments

  • CharlieIICharlieII Posts: 70
    edited 2009-04-21 03:07
    Well, my curiosity won out over my sleepiness...

    I cut the Prop Plug out of the harness to the PCB and put it on the breadboard where I had setup another prop chip for the sole purpose of testing this. With a seperate Prop Plug it flashed fine. When I stuck the one in there that I had soldered to it did the same thing, no propeller chip found on any port...

    Looks like I trashed the Prop Plug when I soldered the wires to it.

    So what is a good way to get the thing connected to an actual wire without soldering to the leads leaving it?

    Thanks.
  • LeonLeon Posts: 7,620
    edited 2009-04-21 03:14
    Here's the schematic for a prototyping board of mine:

    www.leonheller.com/Propeller/Propeller_schematic.pdf

    I don't understand why you had to solder wires to the Prop Plug. Why didn't you simply put a header on your PCB?

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 4/21/2009 3:20:01 AM GMT
  • CharlieIICharlieII Posts: 70
    edited 2009-04-21 03:38
    Leon said...
    Here's the schematic for a prototyping board of mine:

    www.leonheller.com/Propeller/Propeller_schematic.pdf

    I don't understand why you had to solder wires to the Prop Plug. Why didn't you simply put a header on your PCB?

    Leon



    This is the header I used.

    www.laddinc.com/shared/pdf/DTM13-12P--12P--R008RevD.pdf


    And while that definitely gets the RX,TX, RES and GND wires out of the enclosure, near as I can tell it still leaves me with a handful of wire in one hand, and a USB port on a PC in the other. Only way I could see to reconcile that problem was to connect the two in some way. The Prop Plug seemed the most logical choice.

    But I messed up the Prop Plug in the process, so what should I have done? How do you get from wires leaving an enclosure to your USB port cleanly?
  • CharlieIICharlieII Posts: 70
    edited 2009-04-21 12:01
    In the morning light I think I might just use Serial connectors and skip the whole serial to usb nonsense all together. This problem has only strengthened my hatred for all usb devices.

    lol.

    So what if hardly anyone has a serial port on their computers anymore.... not my problem, cause I do.

    smile.gif


    2755616970082519711S600x600Q85.jpg
    Looking at the "Alternate Serial Port Connection" in the manual, I can't help but wonder if you can't just skip the transistors between the Prop Tx pin and the pc serial Rx and between the pc Serial Tx and the prop Rx pin.

    What's the point of the transistor there? It shows 3.3v on both sides, so what's the point of it?

    Thanks.

    Post Edited (CharlieII) : 4/21/2009 12:19:18 PM GMT
  • kwinnkwinn Posts: 8,697
    edited 2009-04-21 12:20
    While I do wish laptops still came with a serial port, I really do like the USB port and SD slot on my laptop. All you needed to do was put a 4 pin header on your PCB using the protoboard schematic as a reference, or make a programming adapter to go from the header you used to the prop plug.

    While making do with what you have when prototyping is sometimes necessary I find it saves time and money in the long run to do a neat professional job once you move beyond the prototype stage.
  • CharlieIICharlieII Posts: 70
    edited 2009-04-22 03:30
    So...

    How am I supposed to connect the 4 wires leaving my header to the Prop Plug in a permanent way, without risking damaging it again by soldering directly to the 4 tabs on it?

    I don't understand why putting a header on the PCB keeps coming up. I did. It was a 24pin header, and the 4 com wires were included. That does nothing to solve the problem of connecting those wires to a PC though. The prop plug seemed the obvious choice, but how to get from wire, to prop plug is the question I suppose. The need for transistors and making my own "Prop Plug" little PCB to house the serial stuff makes it less appealing.

    The project enclosure I am using is water tight, and it works in conjunction with the 24pin header I linked. Therefore, simply adding another 4 pin header isn't an option.
  • kwinnkwinn Posts: 8,697
    edited 2009-04-22 03:55
    I envisioned something that plugs in to your header and has a short cable with a 4 pin strip on the end that you plug into the prop plug. You can solder the wires on the part of the pins that normally go through the PCB and use silicone sealant or hot melt glue to insulate the wire ends. The other end plugs in to the prop plug.

    If you are really fussy there are four pin connectors with a plastic shell that fits the prop plug snugly. Just solder the wires to the back of it.
  • CharlieIICharlieII Posts: 70
    edited 2009-04-22 12:01
    kwinn said...
    I envisioned something that plugs in to your header and has a short cable with a 4 pin strip on the end that you plug into the prop plug. You can solder the wires on the part of the pins that normally go through the PCB and use silicone sealant or hot melt glue to insulate the wire ends. The other end plugs in to the prop plug.

    If you are really fussy there are four pin connectors with a plastic shell that fits the prop plug snugly. Just solder the wires to the back of it.



    I guess I just don't see something that "plugs in" as being permanent. I was looking to permanently attach the prop plug to the harness so that when you wanted to program the unit all you needed was a standard USB cord from any computer in the world. I guess if it "clicked" in when you stuck it on there it would probably be fine. But this harness is going to live on the chassis of a vehicle. It needs to be robust, and not fall apart.

    Can you point me toward the four pin connector for the prop plug? I"ll take a look at that. Maybe I can glue it together.

    Thanks.
  • kwinnkwinn Posts: 8,697
    edited 2009-04-22 13:07
    I have attached a picture of the header strip and the USB protoboard circuit. I found this one at Digikey but something similar should be available from any supplier.

    After reading your last post I am not sure if you want the computer connected permanently, or are looking for a connector that makes a reliable connection for connecting the computer occasionally for programming/data transfer. If it is an occasional connection and you want to use a standard USB cable you could make a small board to go on the harness with the FT232 circuit and USB connector on it as shown in the attachment.
  • CharlieIICharlieII Posts: 70
    edited 2009-04-22 15:46
    I have a sealed water-tight project enclosure that has a 24pin header attached to it that connects to the PCB. That leaves me with 24 wires leaving the PCB dangling in mid air.

    I then have a USB port on a computer that can communicate with my Propeller chip. The most obvious method of facilitating this connection is via the Prop Plug.

    However...

    Every joe-blow on planet earth does not own a Prop Plug. But if they have a USB port, and expect to use it, they will have a USB cable. As I will.

    So...

    What would be nice, is if the Prop Plug were permanently attached to the harness (4 wires consisting of Rx, Tx, Res, and Gnd). That way it was just always sitting there, awaiting you to plug a USB cord into it and program to your heart's content.

    Problem...

    I have a Prop Plug (usb to serial interface) that wants to recieve a dinky little 4 pin header that merely slides in place and can just as easily come back apart, and on the other hand, I have 4, 20Ga wires that need to connect with that thing.

    I think I may just buy a heatsink, and solder it again with the heatsink clipped on the Prop Plug side each time and see if that doesn't cure the issue.



    Think of it like this. When you go to download pictures off of most cameras, you will likely find a mini usb jack sitting there. You simply plug in a USB cord, and away you go. What you don't find is a 4 pin header hanging out the side of the camera.

    I want the same thing.
  • kwinnkwinn Posts: 8,697
    edited 2009-04-23 01:39
    If you want every joe blow on the planet to be able to plug in a USB cable and reprogram the prop the answer is simple. Remove the dinky little 4 pin header from the prop plug, solder the 4 wires directly to the pads on the prop plug, pot the prop plug and a bit of the cable while leaving access to the mini USB connector. You can buy round or rectangular tubing in plastic or brass at most hobby stores to place over the cable and prop plug and fill it with potting compound.
  • CharlieIICharlieII Posts: 70
    edited 2009-04-23 03:48
    kwinn said...
    If you want every joe blow on the planet to be able to plug in a USB cable and reprogram the prop the answer is simple. Remove the dinky little 4 pin header from the prop plug, solder the 4 wires directly to the pads on the prop plug, pot the prop plug and a bit of the cable while leaving access to the mini USB connector. You can buy round or rectangular tubing in plastic or brass at most hobby stores to place over the cable and prop plug and fill it with potting compound.


    I agree. And I could take a picture of precisely that laying on my desk, as that is exactly what I did and I now have a worthless desk ornament.

    Do you think it was just a freak deal that the Prop Plug stopped working after I soldered the wires to it? I am tempted to try it again, although burning those things up isn't my goal.

    Thanks.
  • kwinnkwinn Posts: 8,697
    edited 2009-04-23 13:03
    Are you sure the prop plug is not working? Have you tried putting the 4 pin header back on and programming a prop directly (no harness between)?
    How long a cable do you have between the prop board and the prop plug on the harness. It may be that the signal is too low, distorted, or noisy by the time it gets to the prop.

    A little experimenting may be in order. First make sure the signals are going to the right pins on the prop.
    The second thing to try would be programming a prop with a cable equivalent to what would be in the harness between the prop and the prop plug to see if that works.
    If that works the next thing would be to try programming the prop while connected to the harness in the vehicle with only the prop powered (if possible).
    If this works then try programming the prop with the vehicle running.
  • CharlieIICharlieII Posts: 70
    edited 2009-04-24 12:01
    kwinn said...
    Are you sure the prop plug is not working? Have you tried putting the 4 pin header back on and programming a prop directly (no harness between)?
    How long a cable do you have between the prop board and the prop plug on the harness. It may be that the signal is too low, distorted, or noisy by the time it gets to the prop.

    A little experimenting may be in order. First make sure the signals are going to the right pins on the prop.
    The second thing to try would be programming a prop with a cable equivalent to what would be in the harness between the prop and the prop plug to see if that works.
    If that works the next thing would be to try programming the prop while connected to the harness in the vehicle with only the prop powered (if possible).
    If this works then try programming the prop with the vehicle running.


    Yeah, I verified those things a few days ago the night it wouldn't program my board.

    First thing I did was take a spare Prop Plug and just use jumper wires to connect it to my harness. It programmed as usual on the first try. I also took the soldered one and pinned it to a breadboard and it would not program another propeller chip I had sitting on the breadboard. I then came right in after that with the good Prop Plug and programmed that one just fine on the first try as well.

    It's definitely toast.
  • kwinnkwinn Posts: 8,697
    edited 2009-04-24 13:04
    That's unfortunate. I have found the prop plug and protoboard to be reasonably rugged and forgiving. I still have my original prop plug and protoboard and they are still working. Is your soldering iron grounded, and do you take any measures to protect against ESD?
  • CharlieIICharlieII Posts: 70
    edited 2009-04-26 14:23
    kwinn said...
    That's unfortunate. I have found the prop plug and protoboard to be reasonably rugged and forgiving. I still have my original prop plug and protoboard and they are still working. Is your soldering iron grounded, and do you take any measures to protect against ESD?

    I have no idea...

    I have taken zero measures to protect against static discharge because I don't know what to do, other than just keep moving forward and hope it doesn't damage anything. My soldering iron is a Weller WES51.

    I don't know anything about grounding it.

    The only thing I am planning at the moment is to buy a heatsink that I can clip onto leads on the component side that can help pull the heat out of the lead before it reaches the component itself.

    Any other soldering tips are welcome and appreciated.

    Thanks.
  • kwinnkwinn Posts: 8,697
    edited 2009-04-26 15:34
    According to the attached document you do have a grounded tip on your soldering iron. Of course it has to be plugged in to a grounded 3 prong outlet for it to be grounded.

    I have done the following for my workbench:

    Installed a heavy duty power strip with surge protection'

    Mounted 4 banana jacks on the power strip and connected them to ground through a 1 meg resistor.

    Made a piece of pink antistatic foam (16x24 inches) into an anti static mat (fender washer on both sides with a bolt and nut for wire) and screw it to one of the banana plugs.

    Made a wrist strap from a dead watch with the metal flexible strap. I removed the innards and glass, had a small stud brazed to the back, and viola, a very comfortable wrist strap. The wire from the strap to the banana plug is a very flexible wire with silicone rubber insulation from an instrument that was scrapped.

    The only items I had to buy was the banana jacks and plugs and the fender washers. Everything else I either had in my junk box or was already using.
Sign In or Register to comment.