how to write pic code for transfer function in pic?

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

how to write pic code for transfer function in pic?

Postby mrbong » Wed Nov 23, 2011 7:21 pm

matlab can write transfer function. but how about pic?
can i write code for transfer function in pic?
anyone can guide me?
thanks :D
mrbong
Greenhorn
 
Posts: 2
Joined: Wed Nov 23, 2011 7:16 pm

Re: how to write pic code for transfer function in pic?

Postby Brian Griffin » Wed Nov 23, 2011 8:31 pm

Depends on the transfer function itself. Transfer functions can be very complex and difficult to be implemented in a small microcontroller/processor.

If it involves filtering, you may need a faster PIC.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: how to write pic code for transfer function in pic?

Postby mrbong » Thu Nov 24, 2011 6:26 pm

ya, my project involve filtering, that is recursive least square filter to minimize the error in a dc motor.
what i do is to develop source code for dc motor, can help me by giving existing example for motor? i need to run the motor with pic, because i am begineer, so i am quite blur with pic command. ;)
mrbong
Greenhorn
 
Posts: 2
Joined: Wed Nov 23, 2011 7:16 pm

Re: how to write pic code for transfer function in pic?

Postby Brian Griffin » Thu Nov 24, 2011 6:48 pm

mrbong WROTE:ya, my project involve filtering, that is recursive least square filter to minimize the error in a dc motor.
what i do is to develop source code for dc motor, can help me by giving existing example for motor? i need to run the motor with pic, because i am begineer, so i am quite blur with pic command. ;)


If you are using PIC16/18F, it isn't easy to do it because the processor is very limited in nature. You may have to try dsPIC ones.

Have you tested the filter in Matlab first? Make sure it outputs the correct values?
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests