Prop servo question...
J. A. Streich
Posts: 158
Using both the serv32 and sevo4 objects, my contunuous servo motors are pulsing noticably to the eye.... Using the BS2, to eye the wheel moved continuously (I know there needs to be a pause between widths) , but can't get the same effect on the prop (protoboard).
I've taken out any obvious waiting that I could see, but I don't know what I'm missing becaue using both I get movment about once a second. Any idea what I'm doing wrong?
I've taken out any obvious waiting that I could see, but I don't know what I'm missing becaue using both I get movment about once a second. Any idea what I'm doing wrong?
Comments
This updates the servo position 20 times per second. Hope this helps give you an idea!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,
Robo-freak.com
www.livesoundforum.com
"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com
"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha
Post Edited (Robofreak) : 1/24/2009 11:45:32 PM GMT
John Abshier
The prop seems to be in good health....
The only thing I wonder is if it could be constantly resetting for some reason.... [noparse]:([/noparse]
I've got the acessory kit attached, and servos on P0 and P1. Any ideas on what might cause this? Or to prevent this?
I forgot to add - a quick test is to scope the output of the 3.3v regulator. That will tell you for sure what is going on with vcc. A poor mans solution is to just check it with a DMM, you should see it noticeably drop before the reset occurs.
Post Edited (soshimo) : 1/25/2009 2:23:19 AM GMT
Power source is the batter pack from a BOE-BOT, with Energizer AA rechargeable batteries.
The 3.3v shows as +3.14v to +3.17v,
The +5v was showing at right around 4.11 ...
3.14 low enough to cause a "brownout" reset?
If so, where did you connect the second power source to the protoboard? Right to the pins on the servo headers or did you add your own headers elsewhere?
If not, what else could cause the prop to reset?
I never tried another voltage source on the protoboard but reviewing the schematic it looks like you can use the input voltage that is present at the power jack. To do this you have to solder in a 3 pin header to the right of the regulators and place a shunt at the position that permits the VINSW voltage and place the switch in position 2. I believe this will put VIN to the Servo headers directly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What electronics need - MORE POWER!!!!!!!
Jason
Do you have an FTDI chip (Prop plug or on-board USB on proto-board) connected? Are you sending any data out PIN 31?
I got caught with this yesterday playing with my new USB proto-board. My debug code sends the current time out every second, and every time it went to transmit a byte the board would reset. Common problem with the propeller stuff and FTDI chips.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.
Edit/Add: Should this be in addition to, or in place of the 1000uF that somes preinstalled on the protoboard?
BradC, II'm not using pin 31 when this happens. I have been leaving the prop plug connected, but I haven't been sending anything. Trying it without the prop plug yeilds same results...
Post Edited (J. A. Streich) : 1/25/2009 2:45:10 PM GMT
Be careful to pay attention to the maximum voltage ratings of the servos. Your power supply's voltage will be the voltage sent out at the Vin pins unless you have them jumpered to 5V. I believe 9V will damage most servos, though more experienced folks might know differently.
Jason