Author Topic: PIC feedback  (Read 2104 times)

0 Members and 1 Guest are viewing this topic.

Offline yifei87Topic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
PIC feedback
« on: February 24, 2009, 06:46:10 PM »
I am running a project on a feedback system. Output to a motor and then connected to a position sensor (MA3 encoder) as a input
For my programming part, is it required PWM ? can anyone pls teach how to work it out?
Thank you

Offline yifei87Topic starter

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
Re: PIC feedback
« Reply #1 on: February 24, 2009, 06:53:08 PM »
I am using PIC16F877A

Offline cosminprund

  • Robot Overlord
  • ****
  • Posts: 284
  • Helpful? 8
Re: PIC feedback
« Reply #2 on: February 25, 2009, 02:48:00 AM »
Word it properly and then you'd be able to google. Your feedback system is called an Closed Loop Controller. That can be done with an PID controller, but you can skip letters from the "PID" if you want (lowering quality / convergence).

If you don't use PWM to controll the motor then the motor would be full speed forward, full speed backwards or stooped. It might work for your application but that would no longer be an PID, it would be an ID because the P's for "proportional" - your reaction would never be proportional. Also when people skip letters in the PID they usually skip the "I" or the "D" because the "P" is easier to implement.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: PIC feedback
« Reply #3 on: February 26, 2009, 10:03:31 PM »
What is your 'position sensor'? And PWM should always be used to control motors in feedback systems.

 


Get Your Ad Here

data_list