Welcome, Guest. Please login or register.

Author Topic: Amiga ATX power switch  (Read 1909 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Amiga ATX power switch
« on: July 31, 2008, 11:04:08 PM »
Hi,

Has anyone tried to implement the ATX power switching circuit here: http://www.ianstedman.co.uk/Amiga/amiga_hacks/Amiga_Power_supplies/body_amiga_power_supplies.html

I did it by the book but for some reason, the schematic simply did not work, ie. pushing the power button did nothing. After checking and double checking with multimeter, I accidentally turned on the PSU and found out that removing the 100k resistor and replacing it with a wire, the circuit started to work.

I'd just like to know if anyone has had success with the original schema, as I did not find any errors on my protoboard connections.
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480
 

Offline redrumloa

  • Original Omega User
  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 10126
    • Show only replies by redrumloa
Re: Amiga ATX power switch
« Reply #1 on: July 31, 2008, 11:08:10 PM »
Not this one, but I have converted ATX power supplies for Amigas before. This method seems to be a bit excessive.
Someone has to state the obvious and that someone is me!
 

Offline Mugo

  • Full Member
  • ***
  • Join Date: Jan 2004
  • Posts: 153
    • Show only replies by Mugo
Re: Amiga ATX power switch
« Reply #2 on: July 31, 2008, 11:45:56 PM »
The R4 (100k) discharges C1 (100nF) when you press the button. When the Pin3 of IC1A reaches 0V, the Q (Pin5) goes to low level (0V) to turn the PSU on.

If your 100nF capacitor is defective, the circuit can reacts in a wrong way.

Also, note that you should keep the button pressed for some seconds (or some fraction) until the circuit reacts. This time is determined by the C1 and R4 values.

Try to reduce the R4 value to 47k and below, until you find a satisfatory timing.

I don't recomend to use a wire in the place of the R4.
 

Offline rkauer

  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 3263
    • Show only replies by rkauer
Re: Amiga ATX power switch
« Reply #3 on: August 01, 2008, 02:19:21 AM »
 It depends on what you want with the ATX power supply:

 - Use the ATX PSU to substitute the original brick?

 If the answer is yes, then you don't even need the circuit! Just carefully open the PSU, locate the green wire on the board and route it to a pole of an on-off switch.

 The other pole must be connected to ground (any black wire) to the PSU start to work.

 [color=ff0000]BEWARE: the innards of the PSU have high voltages! If you don't have experience with switching circuits, at least waits half an hour before opening the PSU case![/color][/b]

- Feed an Amiga inside a tower?

 Like Marcelo told, adjust the resistor (R4) and capacitor (C1) network to match your needs, if you want to use the circuit inside a tower.

 Or to use the circuit with a pico-PSU inside the desktop Amiga.(Hint!)
Goodbye people.

I\'ll pop on from time to time, RL is acting up.
 

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Re: Amiga ATX power switch
« Reply #4 on: August 01, 2008, 11:28:22 AM »
Quote

Mugo wrote:

If your 100nF capacitor is defective, the circuit can reacts in a wrong way.

Also, note that you should keep the button pressed for some seconds (or some fraction) until the circuit reacts. This time is determined by the C1 and R4 values.

Try to reduce the R4 value to 47k and below, until you find a satisfatory timing.


The capacitor was not at fault as I used multiple different ones and no luck. I also thought the the resistor was at fault. However, one could also simplify the whole schematic if the switch is already debounced as I think ATX power switches are - I might be wrong though.

Mikko.
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480
 

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Re: Amiga ATX power switch
« Reply #5 on: August 02, 2008, 12:06:56 PM »
Tried different resistor sizes, still no luck.

This makes me crazy as the schematic is really simple and I see no reason why it should not work. The debounce in this case actually should work so that C1 charges fast in order to generate a clock pulse (clk is posedge) and it really does not matter how fast it discharges as negative edge has no function at all. Of course R4 reduces ripple from the button as it reduces the discharge speed so you would not get posedge triggered by accident.

All in all, this still does not work unless R4 is removed altogether and I can assure you the protoboard is correctly wired. Maybe my 7474s are borked and sink too much current.
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480
 

Offline motorollin

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Amiga ATX power switch
« Reply #6 on: August 02, 2008, 12:17:14 PM »
I don't understand the need for all this circuitry. Surely you can just take the required voltages from the ATX connector (see here), then connect pin 14 to ground with a latching switch. I did exactly this and it worked perfectly.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Re: Amiga ATX power switch
« Reply #7 on: August 02, 2008, 12:24:26 PM »
@moto: I want to be able to use the original ATX power switch in order to make a perfect case mod :-)
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480
 

Offline taunusand

  • Hero Member
  • *****
  • Join Date: Oct 2007
  • Posts: 512
  • Country: dk
  • Gender: Male
    • Show only replies by taunusand
    • www.amiga.dk
Re: Amiga ATX power switch
« Reply #8 on: August 02, 2008, 01:35:47 PM »
You can just replace the switch with a regular one, this way you can still keep the original button in the front of the cabinet :-)
A1200, Blizzard 030, 2+32MB ram, 4GB CF, pcmcia netcard, Kickstart 3,1
A600, 2MB chip ram+4Mb pcmcia S-RAM, Kickstart 3,1
CD32 - Just for fun  :-D
 

Offline Hans_

Re: Amiga ATX power switch
« Reply #9 on: August 02, 2008, 03:49:19 PM »
@redrumloa

Why is this circuit excessive? It's a single chip with a few resistors and capacitors.

@motorollin

There isn't much in the circuit. A single d-latch (IC1 a) toggles the ATX power on/off pin whenever someone pushes the button. A capacitor and resistor (C1 & R4) ensure that you can't rapidly switch it on and off due to the switch bouncing.

The second d-latch (IC1 b) is unused, but you have to tie its inputs down, or the latch will switch on and off like crazy and waste power. You can't buy a single-latch chip.

The other capacitor is a decoupling capacitor to ensure a stable power supply to the chip (yes it's necessary) while the other resistors simply pull the input voltages to the chip up to 5V.

Hans
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
 

Offline Hans_

Re: Amiga ATX power switch
« Reply #10 on: August 02, 2008, 04:04:49 PM »
Looking at that circuit again, I don't think that tying all the +5V pins together is a good idea. It's definitely not necessary for the power switching circuit, and your Amiga won't need that much current either. These pins could be connected to separate +5V outputs from within the power supply and are supposed to supply several amps each (IIRC). Any disparity in +5V from any of these will cause currents to flow between the multiple +5V outputs. At the bare minimum, it's a waste of power.

Hans
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
 

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Re: Amiga ATX power switch
« Reply #11 on: August 02, 2008, 05:46:09 PM »
Quote

Hans_ wrote:
Looking at that circuit again, I don't think that tying all the +5V pins together is a good idea.


I intend not to tie the 5V lines together but instead use single 5V for the Amiga and power the rest of the system using molex connectors from the PSU. Only exception to this rule is feeding more power to the motherboard (for BPPC) using the floppy connector.
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480
 

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Re: Amiga ATX power switch
« Reply #12 on: August 04, 2008, 08:38:50 AM »
Well well well. I finally decided to check out the actual board file with Eagle. It seems that the PNG is outdated and the Eagle file has pretty much the same circuit (apart from one 4K7 resistor instead of 10K) that I made. My hunch was that the resistor was not needed as 74LS74 clock is Schmitt-triggered.
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480
 

Offline Hans_

Re: Amiga ATX power switch
« Reply #13 on: August 04, 2008, 02:11:33 PM »
Quote

mikolas wrote:
Well well well. I finally decided to check out the actual board file with Eagle. It seems that the PNG is outdated and the Eagle file has pretty much the same circuit (apart from one 4K7 resistor instead of 10K) that I made. My hunch was that the resistor was not needed as 74LS74 clock is Schmitt-triggered.


The resistor on the clock line is needed to pull the input up to 5V when the switch isn't pressed, so it is necessary. It is also part of a low-pass RC filter (R2 and C1) that prevents the switch bouncing from triggering the clock input multiple times for a single press. All switches bounce a little, that is, the contact will bounce up and down for a few milliseconds, causing the signal to fluctuate.

The value of R2 is pretty flexible though, so 10K should still work fine.

Hans
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more. Home of the RadeonHD driver for Amiga OS 4.x project.
 

Offline mikolasTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2007
  • Posts: 76
    • Show only replies by mikolas
    • http://www.mikolas.net
Re: Amiga ATX power switch
« Reply #14 on: August 04, 2008, 02:20:22 PM »
@Hans_: Yes I meant you don't need a resistor for capacitor discharge, as it is also missing from Ian's proper Eagle file. A pull-up is of course necessary to keep the clock line high when the button is not pressed.
A1200, Apollo 1260@60, 64MB FAST, Indivision AGA
Wintel Core i7, 8GB, GTX480