SPG30-300K PID control with Arduino

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

SPG30-300K PID control with Arduino

Postby bureto » Thu Jun 06, 2013 12:46 pm

Hi guys,

I'm curious if there anyone that done this before?

Can I have a look at your code if you done so?

I'm new in Arduino and PID control.

Could anyone teach me?

:(
bureto
Freshie
 
Posts: 6
Joined: Wed Jun 05, 2013 5:53 pm

Re: SPG30-300K PID control with Arduino

Postby shahrul » Thu Jun 06, 2013 12:54 pm

bureto WROTE:Hi guys,

I'm curious if there anyone that done this before?

Can I have a look at your code if you done so?

I'm new in Arduino and PID control.

Could anyone teach me?

:(

Sure many have done PID. You search PID, understand the equation then try to write in C Languange..
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: SPG30-300K PID control with Arduino

Postby bureto » Thu Jun 06, 2013 2:12 pm

shahrul WROTE:
bureto WROTE:Hi guys,

I'm curious if there anyone that done this before?

Can I have a look at your code if you done so?

I'm new in Arduino and PID control.

Could anyone teach me?

:(

Sure many have done PID. You search PID, understand the equation then try to write in C Languange..

Ya many have done PID but how to tune it?
I'm currently trying to do a position position control with the SPG30-300K DC geared motor.
I didn't know how to tune the Kp, Ki, and Kd.

how should i do it?
bureto
Freshie
 
Posts: 6
Joined: Wed Jun 05, 2013 5:53 pm

Re: SPG30-300K PID control with Arduino

Postby shahrul » Thu Jun 06, 2013 2:43 pm

bureto WROTE:Sure many have done PID. You search PID, understand the equation then try to write in C Languange..

Ya many have done PID but how to tune it?
I'm currently trying to do a position position control with the SPG30-300K DC geared motor.
I didn't know how to tune the Kp, Ki, and Kd.

how should i do it?[/quote]
Tune just try-and-error. Any values can be used but don't know which one is the best. Here the example DC Motor positioning.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: SPG30-300K PID control with Arduino

Postby bureto » Thu Jun 06, 2013 4:52 pm

shahrul WROTE:
bureto WROTE:Sure many have done PID. You search PID, understand the equation then try to write in C Languange..

Ya many have done PID but how to tune it?
I'm currently trying to do a position position control with the SPG30-300K DC geared motor.
I didn't know how to tune the Kp, Ki, and Kd.

how should i do it?

Tune just try-and-error. Any values can be used but don't know which one is the best. Here the example DC Motor positioning.[/quote]
So there isn't any other way to tune it?
bureto
Freshie
 
Posts: 6
Joined: Wed Jun 05, 2013 5:53 pm

Re: SPG30-300K PID control with Arduino

Postby robosang » Thu Jun 06, 2013 6:02 pm

Agreed with shahrul

Another method? Simulation, get all the parameters needed, study the formula, then tune it, which one you prefer? :mrgreen:
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: SPG30-300K PID control with Arduino

Postby ober » Sun Jun 09, 2013 8:36 am

Although you can tune it using simulation, but as robosang said, you will need many parameters of the system. We do not have that :) Therefore, normally we did it as shahrul pointed out, trial and error.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: SPG30-300K PID control with Arduino

Postby yonghui » Mon Jun 10, 2013 10:14 am

Hi,
mayb u can try to tune following the step in Ziegler–Nichols method under this article

http://en.wikipedia.org/wiki/PID_controller
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: SPG30-300K PID control with Arduino

Postby bureto » Wed Jun 19, 2013 12:39 pm

Thanks guys,

I used trial and error.
it working fine now.
bureto
Freshie
 
Posts: 6
Joined: Wed Jun 05, 2013 5:53 pm


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 15 guests

cron