caramoan tour package

caramoan tour package

Author Topic: Jittery Servos Need Help  (Read 850 times)

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1881
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Jittery Servos Need Help
« Reply #20 on: February 23, 2011, 10:53:45 PM »
Of course, WriteUSART(1234) sends a byte 0xD2. If you want to send a string of bytes then use putsUSART()
"Set your mind free!"

Philippine Electronics Forum

Re: Jittery Servos Need Help
« Reply #20 on: February 23, 2011, 10:53:45 PM »

Offline xyzled

  • Size AAA Battery
  • ***
  • Posts: 66
  • Pogi/Ganda Points: 1
Re: Jittery Servos Need Help
« Reply #21 on: February 24, 2011, 08:48:14 AM »
Sir, I got another question.

Is it okay to use the pins of vref+ and vref- as output pins when the Vref+ is Vdd? Or should I free those pins for vref purposes?

Philippine Electronics Forum

Re: Jittery Servos Need Help
« Reply #21 on: February 24, 2011, 08:48:14 AM »

Offline xyzled

  • Size AAA Battery
  • ***
  • Posts: 66
  • Pogi/Ganda Points: 1
Re: Jittery Servos Need Help
« Reply #22 on: February 24, 2011, 09:50:01 AM »
I tried to separate the supply terminal of the servos and MCU and it works fine now. It seems that the voltage drop is affecting the Vref+ configured as Vdd and affecting the final results of the conversion.

Philippine Electronics Forum

Re: Jittery Servos Need Help
« Reply #22 on: February 24, 2011, 09:50:01 AM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10728
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Jittery Servos Need Help
« Reply #23 on: February 24, 2011, 12:30:03 PM »
^ always remember to put capacitors very close to the Vref pin. same situation din kung merong separate analog Voltage pin.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: Jittery Servos Need Help
« Reply #23 on: February 24, 2011, 12:30:03 PM »

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1881
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Jittery Servos Need Help
« Reply #24 on: February 24, 2011, 06:42:24 PM »
To avoid the dependency on the quality of the supply, you should tie the reference not to PIC's supply but to a voltage derived from the supply of the flex sensors. If the supply of the flex sensor is greater than the PIC's supply, you can drop the voltage down using a voltage divider. If the flex sensor's supply isn't stable/clean, at least Vref will vary with it at the same time. That is one purpose of having a separate Vref. Another is to tie Vref to a precision voltage reference.
"Set your mind free!"

Philippine Electronics Forum

Re: Jittery Servos Need Help
« Reply #24 on: February 24, 2011, 06:42:24 PM »

Offline xyzled

  • Size AAA Battery
  • ***
  • Posts: 66
  • Pogi/Ganda Points: 1
Re: Jittery Servos Need Help
« Reply #25 on: February 24, 2011, 07:15:14 PM »
To avoid the dependency on the quality of the supply, you should tie the reference not to PIC's supply but to a voltage derived from the supply of the flex sensors. If the supply of the flex sensor is greater than the PIC's supply, you can drop the voltage down using a voltage divider. If the flex sensor's supply isn't stable/clean, at least Vref will vary with it at the same time. That is one purpose of having a separate Vref. Another is to tie Vref to a precision voltage reference.


Noted sir. I just wired a separate power supply used by the Servos since I use a PC power supply it has several terminals and upon observing the voltage supply or Vdd, it becomes stable. The flex sensor shares the supply with the Vdd and servos have separate one so it becomes more stable now.

Now I'm going to program my accelerometer. Thanks for the help, pogi points for sir motion55 and rdpzycho.

Offline xyzled

  • Size AAA Battery
  • ***
  • Posts: 66
  • Pogi/Ganda Points: 1
Re: Jittery Servos Need Help
« Reply #26 on: February 25, 2011, 12:17:07 PM »
I got another problem, I have 2 PICs in a circuit, the problem is solved last time when I only plug in one pic, but when 2 pics are plugged in the jitter starts again but only slight. What could be the other factor?

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10728
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Jittery Servos Need Help
« Reply #27 on: February 25, 2011, 12:20:35 PM »
^ para saan 'yung isa pang PIC?
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline xyzled

  • Size AAA Battery
  • ***
  • Posts: 66
  • Pogi/Ganda Points: 1
Re: Jittery Servos Need Help
« Reply #28 on: February 25, 2011, 12:34:10 PM »
bali 8 lang po kase yung kaya i control ng 1 Pic for servo, yung isang pic may extra 3 servos na i cocontrol po.

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10728
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Jittery Servos Need Help
« Reply #29 on: February 25, 2011, 10:54:09 PM »
subukan niyong i-separate ng supply at 'yung reference ayusin din. posibleng grounding issues ang problem. dapat multipoint 'yung ground para walang masyadong effects 'yung bounce ng ibang parts ng circuit.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline motion55

  • Technical People
  • Diesel Generator
  • *****
  • Posts: 1881
  • Pogi/Ganda Points: 244
  • Gender: Male
  • Been at this longer than you've been alive.
Re: Jittery Servos Need Help
« Reply #30 on: February 26, 2011, 06:54:19 AM »
Malamang noise related ang cause ng jitter. Pwede bawasan pa ang jitter using more filtering but best is to good PC layout techniques and a clean power supply + reference to reduce noise. Isolate the power supply to the servos from the PIC's and sensor's power supply.
"Set your mind free!"

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10728
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Jittery Servos Need Help
« Reply #31 on: February 26, 2011, 01:26:57 PM »
mas maganda siguro kung i-post niyo dito 'yung picture ng mismong hardware niyo. since you are dealing with multiple motors with medium current, malaki ang effect ng layout diyan plus 'yung wiring papunta sa servo.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline xyzled

  • Size AAA Battery
  • ***
  • Posts: 66
  • Pogi/Ganda Points: 1
Re: Jittery Servos Need Help
« Reply #32 on: February 28, 2011, 07:06:00 PM »
Mga sir, I tried to separate the supply, bali dalawa yung ginamit ko na supply from the PC PSU and ganun pa din po ang naging epekto. I think sa pcb layout na talaga yung mali ko kasi shared yung supply ng dalawang pic and ground nila iisa lang.

Since 9 motors yung gagamitin namin, I modified the program to control 9 servos, buti umabot yung timing nia. Hindi ko na po ginamit yung isang MCU to solve at least the jitter problem. Medyo may slight movement sya pero hindi na po masyadong noticeable.

I already finished our project and I'm gonna post the output after we present it again to the panel. Maraming salamat po sa mga tulong niyo. God Bless !

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10728
  • Pogi/Ganda Points: 632
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Jittery Servos Need Help
« Reply #33 on: February 28, 2011, 08:05:06 PM »
^ ang next na magandang gawin diyan, ayusin mo 'yung layout kahit may grade na kayo sa complete project. preparation na rin kasi 'yan for real life applications sa work kung sa design ka mapupunta. ;)
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: Jittery Servos Need Help
« Reply #33 on: February 28, 2011, 08:05:06 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com