
Ellis

I appreciate any help in understanding what I am doing wrong. I have a modified servo panel and a logitech joystick control installed. I have the wheels on d0 and d1. I have two servos with one on d3 and d4. The wheels are running correctly on the joystick but the two servos are running totoally intermittent on the second stick on the joystick controller. I have tried to program joystick 2 and 3 and actually both at the same time. I am all over the place. Sometimes the X servo works sometimes the Y servo works. Sometimes neither and sometimes both work. I am at a loss at what I am doing wrong. Can anyone help.
Also when I got them both running one time using joystic 2 and 3. I tried to first locate the servos with the Servo(d2, 50) and Servo(d3, 50) and then slow them down with ServoSpeed(d2, 25) and ServoSpeed(d3, 25). I put this script in the initiation File. It slowed down the servos to a crawl and they wouldn't work until I used the joystick. They also did not seem to want to find position I requested. I know this is something I am doing but to the life of me I cannot figure it out according to the ARC manual or the EZ-Script manual. Do I need to add ControlCommand script? Any advice you can give would be greatly appreciated. Thanks Ellis
@Ellis... Ok... But doesn't the HB in the HB-25s stand for H-bridge? The modified servo Movement Panel is meant for 360 deg servos driven directly from the ezb4 digital pins (servos have their own built in motor driver)... The H-bridge Movement Panel is meant to drive your HB-25s and dc motors... It will also drive the l298 H-bridge sold by ez robot.... I personally use sabertooth motor controllers so I use the sabertooth movement control panel....
I still don't see why you need to change the servo speeds for your pan and tilt servos, though...
Ok, I was just messing with the joystick control (joystick#2 specifically) with a pan and tilt setup I have.... I am starting to see your problem now... Although I can get the pan and tilt working with the analog joystick #2 control, it's not proportional... I also see why you want to slow your servos down... There seems to be a razor thin move (cliff if you will) threshold... slight push on the control and the servo seems to move full travel instead of proportionally.... Last time I used a joystick for a project I used the button programming because I needed both analog stick channels for something else... My button programming worked well enough for pan and tilt...
I have to dig into this farther as I am sure there is a way to get the x and y (pan and tilt) servos to act proportionally via the right analog joystick control....
One way to do it would be to define virtual servos in the Joystick, and then have scripts that ramp up and down the actual servos when movement of the virtual servos is detected.
Or we could just asj DJ to update stick 2 and 3 to ramp similar to stick 1, but I find he is more likely to add a fix or feature immediately after one of us develop a viable workaround than if we just ask. I think it helps prioritize. If he sees we are willing to make it work ourselves it must be important
Alan
@Alan, yep... looks like ramping is the a good stopgap for now... Hobby radios really spoil you with their precise proportional stick movements... LOL
I am glad you are seeing some of my problems. When I set my joystick 2 as control for my pan and tilt i only get the vertical movement. When I try horizontal side to side I get nothing. If you look at the joystick tutorial it says it is just a matter of plugging in the servos and assigning the servos to the joystick and it will work. In my situation it doesn't. I realize the video is old but I do not think things have changed other than the windows. Am I missing something?
As for the HB-25s the HB probably does stand for H-bridge. The information for the HB-25 says it plugs in like a servo. If you think setting it to a H-Bridge control panel would work better let me know. I know the HB-25 only requires signal and ground to control it.
Here is the link to the HB-25 operation manual.
HB-25 manual
Thanks again for helping.
Ellis
You are correct to use the modified servo panel with the HB-25's. They emulate a modifed servo. I am not sure that joystick speed ramping works with modified servos at all. I don't have HB-25's, but I do have a small test bot with modified servos that I will play with when my joystick gets here (expected delivery Saturday, some free time on Sunday to work on it). The alternate will be to use a custom Movement Panel with scripted movements.
We may need to also do some scripted ramping for them to work smoothly.
I'll get the pan/tilt thing figured out first. That is exactly what I want to use stick 2 for as well, so I need to solve it.
Alan
Thanks Alan. At lease we are beginning to understand the problem.
Thanks for your help.
Ellis
Here is what I found so far. Working on the Joystick 2 issue.
When I define my pan/tilt servos in Joystick 2, only the Y axis works when I use the right joystick control. The X axis responds to the RT/LT buttons on the front of the controller, but not to the left/right of the joystick.
If I define the same servos in Joystick 3, just the opposite. X axis works (but not with the LT/RT buttons, but Y axis doesn't.
If I define it in both 2 and 3, both axis and buttons work.
I am not actually sure what Joystick 3 is supposed to control. Joystick 1 drives both the stick and the D-pad if I turn on D-pad mode, and just the stick if I turn off D-pad mode, and the D-pad doesn't do anything.
This is all with the Logitech G710 in X-Mode. Doesn't work at all in D-mode, and the Logitech drivers don't work in Windows 8.1 but it is recognized by Windows as an XBox 360 controller.
Since I have a Roli with an H-bridge, the speed ramping is working fine on stick 1, but I will play around tomorrow with my box bot and rotational servos to see if I can figure out something for you there with virtual ports and scripting.
Alan