Hello!
I am trying to build an DC to AC inverter. I know of the H-bridge kind, but I kinda wanted to try my own way first to learn a little bit because why not!
I first created a sin wave using an R2R DAC with an arduino and a bunch of resistors. Then I rectified this, so when the signal goes through an op amp, I can have one rail set to ground and the other set to a little above what I want to amplify the signal to. This allows me to only have to use one power supply on the op amp, because the rectified signal is only in either the positive voltage or negative voltage.
Where I am having trouble is getting the rectified sine wave back to an oscillating wave with both positive and negative voltage.
I came up with this idea: (idea.jpg)
it uses a 555 timer to created a square wave. Also, I used a pmos and nmos to create an inverter. When the 555 wave is at logic low, the bottom switch is off, but the inverter gate is on, which allows the rectified sine wave to flow into the load in one direction.
in the next period of the rectified sine wave, the 555 is at logic high, which means the inverter cmos gate is off, and the bottom switch is on, allowing the sine wave to pass through the load from the other direction. if this is correct, then i should get a pure sine wave over the load.
in the picture, blue marker is logic low and red is logic high of the 555 wave.
I tried to simulate this in ltspice and have attatched the file, but it didnt come out as planned. I have tried trouble shooting, adding pull down resistors ect,. but nothing seems to work. In my mind, i thought there is some potential here for this to work with the cmos inverter gate.
The reason I wanted to use a cmos inverter was because if I could use only one 555 timer. If i used two 555s, they would have to switch at the same frequency, but have different time delays in order to flip flop the rectified sin wave signal over the load. I couldn't figure out how to do a time delay on the 555. I looked up the monostable circuit for the 555, but this eventually turns off, and I wouldn't want it to in my circuit.
Any help would be appreciated. Thanks!