 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > RC Decay | Forum Quick Jump
|
|  Earl Foster Registered Member

       Date Joined Nov 2004 Total Posts : 171 | Posted 11/2/2009 8:23 PM (GMT -8) |   | I have been troubleshooting an RC Decay problem I experiencing without success. I designed a servo controller board that will allow me to adjust 3 servos normal and active positions using a standard RC Decay circuit and code. It works perfect on my breadboard each and every time. However, on my PCB I get spikes and the servos shake constantly while trying to calibrate them so I don't know if they are positioned correctly. The servos work smoothly during operation so I have ruled out power supply issues.
Since it works on the breadboard I have to assume it has something to do with my pcb layout. I have reviewed my schematic and pcb layout many times and everything seems to be in order. I also tried connecting the RC Decay circuit on the breadboard to an unused pin on the pcb with the same jerky results.
I am looking for ideas of what could be the problem and possible next steps in troubleshooting.
Thanks -earl
Per standard help protocol I have uploaded everything (Code, schematic, pcb layout, printout of normal and jerky decay). I use ExpressPCB/SCH if anybody wants to look over them. WWW.HAPB.NET
"Don't ask yourself what the world needs - ask yourself what makes you come alive, and then go do it." - H.T.Whitman Image Attachment :
 PST-Breadboard.jpg 81KB (image/pjpeg)This image has been viewed 23 time(s). | Image Attachment :
 PST-PCB.jpg 64KB (image/pjpeg)This image has been viewed 17 time(s). | | | File Attachment : SCBv4.sch 33KB (application/octet-stream) This file has been downloaded 2 time(s). File Attachment : SCBv4.pcb 24KB (application/octet-stream) This file has been downloaded 4 time(s). File Attachment : AdjustableRCDecay.spin 3KB (application/octet-stream) This file has been downloaded 3 time(s). | | Back to Top | | |
 |  StefanL38 Registered Member
        Date Joined Sep 2006 Total Posts : 958 | Posted 11/2/2009 10:54 PM (GMT -8) |   | if you want all forum members beeing able to help you easily provide PNG-graphics or jpg-graphics of ciruit and pcb-layout if you have an oscilloscope it would be useful to add screenshots of the scope how the spikes look like
best regards
Stefan | | Back to Top | | |
      |  kwinn Registered Member
        Date Joined Sep 2008 Total Posts : 1100 | Posted 11/3/2009 8:17 PM (GMT -8) |   | | It could also be that the extra capacitance of a breadboard that prevents the problem showing up there. | | Back to Top | | |
   |  potatohead 640 Pixels... :)

       Date Joined Sep 2006 Total Posts : 1340 | Posted 11/3/2009 8:48 PM (GMT -8) |   | | | |
  |  potatohead 640 Pixels... :)

       Date Joined Sep 2006 Total Posts : 1340 | Posted 11/3/2009 9:03 PM (GMT -8) |   | | | |
 |  whicker Registered Member
        Date Joined Apr 2007 Total Posts : 79 | Posted 11/4/2009 1:07 PM (GMT -8) |   | Is it just me, or is there a + intersection right at propeller chip pin #2?
That's actually tying it to pin #12, and pin #8 of the eeprom? (3.3V?) | | Back to Top | | |
  |  Bobb Fwed Registered Member
        Date Joined Apr 2008 Total Posts : 307 | Posted 11/4/2009 4:59 PM (GMT -8) |   | I know it may be a bit late for this (seeing as you already have your PCB made up). But I have a bit of a fondness for using ADCs for inputs like this. Getting the current pot position would be a simple matter of getting the ADC's value: 50% of the max value is middle, and as you move the pot, the value swings between 0% and 100%. They are fairly cheep ($2.20 for an eight channel from my supplier), and you could put pots on all eight channels. You could then add a capacitor to reduce any jitter received from your PCB design, or just smooth the changes in the input.
As to solving your currently problem, other than some PCB design problems, and the lack of power planes, I think you might just need more capacitors as others have stated. When in doubt decouple the ICs, and for power (on either side of the regulators) err on the side of larger capacitors (electrolytic: generally larger capacity means less ESR), and smaller ceramic caps as high frequency low pass filters. April, 2008: when I discovered the answers to all my micro-computational-botherations!
Some of my objects: MCP3X0X ADC Driver - Programmable Schmitt inputs, frequency reading, and more! Simple Propeller-based Database - Making life easier and more readable for all your EEPROM storage needs. String Manipulation Library - Don't make strings the bane of the Propeller, bend them to your will! | | Back to Top | | |
| Forum Information | Currently it is Saturday, November 21, 2009 11:36 AM (GMT -8) There are a total of 393,860 posts in 55,536 threads. In the last 3 days there were 84 new threads and 711 reply posts. View Active Threads
| | Who's Online | This forum has 17692 registered members. Please welcome our newest member, old guy. 54 Guest(s), 14 Registered Member(s) are currently online. Details Siri, keith_kw, Jay Kickliter, Mike Green, Bob Lawrence (VE1RLL), Dogg, hover1, ErNa, Harley, Sapieha, Electronegativity, Tubular, Leon, MicroDirk |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2009 |
|
|