|
Post by Matt & Aven on May 7, 2020 14:35:50 GMT -8
I was glad to see this - we are having the exact same issue. (Decided this quarantine was a great opportunity to work on the project, got it all together and going, and ran into the servo only seems to run in one direction (down). We'll try another power supply and see.
|
|
|
Post by Matt & Aven on May 7, 2020 17:25:21 GMT -8
We are using a Canakit 2.5 A power supply, we used tried a second Canakit micro USB cable and hooked up the auxiliary power on the Controller board. Still same thing - the servo only wants to go in one direction (down).
|
|
|
Post by steve2q on May 8, 2020 8:55:12 GMT -8
I tried with 2 different power supplies..still no difference. I notice this; when I hooked the 2nd supply to the controller board (without the Pi being powered up), the controller did not light up. It only lights when the Pi is on..but I assume this may be normal.
Steve
|
|
|
Post by steve2q on May 8, 2020 8:56:46 GMT -8
We are using a Canakit 2.5 A power supply, we used tried a second Canakit micro USB cable and hooked up the auxiliary power on the Controller board. Still same thing - the servo only wants to go in one direction (down). If Matt & Aven have the same problem, perhaps there is a glitch in the code? Is there a way to download a completely new image?
|
|
|
Post by SDL on May 8, 2020 12:28:36 GMT -8
|
|
|
Post by steve2q on May 8, 2020 17:36:25 GMT -8
Thanks, I downloaded from GIT. Getting late here, so I will play with it over the weekend. Am I correct in assuming that I can just copy the files over the existing ones? Or is there more to it than that?
|
|
|
Post by SDL on May 11, 2020 12:51:39 GMT -8
Copy the files over yours. Make sure you have made your configuration changes in conflocal.py as suggested.
I hope that is the problem! I'm wondering if you need to "tune" the servomotor, which is what we will check next. I see you go all the way in one direction and then just a little in the other direction. The video was very helpful.
BP
|
|
|
Post by steve2q on May 13, 2020 15:52:45 GMT -8
OK. I copied all of the files over what was there. The servomotor still acts the same when tested. The following is my conflocal.py Since you mentioned it, I copied it so you can see if there is an error.
# # # configuration file - contains customization for exact system # #
SWVersion = "" # Set in MouseAir.py DEBUGMouseAir = True
mailUser = "YourUserName" mailPassword = "YourPassword"
databasePassword = "databasePassword"
notifyAddress = "YourName@YourDomain.com" secondaryNotifyAddress = "YourName@YourDomain.com" fromAddress = "YourFrom@YourFromDomain.com"
############ # Blynk configuration ############
USEBLYNK = True BLYNK_AUTH = 'xxxxxxxxxxxxxxxxxxxxx' BLYNK_URL = 'http://blynk-cloud.com/'
############ # RGBW LEDs configuration (on use on a Raspberry Pi 3B+) ############
RGBWLEDS = True
############ # CatNotCat Parameters ############
#CatNotCatThreshold in state.py because of Blynk control DetectCatNumberOfFrames = 10 # number of continous frames before we detect Cat
# pin configuration
MouseDetectionPin = 4 UltrasonicLevelPin = 26 PixelPin = 21
|
|
|
Post by SDL on May 16, 2020 7:40:21 GMT -8
steve,
I actually suggested the wrong file. Look in state.py
# Launch Motors LaunchSpeedLeft = 240 LaunchSpeedRight = 240
# Launch Servo
LaunchServoMin = 370 LaunchServoMax = 450
LaunchTimeForward = 1.6 LaunchTimeBackward = 0.8 LaunchTimeDelay = 0.3 Now these are numbers to tune.LaunchServoMin and Max are the lower and upper numbers for the servo.
First thing to to is to fool with the numbers on the launch time forward and backwards. Make sure you note the original numbers and only change one at a time.
My guess is that some servo motors and power supply combinations need to be modified.
Keep us posted!
BP
|
|
|
Post by steve2q on May 16, 2020 11:55:38 GMT -8
Success!! I played with the numbers and now the servo retracts and then goes forward! When I run the servo test, it does this twice, but when I run the LaunchSequence test it only moves in both directions one time, which appears to be the correct operation.
The change I made that worked was in the Min and Max lines, ie: LaunchServoMin = 37 LaunchservoMax = 450
Now I have to fool with the settings (both in the software and with the mechanical setup) to get the mouse launched. Thank you for all your help. I hope this is useful for Matt and Aven, too
Steve
|
|
|
Post by SDL on May 19, 2020 15:00:08 GMT -8
Steve,
This is somewhat of a mystery to me why they changed. Did you mount the servo same side up as in the manual?
I wonder if we have two types of servos that got mixed up (or two orders anyway).
BP
|
|
|
Post by Matt & Aven on May 21, 2020 17:18:48 GMT -8
That fixed it!! Thanks!!!
|
|
|
Post by steve2q on May 21, 2020 17:19:01 GMT -8
Well. I am feeling very foolish. I mounted the servo the wrong way, which explains two things; 1. why the numbers changed, and 2. Why the ramp is not engaging properly. Unfortunately, I had so much trouble with trying to engage the ramp (the servo kept moving) that I used CA to glue the servo in place! Now I am going to see if I can figure out a way to cut it out. When I installed it I just missed observing how the wires came out the right side!
|
|
|
Post by steve2q on May 21, 2020 17:22:54 GMT -8
I just looked at the picture I sent before I returned the 1st servo. That one was mounted correctly. And now I see that if this one was correct the gear would be more to the rear so it would engage the ramp much better. Sigh!
|
|
|
Post by steve2q on May 22, 2020 12:39:43 GMT -8
Follow up. After judicious use of a razor saw and soaking the cemented joints with vegetable oil, I was able to remove the servo with minimal damage and placed it in the correct position. It works much better now. Just had to twiddle with the forward and back settings.
|
|