Need some help with propeller and USB PSC no comms.
Christo from SA
Posts: 4
My fist problem is that I cannot drive the USB PSC with 3.3V from the Propeller Proto Board, the green RX LED on the USB PSC is continuously ON, with or without the TX from propeller. So I use 1K resister between Propeller and USB PSC. But with 5V supply to USB PSC TX LED is as normal state.
My second problem is USB PSC seem not to operate when I send serial comms to it, I can see the RX LED on the USB PSC receiving data but no servo response. The USB PSC is working when I use my BS2. I have tried deferent OBJ’s with no luck (FullDuplexSerial, Simple_Serial, ·SerialMirror , Extended_FDSerial and BS2_Functions).
I have search the WEB and found GaitHexHDATS.spin OBJ for Propeller and PSC (Serial), with this I cannot make it work ether. Please can someone help me, with spin code or connection diagrams for Propeller to USB PSC connection?
At this time I can send Serial Data from the Propeller to the BS2 and then the BS2 comms to the USB PSC. But this is not the ideal setup.····
Propeller Proto Board
USB PSC
BOE with BS2
My second problem is USB PSC seem not to operate when I send serial comms to it, I can see the RX LED on the USB PSC receiving data but no servo response. The USB PSC is working when I use my BS2. I have tried deferent OBJ’s with no luck (FullDuplexSerial, Simple_Serial, ·SerialMirror , Extended_FDSerial and BS2_Functions).
I have search the WEB and found GaitHexHDATS.spin OBJ for Propeller and PSC (Serial), with this I cannot make it work ether. Please can someone help me, with spin code or connection diagrams for Propeller to USB PSC connection?
At this time I can send Serial Data from the Propeller to the BS2 and then the BS2 comms to the USB PSC. But this is not the ideal setup.····
Propeller Proto Board
USB PSC
BOE with BS2
Comments
So a PSC can be a "Parallax Servo Controller" ??
There are some people using it, though it has always been strange to my why not use the Propeller directly... It is different with a BS2, of course.
There is an USB version, as I see reading through the Parallax Shop.
Can this be connected to the Propeller!? No, I think not!
In which way have you tried this? There is no hint in your posting....
But maybe you are doing something absolutely different...
Edit:
This is one of the first phrases in the manual:
The processor used on the PSCusb requires 5 VDC which is supplied by the USB port.
Post Edited (deSilva) : 2/9/2008 3:54:28 PM GMT
O.k. so you can connect it that way to ANY 5V I/O system. But I have no idea what communication is going on over that line....
When connecting to the Propeller add a 10k resistor into that line. As it works most like bidirectional there must be a pull-up somewhere on the PSC board... So you should not drive the line high from the propeller but rely on that pull-up...
Post Edited (deSilva) : 2/9/2008 4:11:57 PM GMT
I can serial connect to the USB PSC from the BS2 but not from the propeller. The only thing that I can think of is that the propeller is to fast even if I put the baudrate to 2400 the default of the USB PSC and set the baudrate when I start the new cog with FullDuplexSerial OBJ.
The USB PSC only differ from the Serial PSC with the USB FTDI chip on it to connect to the computer but you don't need to use it.
As of my setup: from P7 (Propeller) to 1K resister, from resister to Serial IN on the USB PSC, 5V from Propeller regulator to USB PSC + of Serial and Vss (Propeller) to Vss of Serial.
I use VGA, Keyboard, Mouse, Extensive Maths (2cog's), Serial Comms on the propeller.
share.crustcrawler.com/NorrisLabs/HexHDATS/GaitHexHDATS.spin
It tells you how to use FullDuplexSerial
The Manual (for the "serial" product) explains all commands in detail. It even has detailed sketches as (see encl.)
So there is NO PULL-UP on the board, rather an LED...
Post Edited (deSilva) : 2/9/2008 4:42:28 PM GMT
100 Ohms on the other hand will not protect you against the 5 V IF the line is driven high to 5 Volts.... IF NOT driven high, this might work. I have to look how FullDuplexSerial is used from the example---
Edit:
Well this looks very fine
Assuming the board does the same just keep the 100 Ohms or leave it completely out.
What you described in your OP (LED shining all the time) would be noticed when the line you connect it to is driven low, may be during one of your experiments.. It shall not shine under no circumstances when cou connect to an "input" pin of the Propeller...
---
Well this was quite interesting to learn something about the PSC
Post Edited (deSilva) : 2/9/2008 5:12:35 PM GMT
Your suggestion will protect the Propeller if the PSC would drive the line high, which I doubt after my studies...
As the GREEN LED takes up 2V there is no further need for current protection.
But still, you are welcome...
Post Edited (deSilva) : 2/9/2008 6:49:39 PM GMT