CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

three pwm output for inverter application
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
flahaymen



Joined: 10 Mar 2013
Posts: 13

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 11, 2013 11:19 am     Reply with quote

2) Use the DC to drive a three phase invertor for a motor. yes

My experience on electronic is ok but no so good.


I will use 660DC Voltage for the inverter.
The motor most use 10A.
Really we have a dsp card+an inverter+motor but the system don't work we don't know the problem therefore we try to build another.


I don't understand the point e), but if I understand I can make a program for running a LED using PIC.
flahaymen



Joined: 10 Mar 2013
Posts: 13

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 11, 2013 11:25 am     Reply with quote

i will explain the desired goal


we tray to build an inverter + a control phase in order to increase and decrease the motor speed using 2 buton one for increasing speed and the other for decreasing speed.


And the program "in the pic" must take account these buton for generating the PWM signal applie on the inveter.
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 11:38 am     Reply with quote

flahaymen wrote:
2) Use the DC to drive a three phase invertor for a motor. yes

My experience on electronic is ok but no so good.


I will use 660DC Voltage for the inverter.
The motor most use 10A.
Really we have a dsp card+an inverter+motor but the system don't work we don't know the problem therefore we try to build another.


I don't understand the point e), but if I understand I can make a program for running a LED using PIC.


I do hope you realise 660V is deadly.

Your motor is a maximum of say 6kW.

point e). We get a lot of queries on the forum from students who've taken on a project way beyond there ability.
They can't either read a data sheet, follow the CCS manual or write the simplest PIC code.

Before you go any further you have to at least:-

f) Decide on a PWM switching frequency your chosen PIC can produce.
g) Build one phase only. Drive it from a signal generator. Check that you can get power from it, without it going BANG.
h).....

Mike
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 11:39 am     Reply with quote

Rather than concentrating on the term "PWM" maybe the OP needs to research "NCO" or Numerically Controlled Oscillator.
http://en.wikipedia.org/wiki/Numerically_controlled_oscillator
A PIC can easily do this for low audio frequencies and can generate multiple outputs with controlled phase relationships.
_________________
The search for better is endless. Instead simply find very good and get the job done.
temtronic



Joined: 01 Jul 2010
Posts: 9658
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 12:03 pm     Reply with quote

a 'must' download and read is IR application note AN-985 !!

It details a LOT of IMPORTANT information(beware HIGH ,LETHAL voltages !!!) as well as a simple motor test circuit using a 555 and 74175(similar to previous post circuit).

I would encourage you to read it and use LEDS for test purposes.You can use different colors(R,G,B) for the 3 phases or use a scope(4 channel would be nice) to observe the waveforms.

There are a lot of important details needed about the motor to design the correct driver however the 'command and control' section of your project(basic PIC code, LCD subsection, pushbutton subsection,etc.) should all be done before you tackle the PWM subsection.

If you divide the project into smaller tasks(functions) you should be able to complete the project fairly quickly.

hth
jay
flahaymen



Joined: 10 Mar 2013
Posts: 13

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 11, 2013 12:26 pm     Reply with quote

Mike Walne wrote:
flahaymen wrote:
2) Use the DC to drive a three phase invertor for a motor. yes

My experience on electronic is ok but no so good.


I will use 660DC Voltage for the inverter.
The motor most use 10A.
Really we have a dsp card+an inverter+motor but the system don't work we don't know the problem therefore we try to build another.


I don't understand the point e), but if I understand I can make a program for running a LED using PIC.


I do hope you realise 660V is deadly.

Your motor is a maximum of say 6kW.

point e). We get a lot of queries on the forum from students who've taken on a project way beyond there ability.
They can't either read a data sheet, follow the CCS manual or write the simplest PIC code.
Mike


Quote:
Before you go any further you have to at least:-

f) Decide on a PWM switching frequency your chosen PIC can produce.

THE PWM SWITCHING FREQUENCY IS 5KHZ

Quote:
g) Build one phase only. Drive it from a signal generator. Check that you can get power from it, without it going BANG.

I use any type of PIC or how i can start, because i will try to build a three phase inverter on ISIS. THEN I USE A PIC FOR OBTAIN THE THREE PWM SIGNAL.

CAN YOU HELP ME BY SOME EXAMPLE.
flahaymen



Joined: 10 Mar 2013
Posts: 13

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 11, 2013 12:48 pm     Reply with quote

temtronic wrote:
a 'must' download and read is IR application note AN-985 !!

It details a LOT of IMPORTANT information(beware HIGH ,LETHAL voltages !!!) as well as a simple motor test circuit using a 555 and 74175(similar to previous post circuit).

I would encourage you to read it and use LEDS for test purposes.You can use different colors(R,G,B) for the 3 phases or use a scope(4 channel would be nice) to observe the waveforms.

There are a lot of important details needed about the motor to design the correct driver however the 'command and control' section of your project(basic PIC code, LCD subsection, pushbutton subsection,etc.) should all be done before you tackle the PWM subsection.

If you divide the project into smaller tasks(functions) you should be able to complete the project fairly quickly.

hth
jay


Can you give me the links please
temtronic



Joined: 01 Jul 2010
Posts: 9658
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 1:12 pm     Reply with quote

www.irf.com

search location 'site' term 'an-985'
flahaymen



Joined: 10 Mar 2013
Posts: 13

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 11, 2013 1:21 pm     Reply with quote

temtronic wrote:
www.irf.com

search location 'site' term 'an-985'


Yes i found the file an-985.
But this is without PIC, I want a scheme where the PIC is used to generate the PWM.
temtronic



Joined: 01 Jul 2010
Posts: 9658
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 3:23 pm     Reply with quote

Nice thing about rainy days...I can read this forum and breadboard 'silly stuff'.

Honestly, you should spend 10 minutes and read that document.They(IR) supply a schematic that controls the IR2130 with a 555 timer and 74175.
It is not that difficult to replace those 2 chips with one PIC.Any PIC.Even the 16C84 will do the task.
Total time to build and program this 'proof of concept' is less than 2 hours.

I know, as it's sitting here in front of me ,though I used an 18F46K22 as it's my 'general purpose PIC' these days.

jay
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 5:25 pm     Reply with quote

Quote:
I use any type of PIC or how i can start, because i will try to build a three phase inverter on ISIS. THEN I USE A PIC FOR OBTAIN THE THREE PWM SIGNAL.

CAN YOU HELP ME BY SOME EXAMPLE.
This is getting ridiculous.
You've been given loads of hints, tips, pointers.
Now you're almost asking for a complete solution.
You propose using ISIS.
I've had my wrists slapped by the moderator.

I've had enough.
I'm out.

Mike
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Mon Mar 11, 2013 7:14 pm     Reply with quote

Read AN-985 and UNDERSTAND WHAT IT DOES AND HOW IT WORKS. Then program your PIC to do the same thing.
_________________
The search for better is endless. Instead simply find very good and get the job done.
flahaymen



Joined: 10 Mar 2013
Posts: 13

View user's profile Send private message Send e-mail

PostPosted: Tue Mar 12, 2013 1:02 am     Reply with quote

I think that Timer2 in PIC is related to PWM.

I want know if the timer 2 value will be fixed or will be changed during running algorithm.
temtronic



Joined: 01 Jul 2010
Posts: 9658
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Mar 12, 2013 5:42 am     Reply with quote

well it stopped raining overnight and this thread just got silly...
Others have offered great advice,trying to help you..
I gave you 99% of a working solution to have a PIC,any PIC, easily interface and control the IR2130 and you haven't even tried.
A program with less than 20 lines of code.....sigh
I'll help anyone if I can,providing they at least TRY to do SOME of the work,.sadly this isn't one of those times.

to quote Mike ...

"This is getting ridiculous.
You've been given loads of hints, tips, pointers.
Now you're almost asking for a complete solution.
You propose using ISIS.
--line omitted--
I've had enough.
I'm out.
...


on to read the next 'school project thread'...

jay
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group