Debugging C Code of Heating Machine - PWM & Actual Current

  • Thread starter Thread starter rama1001
  • Start date Start date
  • Tags Tags
    Current Pwm
AI Thread Summary
The discussion revolves around debugging C code for a heating machine, specifically focusing on the relationship between PWM cycles and actual current. The original code adjusts PWM cycles based on the current generated by a transformer, but the user seeks to change this to constant PWM cycles regardless of current variations. There is confusion about whether constant PWM cycles require a constant current or if they are merely for customer display. Participants emphasize the need for clarity on duty cycles and suggest that the proposed changes may not align with traditional debugging practices. It is recommended that the user seek supervisor approval before proceeding with significant code modifications.
rama1001
Messages
130
Reaction score
1
Hi,
I am debugging a C code of a heating machine. I am so confused about real time current and programming control over all the parameters of the machine. The code was written by some one though, i understand it well until now.
Problem is that the previous code works according to the actual current and the PWM cycles are purely depending on the actual current. I want to change this varying PWM cycles to constant PWM cycles even though the current changes. I noticed that the PWM cycle generation was depend on the actual current that generated from the transformer and because of that reason these cycles are always changing their period time.

My doubt is that, if i make this to constant PWM cycles even though the actual current not same for all the working time. Is this to show only to customers or the current should also constant during this constant PWM cycles?
 
Engineering news on Phys.org
I guess I don't understand your post at all. The way I read it makes me believe that you have the cause and effect reversed. If the load doesn't change and the duty cycle of the PWM doesn't change, then how can the current change?
 
My take on this is that rama1001 is planning to change it from a variable period to a fixed period--and within that period vary the duty cycle. Such a major redesign falls outside my usual definition of "debugging".

I suggest that rama1001 get his supervisor's approval to proceed on this course before investing time in it. Can we assume the program does not control the heating satisfactorily as it stands?
 
mention of heaters and transformers suggests some form of AC power is being controlled.

is it possible that the code senses the AC signal and implements phase angle modulation control? this may appear as variable period PWM to somebody who wasn't aware of this method.
 
My guess is that the OP understands less than we even think. Nowhere in the original post do I see the words "duty cycle". What exactly does this mean:
I want to change this varying PWM cycles to constant PWM cycles.
I have never had a discussion of PWM without mentioning the words duty cycle.
 
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
Thread 'Electromagnet magnetic field issue'
Hi Guys We are a bunch a mechanical engineers trying to build a simple electromagnet. Our design is based on a very similar magnet. However, our version is about 10 times less magnetic and we are wondering why. Our coil has exactly same length, same number of layers and turns. What is possibly wrong? PIN and bracket are made of iron and are in electrical contact, exactly like the reference design. Any help will be appreciated. Thanks. edit: even same wire diameter and coil was wounded by a...
Back
Top