Generating SPWM using arduino-simulink environment

AI Thread Summary
The discussion focuses on generating sinusoidal pulse width modulation (SPWM) using Arduino and Simulink for an inverter board. The user successfully simulated SPWM logic in Simulink and confirmed that the Arduino output on pin 11 was functioning correctly. However, upon using specific blocks to generate SPWM, the output observed on the CRO was distorted and did not resemble the expected SPWM waveform. The user provided details on their Simulink configurations, including a fixed step size solver and specific frequencies for the triangle and sine waves. Assistance is requested to resolve the distortion issue in the SPWM output.
srinaath
Messages
51
Reaction score
2
hi all...am trying to generate sinusoidal pulse width modulation using arduino-simulink for my inverter board...I simulated the SPWM logic in simulink, then installed the required support package for arduino-simulink...but i am facing some problems...I started from basic...like linking arduino and PWM block as shown belowhttps://www.physicsforums.com/file:///C:\Users\ccbzak\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png I checked the output of Arduino pin11 from CRO and it was working fine….

Now I used this blocks to generate spwm…

https://www.physicsforums.com/file:///C:\Users\ccbzak\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png

When I checked the output from CRO…..it was distorted…literally I didn’t get any SPWM wave…

Help me out with problem…

My Simulink configurations are

Solver: fixed step size

Step size:1e-5

Triangle wave frequency is 8KHz and sine wave is 50Hz…
 
Last edited by a moderator:
Engineering news on Phys.org
ard_1.png

ard_2.png
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top