Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 9th May 2008, 07:34 PM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default ZFF Self-Modulating PWM

In one of his videos on Youtube, ZeroFossilfuel, a member of one of the boards I'm a member of, mentioned creating a PWM that would self modulate the levels of frequency and duty cycle of the output of his PWM based on the loading of the output. It's been a while since I watched that video, but it has really created a stir within my mind. How would one do that without using the switches or pots that most PWMs use? I'm not asking for any design schematics for myself, but for anyone who wants to contribute to this Idea. Feel free to post your ideas here and see if they could be incorporated into a PWM that could used for multiple tasks.
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 9th May 2008, 07:38 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

Post a link to the video.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 9th May 2008, 07:39 PM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

Ok, I'm trying to find the video now, but he only mentions it in passing as the video runs
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 9th May 2008, 08:04 PM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

here's one link to one of his videos but it's not the one im looking for. but he kind of describes what he is gonna do

http://www.youtube.com/watch?v=4Ci5OlPlJ68
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 10th May 2008, 11:22 AM   (permalink)
Experienced Member
Ubergeek63 is a jewel in the roughUbergeek63 is a jewel in the rough
Default

Well there are two "self modulating" regulator types. Hysteretic, which controls the switch directly from the output voltage, and peak current constant off time, which is kind of self explanatory.

There are chips for both of them. A good one to try would be the LM3485
Ubergeek63 is offline   Reply With Quote
Old 10th May 2008, 05:56 PM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

How would one go about incorporating the LM3485 into the PWM circuit to replace the pots that change frequency and duty cycle? I'm going to try designing a circuit using the basics of a dual 555 timer IC PWM. Am I going to have to any of the other parts of the circuit if I incorporate the LM3485 into the circuit?
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 10th May 2008, 07:11 PM   (permalink)
Super Moderator
 
Nigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to beholdNigel Goodwin is a splendid one to behold
Default

Perhaps you might try explaining exactly what you're trying to do?, I don't know about anyone else, but I'm pretty confused!.

I suspect you're confusing yourself (and us) with what you mean by PWM?.

Very basically there are two types:

1) Speed control - you have a pot controlling either frequency or duty, this adjusts the amount of power to the motor, and thus the speed.

2) Power supply - there is feedback from the output that regulates the PWM (again either frequency or duty), to maintain a constant output.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 10th May 2008, 09:45 PM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

Quote:
Originally Posted by Nigel Goodwin
Perhaps you might try explaining exactly what you're trying to do?, I don't know about anyone else, but I'm pretty confused!.

I suspect you're confusing yourself (and us) with what you mean by PWM?.

Very basically there are two types:

1) Speed control - you have a pot controlling either frequency or duty, this adjusts the amount of power to the motor, and thus the speed.

2) Power supply - there is feedback from the output that regulates the PWM (again either frequency or duty), to maintain a constant output.
@Nigel

I didn't mean to confuse you, but it is the second one, where feedback from the output regulates the frequency or duty cycle to maintain a constant output. ZFF mentions that he wants it to start at about 37 amps and when the Hydrogen booster cell gets up to a certain temp keep the input of the booster to a certain stable current level.
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 10th May 2008, 11:17 PM   (permalink)
Experienced Member
 
Blog Entries: 2
gramo is just really nicegramo is just really nicegramo is just really nicegramo is just really nice
Default

I'm just having a stab in the dark here, but consider;


If you have a current sensing resistor (say 0.1 Ohms) inline with the PWM controlled output, then as current requirements increase, so too does the peak voltage drop over the resistor.

As this voltage gets higher, a micro controller could sense it and decrease the duty cycle of the PWM signal, effectively reducing the current available.

A 50% duty cycle would provide one half the current that a 100% duty cycle could.

The end result would be a constant current source through PWM for a variable load
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline   Reply With Quote
Old 10th May 2008, 11:47 PM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

would there be a way of setting an upper and lower limit to the frequency and/or duty cycle to keep the output voltage and/or current at a certain range?
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 11th May 2008, 12:36 AM   (permalink)
Experienced Member
 
Blog Entries: 2
gramo is just really nicegramo is just really nicegramo is just really nicegramo is just really nice
Default

with a micro, for sure


Code:
PWM.SetFreq(5000, 50) 
While True

    If ADin(0) > 50 Then
        PWMDuty = PWMDuty - 1
        SetDutyPercent(PWMDuty)
    ElseIf ADin(0) < 50 Then
        PWMDuty = PWMDuty + 1
        SetDutyPercent(PWMDuty)
    EndIf

    DelaymS(50)

Wend
This program will setup a 5Khz PWM with a 50% duty cycle.

From there it will continually monitor (once every 50mS) the voltage over the current sensing resistor. If it increases, then it decreases the DutyCycle and vise versa... forever


Breakdown on ADC if your not familiar;
As the ADC results for PIC's are 10Bit, a sample of 5 volts will return 1023 (10 Bit binary number = 1111111111, which equals 1023 in decimal), and a sample of 2.5 volts would read 511, therefore a sample of 50 as the program suggest would monitor 0.048 Volts.
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline   Reply With Quote
Old 11th May 2008, 12:48 AM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

hrrm interesting, where would I put the micro? and what micro or PIC would you suggest that I use for this gramo? and could I incorporate a section that would also control the frequency of the PWM? I have several different PWM schematic drawings here on my computer, so I don't need the main PWM drawings. I just need to know where i can drop the changes in so I can modulate the frequency and/or the duty cycle of the PWM using the changes in the loading by the Hydrogen on Demand booster cell. I know in most of the PWM drawings that I have seen the frequency and duty cycles controlled by 2 or more pots. Would I have to remove those pots and drop the PIC or Micro there and wire it into the inputs and outputs of the IC?
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 11th May 2008, 01:57 AM   (permalink)
Experienced Member
 
Blog Entries: 2
gramo is just really nicegramo is just really nicegramo is just really nicegramo is just really nice
Default

There's a lot of fundamentals your missing straight up here, such as the hardware peripherals of PIC micros and simple programming

But to further answer your questions,

Quote:
hrrm interesting, where would I put the micro? and what micro or PIC would you suggest that I use for this gramo?
The PIC micro would be in your application circuit, and should be isolated with an optocoupler to high power devices. I'd use an 18F PIC Micro, and a program development tool called Swordfish



Quote:
I just need to know where i can drop the changes in so I can modulate the frequency and/or the duty cycle of the PWM using the changes in the loading by the Hydrogen on Demand booster cell.
I think it best that you make some simple programs to begin with. Save a copy of Davids PWM module found here and then start experimenting

Quote:
I know in most of the PWM drawings that I have seen the frequency and duty cycles controlled by 2 or more pots. Would I have to remove those pots and drop the PIC or Micro there and wire it into the inputs and outputs of the IC?
You can connect the POT's to the IC for both frequency and duty cycle control. By using the Analogue to Digital Converting peripherals built in to almost every PIC micro, you can have a direct interface with the devices
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline   Reply With Quote
Old 11th May 2008, 02:09 AM   (permalink)
Experienced Member
 
skeeterb is on a distinguished road
Send a message via ICQ to skeeterb Send a message via AIM to skeeterb Send a message via MSN to skeeterb Send a message via Yahoo to skeeterb
Default

(WHOOSH) that's the sound of your last post going over my head. That sounds way too complex for me. I watched one of your tutorial videos on your site and it sounds pretty easy, but the stuff you mentioned in your post is way over my head. I was just trying to figure out a way of controlling frequency and duty cycle of a PWM, and PICs sound like a way to go, but its out of my league as a newbie like myself. I know my idea is an advanced project, but I want to find a way that removes the manual controls for a PWM and allows it to regulate itself depending on the loading of the output.
__________________
We are the BORG. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service US. RESISTANCE IS FUTILE
skeeterb is offline   Reply With Quote
Old 11th May 2008, 02:22 AM   (permalink)
Experienced Member
 
Blog Entries: 2
gramo is just really nicegramo is just really nicegramo is just really nicegramo is just really nice
Default

Give me some variables, I'll see what I can come up with

Target Application Voltage and Current Requirements:
Target Application Default PWM Frequency:
Target Application Default PWM Duty Cycle:

Maximum PWM Frequency:
Minimum PWM Frequency:

Maximum PWM Duty Cycle:
Minimum PWM Duty Cycle:
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
PWM Sort of question AtomSoft Micro Controllers 10 30th April 2008 02:32 PM
PWM feature doubt raviram87 Micro Controllers 3 6th April 2008 03:56 AM
PWM signal problem iznalgnaij Robotics Chat 4 25th March 2008 12:40 PM
PIC PWM outputs? Andy1845c Micro Controllers 33 30th November 2007 03:06 AM
PWM using software AtoD jeremygaughan Micro Controllers 11 27th November 2007 11:11 PM



All times are GMT. The time now is 10:41 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.