Adding Servo
Moderator: Benj
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Adding Servo
Hello Members
I'm trying to migrate from Flowcode 5 to Flowcode 6 with servo's.
I can add 1 servo with 2 parts ?
There is what I call a ghost servo and a active servo.
The Ghost servo is 2 dimension and the active servo is 3 dimensional. Not sure why Flowcode 6 needs the Ghost.
I added the 2nd servo to my project and don't get the second ghost ?
I tried to follow the help files but they don't show how to add additional Servo's. My goal is to have 7 servo to represent a 7 segment flip action.
If someone can point my to help files on adding additional servo's this would be a great help.
Also in the attached program I have a double arrow where in the help video it has 1 arrow from Ghost to the active servo.
I see the steps that each servo needs to be set to the appropriate channel so in my case it will be Channels 1 - 8.
So much to learn from Flowcode 5 to the magic world of Flowcode 6.
John
I'm trying to migrate from Flowcode 5 to Flowcode 6 with servo's.
I can add 1 servo with 2 parts ?
There is what I call a ghost servo and a active servo.
The Ghost servo is 2 dimension and the active servo is 3 dimensional. Not sure why Flowcode 6 needs the Ghost.
I added the 2nd servo to my project and don't get the second ghost ?
I tried to follow the help files but they don't show how to add additional Servo's. My goal is to have 7 servo to represent a 7 segment flip action.
If someone can point my to help files on adding additional servo's this would be a great help.
Also in the attached program I have a double arrow where in the help video it has 1 arrow from Ghost to the active servo.
I see the steps that each servo needs to be set to the appropriate channel so in my case it will be Channels 1 - 8.
So much to learn from Flowcode 5 to the magic world of Flowcode 6.
John
- Attachments
-
- Segment control to Servo RS232 v4 Innings_v6.fcfx
- (53.62 KiB) Downloaded 220 times
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Hi All
More info: I was able to determine the "Ghost" it is a "Servo Controller"
So now I have the 7 servo added with the controllers.
I just missing something to make them all respond ?
Only Servo 1 activates.
Here is the updated program
More info: I was able to determine the "Ghost" it is a "Servo Controller"
So now I have the 7 servo added with the controllers.
I just missing something to make them all respond ?
Only Servo 1 activates.
Here is the updated program
- Attachments
-
- Segment control to Servo RS232 v4 Innings_v6.fcfx
- (68.86 KiB) Downloaded 223 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Adding Servo
Hi John,
one Servo_Controller will control from 1 to 8 servos.
So if you require say 10 servos for example
you will need two Servo_Controllers in total.
For simulation purpose you will also require You will also need 10 Standard servos.
Servo_Controller0 will control servos on channels 0 to 7.
In the Servo_Controller0 properties, just select 8 from the channels(1 -8 )
Then select the pins servos are connected to from the connections option.
Then in the simulation part of properties you just connect Servo Object 0 to Servo Object 7 to Standard_Servo1 to Standard_Servo8 respectively.
Servo_Controller1 will control servos on channels 9 to 10.
In the Servo_Controller1 properties, just select 2 from the channels(1 -8 )
Then select the pins servos are connected to from the connections option.
Then in the simulation part of properties you just connect Servo Object 0 to Servo Object 1 to Standard_Servo9 to Standard_Servo10 respectively.
Here is a link to Wiki:
http://www.matrixtsl.com/wiki/index.php ... hatronics)
Martin
one Servo_Controller will control from 1 to 8 servos.
So if you require say 10 servos for example
you will need two Servo_Controllers in total.
For simulation purpose you will also require You will also need 10 Standard servos.
Servo_Controller0 will control servos on channels 0 to 7.
In the Servo_Controller0 properties, just select 8 from the channels(1 -8 )
Then select the pins servos are connected to from the connections option.
Then in the simulation part of properties you just connect Servo Object 0 to Servo Object 7 to Standard_Servo1 to Standard_Servo8 respectively.
Servo_Controller1 will control servos on channels 9 to 10.
In the Servo_Controller1 properties, just select 2 from the channels(1 -8 )
Then select the pins servos are connected to from the connections option.
Then in the simulation part of properties you just connect Servo Object 0 to Servo Object 1 to Standard_Servo9 to Standard_Servo10 respectively.
Here is a link to Wiki:
http://www.matrixtsl.com/wiki/index.php ... hatronics)
Martin
Martin
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Adding Servo
Your welcome John.
After you have modified your flowchart,
If you are still having problems then if you re-post it, I can sort it out for you.
If you want it sorting today I will be around until 2230 UK time.
Martin
After you have modified your flowchart,
If you are still having problems then if you re-post it, I can sort it out for you.
If you want it sorting today I will be around until 2230 UK time.
Martin
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Thank you Martin
I have made 1 Controller for 7 servo.
I'm not getting the "Clear" to work before sending the digit?
Also when I send F1 I should be getting digit 1 ( Servo B & C )
I'm getting servo 0 & 1.
I think I have them labeled wrong
I have made 1 Controller for 7 servo.
I'm not getting the "Clear" to work before sending the digit?
Also when I send F1 I should be getting digit 1 ( Servo B & C )
I'm getting servo 0 & 1.
I think I have them labeled wrong
- Attachments
-
- Segment control to Servo RS232 v4 Innings_v6.fcfx
- (57.19 KiB) Downloaded 214 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Adding Servo
Hi John, can you refresh my memory.
What was the clear command?
if you post the ASCII char along with expected servo action, I can make sure flowchart works as intended.
What was the clear command?
if you post the ASCII char along with expected servo action, I can make sure flowchart works as intended.
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
For action
Inning is ( F )
Clear is Fc ( Small c = Clear )
Is this what you mean
John
Inning is ( F )
Clear is Fc ( Small c = Clear )
Is this what you mean
John
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
F1 = Digit 1 Servo 1 & 2
F2 = Digit 2
F3 = Digit 3
F4 = Digit 4
F5 = Digit 5
F6 = Digit 6
F7 - Digit 7
F8 = Digit 8
F9 Digit 9
F0 = Digit 0
F2 = Digit 2
F3 = Digit 3
F4 = Digit 4
F5 = Digit 5
F6 = Digit 6
F7 - Digit 7
F8 = Digit 8
F9 Digit 9
F0 = Digit 0
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Adding Servo
Hi John,
I had spotted two mistakes.
1) Servo Object 0 was connected to Servo_Controller0 instead of Standard_servo0
2)EnableServo component was missing from Enable_servo_Clear Macro.
Can you see If attached that works any better?
I had spotted two mistakes.
1) Servo Object 0 was connected to Servo_Controller0 instead of Standard_servo0
2)EnableServo component was missing from Enable_servo_Clear Macro.
Can you see If attached that works any better?
- Attachments
-
- Segment control to Servo RS232 v5 Innings_v6.fcfx
- (57.54 KiB) Downloaded 223 times
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Hi Martin
You magic wand missing battery's
The version you posted the servo don't activate and I checked the RXTint it is working.
Also the LCD goes blank,
John
You magic wand missing battery's
The version you posted the servo don't activate and I checked the RXTint it is working.
Also the LCD goes blank,
John
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Opps I missed a Breakpoint active
It runs but not 100%
I can now enter values without having to stop or pause.
When I enter (F1) the servo activate (B+C) but only for a second and then reset
? The arrow sits Horizontal with no power or pressing play
The arrow going down for reset and UP for active
John
It runs but not 100%
I can now enter values without having to stop or pause.
When I enter (F1) the servo activate (B+C) but only for a second and then reset
? The arrow sits Horizontal with no power or pressing play
The arrow going down for reset and UP for active
John
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
My bad mistake
I found another break point.
Now they appear to be working
1 Minute while I try all the steps.
John
I found another break point.
Now they appear to be working
1 Minute while I try all the steps.
John
Last edited by JLeith on Tue Sep 15, 2015 1:15 am, edited 1 time in total.
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Looks Like Servo 6 in the middle is not working
I have attached a word document with the servo action to form the disaplay
The "Clear action is working
F7 is the best
John
I have attached a word document with the servo action to form the disaplay
The "Clear action is working
F7 is the best
John
- Attachments
-
- servo action.docx
- (18.01 KiB) Downloaded 149 times
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Might of noticed
In the servo output it is called servo ( 0 ) and of the system panel Servo ( 1 ).
Is this the missing piece
John
In the servo output it is called servo ( 0 ) and of the system panel Servo ( 1 ).
Is this the missing piece
John
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Found the broken wheel
The Simulation settings
Had two servo 5
Fixed and now all segments display wonderfully
John
The Simulation settings
Had two servo 5
Fixed and now all segments display wonderfully
John
- Attachments
-
- Version 5.jpg (54.89 KiB) Viewed 8787 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Adding Servo
Hi John,
I added breakpoints and variables to watch list.
So when simulation stopped at a breakpoint you can then see what values are assigned to each variable.
It was way past bed time so I rushed in the end.
Your bug hunting skill are coming along nicely.
So now all up and running?
Just a reminder, You will need to disable the Call RXInt Macro prior to compiling.
Martin
I added breakpoints and variables to watch list.
So when simulation stopped at a breakpoint you can then see what values are assigned to each variable.
It was way past bed time so I rushed in the end.
Your bug hunting skill are coming along nicely.
So now all up and running?
Just a reminder, You will need to disable the Call RXInt Macro prior to compiling.
Martin
Martin
- JLeith
- Posts: 537
- Joined: Wed Nov 14, 2012 7:49 pm
- Location: British Columbia Canada
- Has thanked: 146 times
- Been thanked: 26 times
- Contact:
Re: Adding Servo
Thank you Martin
I would like to see where the variables can be listed I know I could see them in Flow5.
I have added the Servo to all 8 programs and I recalled the disable the RXtint at the end of Main before saving the hex.
Why is it we need to disable that component call. How does the chip know ?
I was trying to see them when I was developing the Summary 20x4 project.
I had to list the values on the LCD to find the RXDATA and CaptureData results.
Martin I have tried to find as much information on the PICkit 2v2 parameters I found a few post that you placed but I think they were for Flow5.
I will post a new message just to keep it straight.
John
I would like to see where the variables can be listed I know I could see them in Flow5.
I have added the Servo to all 8 programs and I recalled the disable the RXtint at the end of Main before saving the hex.
Why is it we need to disable that component call. How does the chip know ?
I was trying to see them when I was developing the Summary 20x4 project.
I had to list the values on the LCD to find the RXDATA and CaptureData results.
Martin I have tried to find as much information on the PICkit 2v2 parameters I found a few post that you placed but I think they were for Flow5.
I will post a new message just to keep it straight.
John
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact: