|
arduino IDEArduino
|
|
|
|
EasyEDA |
GameCube Power Switch for PC Front Panel
GC2PC
This PCB is designed to allow the original GameCube power switch to function with the momentary switch required by the front panel headers on most PC motherboards. It is designed to fit exactly in place of the GameCube's original power switch PCB, minimizing the need for any physical modifications to the console's casing.

Users will need to provide their own GameCube power switch and handle the microcontroller programming, for which detailed documentation is supplied.
Features include:
- Direct compatibility with the GameCube's power switch housing.
- Attiny85 microcontroller for signal translation.
- SPI Programming interface.
- LED indicator for the 5V line.
const int switchPin = 3; // Pin connected to the switch (ATtiny85 pin 2, Arduino pin 3)
const int ledPin = 4; // Pin connected to the LED (ATtiny85 pin 3, Arduino pin 4)
int lastSwitchState; // Last stable state of the switch
unsigned long lastDebounceTime = 0; // Last time the switch state was toggled
unsigned long debounceDelay = 50; // Debounce delay to prevent noisy signals
void setup() {
pinMode(switchPin, INPUT_PULLUP); // Configure the switch pin with internal pull-up
pinMode(ledPin, OUTPUT); // Configure the LED pin as an output
lastSwitchState = digitalRead(switchPin); // Initialize the last known switch state
}
void loop() {
int currentSwitchState = digitalRead(switchPin); // Read the current state of the switch
// Check if the switch state has changed from the last read
if (currentSwitchState != lastSwitchState && (millis() - lastDebounceTime) > debounceDelay) {
lastDebounceTime = millis(); // Reset the debounce timer
// Toggle the LED for 1 second if the state changes
digitalWrite(ledPin, HIGH); // Turn on the LED
delay(1000); // Keep it on for 1 second
digitalWrite(ledPin, LOW); // Turn off the LED
lastSwitchState = currentSwitchState; // Update the last switch state
}
}
GameCube Power Switch for PC Front Panel
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Jamie Searle
-
-
AEL-2011 Power Supply Module
322 0 1 -
AEL-2011 50W Power Amplifier
296 0 1 -
-
-
Custom Mechanical Keyboard
565 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
230 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
237 0 1 -
-
-







