Author Topic: generate A/C from a D/C power supply?  (Read 6034 times)

0 Members and 1 Guest are viewing this topic.

Offline rodcastlerTopic starter

  • Regular Contributor
  • *
  • Posts: 98
  • Country: cl
generate A/C from a D/C power supply?
« on: January 17, 2015, 11:03:53 pm »
Hi all, I need 9V AC at 1.5A to test an old C64 that runs on AC. I only have DC power on my bench and I was thinking of some sort of simple circuit made of tansistors driven by a function generator and get the required AC out of my DC bench supply. Is there a well-known way to achieve this?

Yes, I can easily get an AC transformer, and yes, I can potentially skip the recification on the machine and power it with DC. None of those options appeal to me because I don't get to learn what I'm abot to learn!
 

Offline electr_peter

  • Supporter
  • ****
  • Posts: 1303
  • Country: lt
Re: generate A/C from a D/C power supply?
« Reply #1 on: January 17, 2015, 11:20:55 pm »
1) Get a sin wave for some sort of function generator. Build powerful buffer/amplifier from op-amps or transistors.
or
2) buy a lab AC power supply ($$$)
or
3) just use a transformer with a required voltage. There are myriad of older type AC/DC adapters with transformers. Some of those adapters are of AC/AC type - no modification is needed.

EDIT: Do you really need an AC supply? Some devices formally require AC supply, but use internal rectification anyway - supply them with DC and they won't complain.
« Last Edit: January 17, 2015, 11:43:35 pm by electr_peter »
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: generate A/C from a D/C power supply?
« Reply #2 on: January 17, 2015, 11:37:40 pm »
1) Find a 9v dc adapter
2) Remove rectifier
3) Profit???
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: generate A/C from a D/C power supply?
« Reply #3 on: January 17, 2015, 11:48:11 pm »
Quote
Is there a well-known way to achieve this?

Oscillator + a power amplifier.
================================
https://dannyelectronics.wordpress.com/
 

Offline YU2

  • Contributor
  • Posts: 39
  • Country: de
Re: generate A/C from a D/C power supply?
« Reply #4 on: January 18, 2015, 12:58:26 am »
Quote
Is there a well-known way to achieve this?

Oscillator + a power amplifier.

Can audio amplifiers be used for that?
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: generate A/C from a D/C power supply?
« Reply #5 on: January 18, 2015, 01:21:45 am »
Sure, if the ac you desire is within the band of the audio amplifier.
================================
https://dannyelectronics.wordpress.com/
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: generate A/C from a D/C power supply?
« Reply #6 on: January 18, 2015, 01:22:10 am »
EDIT: Do you really need an AC supply? Some devices formally require AC supply, but use internal rectification anyway - supply them with DC and they won't complain.

Take a look at this thread. https://www.eevblog.com/forum/projects/commodore-64-replacement-psu-project/

Especially look at the schematic of the C64 just  inside the connector.  The C64 needs 5VDC and 9VAC, but the 9VAC is used to derive +12VDC and +5VDC internally. There's a part of the schematic there that's cut off, but I think it uses the AC frequency to feed the RTC. It might also use it to generate -12VDC somewhere on the board, but i read that this is only used for the RS232 ports.

for the 60Hz line frequency to feed the RTC, you can hack up an external 555 timer for that if you need to.

You can run the whole thing off DC, and you don't need to go to extremes generating AC for it.

EDIT: you might need to short pin 1 and 2 of the 7812 (remove the cap C90) and you don't need 9VDC UNREG if you don't use cassette tape.
EDIT2: there's some rewiring involved inside the unit, the point is you don't really need the AC at all.
« Last Edit: January 18, 2015, 01:35:37 am by codeboy2k »
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11891
  • Country: us
Re: generate A/C from a D/C power supply?
« Reply #7 on: January 18, 2015, 02:14:14 am »
Hi all, I need 9V AC at 1.5A to test an old C64 that runs on AC. I only have DC power on my bench and I was thinking of some sort of simple circuit made of tansistors driven by a function generator and get the required AC out of my DC bench supply. Is there a well-known way to achieve this?

Well now, 9 V at 1.5 A is about 14 W, and it corresponds to a load impedance of 6 ohms.

So if you have an audio amplifier that can output 20-25 W into 4 ohms you can feed it with a 50 Hz sine wave from a signal generator and turn up the volume until you get the 9 V output you need.

However, this is way more complicated than getting a 9 V transformer (or perhaps getting a 12 V transformer and adjusting the input voltage with a variac).

Overall, converting AC to DC is "simple". Converting DC to AC is "complicated".
 

Offline bugs

  • Contributor
  • Posts: 31
  • Country: 00
Re: generate A/C from a D/C power supply?
« Reply #8 on: January 18, 2015, 11:39:21 am »
http://www.banggood.com/buy/Class-d-amplifier.html
At 9v 1.5a sounds like you should be able to use a class D audio amplifier to have a reasonable efficiency.
Make sure you check for transients at startup and shutdown. 
 

Offline rodcastlerTopic starter

  • Regular Contributor
  • *
  • Posts: 98
  • Country: cl
Re: generate A/C from a D/C power supply?
« Reply #9 on: January 19, 2015, 06:32:09 am »
At 9v 1.5a sounds like you should be able to use a class D audio amplifier

Very interesting. I didn't think of audio amplifiers. I assume these will perform only within the audible range. Will they work at 50Hz? and how far up would they go on the higher end?

Now you all made me think of this as a permanent source of amplified A/C for octopus component testing and such type of requirements.

And just being curious: How about square or triangle waves? Will a class D audio amplifier work with any shape of wave?

Thank you all for your replies!
 

Online IanB

  • Super Contributor
  • ***
  • Posts: 11891
  • Country: us
Re: generate A/C from a D/C power supply?
« Reply #10 on: January 19, 2015, 06:49:57 am »
Audio amplifiers are going to have a design bandwidth, for example 20 Hz to 20 kHz. Frequencies outside this range are going to get rolled off.

In particular, square and triangle waves will have frequency components outside the range of the amplifier, so they will not be preserved on output.
 

Offline torr032

  • Regular Contributor
  • *
  • Posts: 88
  • Country: ba
Re: generate A/C from a D/C power supply?
« Reply #11 on: January 19, 2015, 11:18:30 am »
Audio amplifiers are going to have a design bandwidth, for example 20 Hz to 20 kHz. Frequencies outside this range are going to get rolled off.

In particular, square and triangle waves will have frequency components outside the range of the amplifier, so they will not be preserved on output.

This is really interesting, actually i never thought about it. Volume knob would be the voltage regulator, but how would I control the current flow?
 

Offline suicidaleggroll

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
Re: generate A/C from a D/C power supply?
« Reply #12 on: January 19, 2015, 01:15:30 pm »
This is really interesting, actually i never thought about it. Volume knob would be the voltage regulator, but how would I control the current flow?
You don't.  You control the voltage, the load controls the current.  If you're looking for a current limiter like you'd find in a lab supply, there won't be one.
 

Offline Seekonk

  • Super Contributor
  • ***
  • Posts: 1938
  • Country: us
Re: generate A/C from a D/C power supply?
« Reply #13 on: January 19, 2015, 08:35:10 pm »
Do a search on ebay for self oscillating half bridge.  Think of a power 555.
 

Offline oldway

  • Super Contributor
  • ***
  • !
  • Posts: 2172
Re: generate A/C from a D/C power supply?
« Reply #14 on: January 19, 2015, 09:21:34 pm »
Make a quase sine wave with two sincronised square wave inverters, one running at 3x mains frequency (180 or 150 Hz) and 3.2Vpeak and another running at mains frequency (60 or 50 Hz) and 9.6Vpeak.
The secundaries of the two transformers must be connected in serie, so you will have a quase sine wave of 12.8V peak and 9Vrms.
 
 

Offline bugs

  • Contributor
  • Posts: 31
  • Country: 00
Re: generate A/C from a D/C power supply?
« Reply #15 on: January 19, 2015, 11:49:35 pm »
if you want to make a 50/60 Hz square/triangle/etc that should not be a problem. Remember that your favorite music may use them, you can usually hear the difference quite clearly :-)
Even the 20th harmonic is only around 1kHz.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf