Shop OBEX P1 Docs P2 Docs Learn Events
a bit of trouble with the prop plug... — Parallax Forums

a bit of trouble with the prop plug...

kutalinelucaskutalinelucas Posts: 80
edited 2011-07-11 15:22 in Propeller 1
After getting some fantastic advice that was well above my head! I decided to buy a prop-plug a few days ago, but I'm having difficulties already!

When I try to run 'identify hardware' or try to compile one of the included spin files, the blue led on the back of the plug flashes briefly, and I get a 'no propeller chip found on any com port' messagebox. The port is set to automatic in the preferences section of 'propeller tool', and when I connect the rx & tx pins of the prop, typed characters are ecohed through the parallax serial terminal, so I guess the drivers are installed correctly.

I've set it up on a brand-new breadboard, and I am supplying it with a wall-supply 11v through a 9v regulator, before using a voltage divider to get approximatly 3.25 v on the pins of the prop. This did worry me a little but i'm pretty sure the manual says it could still be run at 2.80v...

I'm running 64-bit windows 7, and I've included the circuit i'm using and a picture of the breadboard. Anyhelp to get me started would be brilliant

Thanks
1024 x 768 - 88K
847 x 463 - 37K
«1

Comments

  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-11 10:30
    I can't see from the picture. The TX of the Prop Plug is connected to P31 of the Prop, right?

    I don't know if it is the source of your problem or not but it would be a good idea to use a couple of caps on the breadboard. Put a 0.1uF close to each Vdd pin on the Prop.

    Have you measured the voltage at all the connected pins to make use they are really connected to power or ground?

    Do you get a small voltage increase at P31 when you attempt to communicate with the Prop?

    Duane
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 10:39
    hey Duane...

    Yes the TX is connected to p31, but no voltage increase when I try to communicate, it just stays at a steady 3.35v, as does p30

    All of the connected pins are fine, just at a bit of a loss now
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-11 10:47
    Voltage increase was not a good term. I should have said voltage change. Individual ones and zeros can't be detected (usually) by a multimeter but often you can see something is going on in a signal wire by a change in the average voltage. With the TX LED flashing, I'd think there would be some sort of change in the voltage at pin 31 as it receives the signal.

    You should also be able to detect the reset with a multimeter (I think).
  • SapiehaSapieha Posts: 2,964
    edited 2011-07-11 10:47
    Hi kutalinelucas.


    On ProtoBoard picture I see links on 3.3V voltage rails from on group to another -- BUT I don't see that links on GND rails.
    Maybe that is Yours problem.

    hey Duane...

    Yes the TX is connected to p31, but no voltage increase when I try to communicate, it just stays at a steady 3.35v, as does p30

    All of the connected pins are fine, just at a bit of a loss now
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 11:00
    Hi Sapieha, no, its just a bit of a funny looking board, where the ground is all common, but the power rail needs the links...

    and Hi duane but you are right, there is a voltage drop of between .02v - .08v on pin 31 when I click identify...what does this mean?
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-11 11:06
    what does this mean?

    All it really means it the signal is making it to the pin.

    You ought to also check the reset pin for a change when press F10. The Prop needs to be reset at right time to accept the program. Pin30 should also change as it answers back.
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2011-07-11 11:13
    Can you use a meter to ensure all the connections are really valid? I would start with the grounds first. Put one at your power board and then the other lead to each of the ground connections at the Prop and at the Prop plug. Next do the same for the 3.3v supply.

    Is there anything else you can use as a power supply? I'd certainly prefer to see a good 3.3V regulator with the appropriate filter caps on the input and output. Also some .1uf caps between the power and ground leads right at the Propeller chip. If you have to use the setup you have then at least get some filter caps on it. I'm not a fan of that style PS and if you go that route then perhaps use a Zener to help regulate the voltage output. Getting a proper voltage regulator or real 3.3V supply would be best however.

    Robert
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 11:14
    theres no change on pin30 (or the rx line on the prop plug...) . Any ideas why this maybe?
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 11:23
    unfortunatly I have no diodes that small to hand...and I live in the middle of nowhere so it may take a few days to get, but it should be OK. The regulator keeps the voltage fairly steady, and although its not the best practice, it should be ok to power the prop...

    All of the connections are fine...so it must be something else
  • HShankoHShanko Posts: 402
    edited 2011-07-11 11:37
    kutalinelucas,

    Using a voltage divider to supply a circuit normally isn't a good idea. Not unless the current load is constant. You have the Prop, PropPlug and a LED which is going to vary the current draw. It would be highly desirable to use a 3.3v regulator. Then some problems on your breadboard might be eliminated. And YES to bypassing the Power pins on the Prop. My 2¢.
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 11:47
    I realise its a bit of a DIY way to do things, but I'm just working off what I have. I've just ordered some bits from farnell which include some caps and regulators, but I could do with getting this going before they arrive, which should be 2-3 days.

    I do understand it's a flakey way of powering my circuit, but with only a prop chip and plug I wouldn't have thought regulating the current would be a problem, I didn't think it has been drawing enough for it to be an issue. I've reciently been running a pic18f using a similar set-up...again I know its not great but it seemed to be ok for the breadboard stages
  • SapiehaSapieha Posts: 2,964
    edited 2011-07-11 12:02
    Hi kutalinelucas.

    Have You added decoupling capacitors to Ypu Propeller - as near Both sides of Voltage rails as possible.
    And one 10uF on Crystal side for Power stability?

    I realise its a bit of a DIY way to do things, but I'm just working off what I have. I've just ordered some bits from farnell which include some caps and regulators, but I could do with getting this going before they arrive, which should be 2-3 days.

    I do understand it's a flakey way of powering my circuit, but with only a prop chip and plug I wouldn't have thought regulating the current would be a problem, I didn't think it has been drawing enough for it to be an issue. I've reciently been running a pic18f using a similar set-up...again I know its not great but it seemed to be ok for the breadboard stages
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 12:22
    well I just placed a 100nf cap accross each power rail and to no avail. I really don't mind if it is a power issue, as I have enough to be getting on with until my new horde of stuff is delivered...but i'm just worried that there will be futher issues and I can't really afford more than a couple of days. If however, you guys are quite confident it is a power issue, and this is not a common fault then that is good enough for me.

    Just out of intrest...is the prop chip that tempremental? its just the voltage supply remains relativly stable (+/- 0.02v), the circuit is not drawing any current and other ic's I have worked with will accept a voltage change of 1 or 2v at Vdd without any noticible change in preformance
  • SapiehaSapieha Posts: 2,964
    edited 2011-07-11 12:33
    Hi kutalinelucas.

    I have never run Propeller Tool's on Win 7-64 so I don't know how it works with Drivers --->
    BUT in time You push F10 to Identify Propeller -- Have Led's on PropPlug blinking?


    well I just placed a 100nf cap accross each power rail and to no avail. I really don't mind if it is a power issue, as I have enough to be getting on with until my new horde of stuff is delivered...but i'm just worried that there will be futher issues and I can't really afford more than a couple of days. If however, you guys are quite confident it is a power issue, and this is not a common fault then that is good enough for me.

    Just out of intrest...is the prop chip that tempremental? its just the voltage supply remains relativly stable (+/- 0.02v), the circuit is not drawing any current and other ic's I have worked with will accept a voltage change of 1 or 2v at Vdd without any noticible change in preformance
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-11 12:37
    its just the voltage supply remains relatively stable (+/- 0.02v)

    Yea, but how are you measuring this? The voltage could be doing all sorts of crazy stuff without being detected by most multimeters. I think you'd need an oscilloscope to be sure the power was staying clean. The small decoupling caps are good for this.

    I've told Sapieha he should include his caution about decoupling caps in his signature to keep from having to keep typing it.

    Sapieha gave me a good explanation about decoupling caps here.
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 12:42
    if I press F10 in propeller tool, I get a message box stating "No PUB routines found"...If I press F7 for identify, the led flashes briefly on the prop plug. There is a voltage change on the TX line when I attempt to identify, but not on the RX, so i'm assuming this is the return and when I join the rx & tx lines together and enter a command into propeller terminal, it is echoed, so i'm assuming the prop plug and drivers work ok...it just cannot seem to pic-up the chip. Do you think there may be a problem with the processor itself? is there any way to run a diagnostic?
  • Daniel HarrisDaniel Harris Posts: 207
    edited 2011-07-11 12:49
    Hey Kutalinelucas,

    The Propeller doesn't need to have a crystal or EEPROM hooked up to be able to have the computer identify or program it. Windows 7 x64 shouldn't be a problem either - thats what I run here in the office, and I program the Propeller all day long. As indicated in the reference schematic, the three signals you need to make sure are connected properly are the reset line, and the TX and RX lines. You should also make sure that the Vss (ground) lines are tied together - both on your power supply circuit and to the Prop Plug.

    Also, for good measure if you have a voltmeter, check the voltage that your power supply circuit is sending to the Propeller. Just make sure that its around 3.0 ~ 3.3 volts. 2.8 V should be just fine too, but its good to have stable power.

    Would you be able to upload a better image of the breadboard circuit? It would be helpful to see exactly how you have the Prop Plug connected to the Propeller.

    Thanks!
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 12:52
    The voltage could be doing all sorts of crazy stuff without being detected by most multimeters

    I don't profess to have much skill in the way of circuit theory, but as the data-sheet says the operating voltage of the propeller is between 2.7v - 3.6v..., it draws hardly current, and the supply voltage IS regulated (before the voltage divider), I'm just concerned that its something else.

    Believe me I know its a bodge of a power supply but i'm only in the breadboard stages and using what I have until the caverlry (the postman) turn up.

    At the moment all i'm looking for is a ping! just a return instruction to let the 'virtual serial port' know there's acatually somthing on the end of it! The prog plug must be ok because When I send data through the Tx line, it is instantly returned through the Rx.

    I know multimeters aren't exactly precise, but I wouldn't think the supply frequency would be relevant to simply identify the bloody thing. I'm just a little concerned that I will wait 3 days for a 3.3v regulator and it will not solve the problem
  • SapiehaSapieha Posts: 2,964
    edited 2011-07-11 12:52
    Hi kutalinelucas.

    In that case Only thing I can give You --->
    If You have another BreadBoard - Rebuild this circuity on it -- Some cheap breadboards have very high internal capacitance -- That can be problem.

    Else better to build entire circuity on 40 pin's socket. By soldering all wires to Sockets pins and inserting Propeller IC after that.


    if I press F10 in propeller tool, I get a message box stating "No PUB routines found"...If I press F7 for identify, the led flashes briefly on the prop plug. There is a voltage change on the TX line when I attempt to identify, but not on the RX, so i'm assuming this is the return and when I join the rx & tx lines together and enter a command into propeller terminal, it is echoed, so i'm assuming the prop plug and drivers work ok...it just cannot seem to pic-up the chip. Do you think there may be a problem with the processor itself? is there any way to run a diagnostic?
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-11 12:54
    The "No PUB routines found" has to do with your code. I don't think if has anything to do with the Prop.

    Have you tested the reset line?

    I'm guessing this is your only Prop, right?

    I've read the Prop is very sensitive to having current pass from one Vdd to the other or from one ground to the other.

    Where do you live?

    Maybe one of us Prop heads can send you a new one faster than a different source.

    Hey wait a minute. You're new to the Prop right? I have a QuickStart board with your name on it. Send me a PM with your address and I'll mail a QuickStart board to you.

    Duane
  • HShankoHShanko Posts: 402
    edited 2011-07-11 13:07
    @ kutalinelucas,

    You wrote "...I wouldn't have thought regulating the current would be a problem," I hope you meant regulating the voltage. I wonder what the Prop current draw is with it in this circuit and with no program loaded. There should be some current but that should be fairly low as no program is running.

    With a 1.3K resistor from the regulator, there wouldn't be very much current available @ 3.3v. The resistive divider output would drop as any current draw increases. Not a very 'stiff' voltage source for the Prop. Without the Prop, there is about 4.6 ma through the 600˙Ω resistor. If the Prop drew 1 mil out of the R-divider, the output would drop about 1.3v, closer to 2v.
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 13:28
    Hi Daniel, sorry about the delay.

    Here's a few more pictures of the breadoard...all the connections are fine and show a regulativly stable 3.28v, I have live on the reset and p31when the usb is connected and a common earth for vss, the supply and after the regulator

    please tell me its something simple!
    1024 x 768 - 91K
    1024 x 768 - 90K
    1024 x 768 - 85K
  • SapiehaSapieha Posts: 2,964
    edited 2011-07-11 13:36
    Hi kutalinelucas.


    As I see it --- You not have standard Capacitors to Voltage regulator -- Not any to Propeller to.

    That circuity will never RUN. As I said You need caps 100nF on both sides of propeller and one 10 to 33uF on Crystal side (PLL side of propeller) --- BUT to that You need even 100nF on both sides of V-Regulator InVoltage and OutVoltage --- and parallel with them Electrolytic else Tantalum 10 to 47uF on both sides of V-Regulator to have Stable Voltage to Propeller.

    Else forget You can RUN it!


    Hi Daniel, sorry about the delay.

    Here's a few more pictures of the breadoard...all the connections are fine and show a regulativly stable 3.28v, I have live on the reset and p31when the usb is connected and a common earth for vss, the supply and after the regulator

    please tell me its something simple!
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 13:37
    hi harley.

    Well as I said my circuit theory isn't up to much but thats a pretty good explation...i've ordered the regulators anyway but im just worried something else will go wrong
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-07-11 13:40
    It sure looks like P31 is connected to the Prop Plug's RX line(the pin farthest from the Vss pin on the PPlug).

    Edit: P31 should connect to PPlug's TX (next to /RES).
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 13:47
    Sapieha wrote: »
    Hi kutalinelucas.


    As I see it --- You not have standard Capacitors to Voltage regulator -- Not any to Propeller to.

    sorry, I did have 100nf caps on each side of the prop...was just using them for something esle (briefly)...but do I also need a 100nf cap each side of the regulator?

    also what do you mean when you say "10 to 33uf on the crystal side"?


    That circuity will never RUN. As I said You need caps 100nF on both sides of propeller and one 10 to 33uF on Crystal side (PLL side of propeller) --- BUT to that You need even 100nF on both sides of V-Regulator InVoltage and OutVoltage --- and parallel with them Electrolytic else Tantalum 10 to 47uF on both sides of V-Regulator to have Stable Voltage to Propeller.

    Else forget You can RUN it!
  • SapiehaSapieha Posts: 2,964
    edited 2011-07-11 13:58
    Hi kutalinelucas.

    10uF to 33uF electrolytic/Tantalum capacitor -- On same side Propeller have pins to Crystal.

    .but do I also need a 100nf cap each side of the regulator?
    That is very important. And as I write in previous post even parallel with them Tantalum/electrolytic ones 10uF to 47uF TO!
  • StefanL38StefanL38 Posts: 2,292
    edited 2011-07-11 14:24
    a voltage-divider in the supply-line is a really bad idea
    let's estimate your propeller draws just 1 mA.

    at 3.3V this means a inner resistance of 3.3V/0.001A = 3300 Ohm.

    This resistance is in parallel to your 600 Ohm.
    The resulting resitance is 1/(1/3300 + 1/600) = 507 Ohm.

    Now the voltage gets divided down to 9V/(1360 Ohm + 507 Ohm) * 507 Ohm = 2.4V which is definitly too low.

    You could try to use another resistor but as soon as the current that the propeller-chip is drawing changes the voltages will change too
    If you only add a single LED drawing 20 mA the new inner resistance is

    3.3V / 0.021A = 157 Ohm
    1/(1/157 ohm + 1/ 600 ohm) = 124 Ohm

    New Voltage: 9V / (1360+124) * 124 = 0.75V !!!

    This is the reason why voltage-regulators are manufactered!

    As long as your knowledge about electronics is low you should follow the advice of the manual and experts exactly

    keep the questions coming
    best regards

    Stefan
  • kutalinelucaskutalinelucas Posts: 80
    edited 2011-07-11 14:29
    ok...well I guess I'm going to have to put another order in tonight! thankyou all so much for your input...I'll get the bits ordered and let you know how I get on...
  • idbruceidbruce Posts: 6,197
    edited 2011-07-11 15:22
    kutalinelucas

    As far as I can tell from the new photos, your wiring looks correct. Perhaps it is a port issue, check all your settings, and try reinstalling the USB driver.

    Bruce

    EDIT: With exception of the power source :) Like others have mentioned, but I understand about lack of parts.
Sign In or Register to comment.