LabVIEW and Propeller Robot Controller
maldridge
Posts: 37
I am on a very tight time-table and so any help is appreciated.
I am using a propeller based servo controller to control the following items:
Thanks in advance.
I am using a propeller based servo controller to control the following items:
- 4 Drive Victor Motor Controllers (PWM)
- 4 Spike Relays (2 Pin Digital)
- 2 Pilot assisted pneumatic solenoids (1 Pin Digital)
- 2 Servos
Thanks in advance.
Comments
Let the Prop do it all.
However, you are probably going to interface right through the Prop USB port using a COM on the PC so you need to allocate a data structure on the PC side and reserve similar data format in memory on the Prop. Two cogs will handle all of this using FullDuplexSerial and your data handler routine.
Just how you read and set your PWM routines for the Victors may be a little different than the Servos so be careful there.
Sounds like a lot of fun!
sm
The person I spoke with at NI said that it was simple serial, and that if I could just read in the data by knowing how many bytes to look for, that would work. That is where I hit the brick wall of not knowing how to deal with the input on the other side. For example, I know that in pbasic, I could use the serin command and just supply it with my variables, but I don't know how to do that with spin.
Thanks for the speedy reply.
The counterpart to SEROUT is FullDuplexSerial.tx
e.g.
now to just write the PWM code...
Here is where it gets weird, on my protoboard where I have a dip plus kit, it works fine (with LED's, the SPIKE is at school right now), but on the board I intend to use, a servo controller board, it does all kinds of weird things such as oscillating states, wrong output configuration and other things that are seemingly random.
Any ideas?
EDIT:
alright, I have tracked down the oscillating state to a bad connection, but now I have a problem where it will just turn on all pins at once, instead of the one I write the logical state to. Any ideas?