![]() | ![]() | ![]() |
| | |||||||
| 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. |
| | Thread Tools | Display Modes |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | Post a link to the video. |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Super Moderator | 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. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
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 | |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) |
| Experienced Member | 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 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| | (permalink) | |||
| Experienced Member | 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:
Quote:
Quote:
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net | |||
| | |
| | (permalink) |
| Experienced Member | (WHOOSH) that's the sound of your last post going over my head.
__________________ 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 |
| | |
| | (permalink) |
| Experienced Member | 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 |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |