Motion control
Fontys ME Venlo NL
Posts: 2
At this moment we have a motion control PCB powered by 5V and some inputs for HCT logic. Can we use the 5V of our PCB to power the Propeller Mini board on the 5V output (without blowing up the LM2937-5.0)? Are the I/O's of the Propeller 5V tolerant?
To be more clear... At this moment we control a Maxon-RE35 servo motor with a HEDS5540 shaft encoder by xPC (Matlab/Simulink) equipped with two PCI-boards.
The planning is:
1. First to use the Propeller Mini as a transparent interface for the H-bridge an the shaft encoder to the xPC target (on command base over RS232) for system indentification.
2. Second to integrate the found control algorithm (speed, position and cascade) in te Propeller Mini.
Regards...
Wijnand
To be more clear... At this moment we control a Maxon-RE35 servo motor with a HEDS5540 shaft encoder by xPC (Matlab/Simulink) equipped with two PCI-boards.
The planning is:
1. First to use the Propeller Mini as a transparent interface for the H-bridge an the shaft encoder to the xPC target (on command base over RS232) for system indentification.
2. Second to integrate the found control algorithm (speed, position and cascade) in te Propeller Mini.
Regards...
Wijnand
Comments
Most 5V devices will use 3.3V logic signals without a problem. There are lots of exceptions to this. You may need some sort of level shifter if the Prop is going to be controlling 5V devices. I've only had to do this a few times myself usually the 3.3V logic works fine.
I bet you'd be fine powering the Propeller Mini from your other board. I've got a Propeller board in front of me running on four cogs and with few LEDs. The board is drawing 100mA of current. The amount of current the Propeller pulls will depend a lot on how many cogs are active, how fast it's running, and what you have connected to it drawing additional current (LEDs, etc.).
You must be one of our instructors from last week's course in Utrecht, Netherlands. Welcome to the Parallax forums!
Ken Gracey
I would apply the +5V to Vin just to be on the safe side. It will have to go through the 5V regulator, but it's of the low-dropout variety, so the +5V won't get reduced by much. Besides, the Prop Mini does not use 5V; it's reregulated down to +3.3V.
As to 5V tolerance on the Propeller pins, no, they're not. (Search the forum for this topic: you'll find plenty.) But your device's 'HCT inputs will work just fine with 3.3V logic.
-Phil
Regards...
Wijnand
Now that you point yourself out it appears this is your photo. You are the only person looking at the camera!
And of course we're in contact via e-mail as well. Do let us know if you need any specific support.
Ken Gracey
The steps to make the project working are:
1. Realize a Command Line Interpreter that makes it possible to communicate via a serial (uart) interface (cable or wireless) on string basic with Labview, MatMatlab/Simulink.or another remote system. The command string contains a command (i.e. DRV) with 0..n params. The params are also strings representing any kind of type (int, float). Its the task of the specific command function to convert the string to used types.
2. Realize the software to control the output. Possible power electronics are H-bridge (PWM and direction) or amplifiers with a analog input.
3. Realize the software for the feedback comming from an incremental shaft encoder.
4. Realize a realtime log facility to analyse the respons of the open system
5. Put 1..4 together to make system indentification possible in Labview or Matlab/Simulink (or other system)
6. Realize the software for a PID controller with remote setup posibilities for Kp, Ki and Kd
7. Put 5 and 6 together to make system verification possible in Labview or Matlab/Simulink (or other system)
Regards...
Wijnand
The third function is used to control the ActivityBot from the course. Next I wil test it with bluetooth.
Regards...
Regards...
Wijnand