|
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.
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- 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
-
A Compact Charging Breakout Board For Waveshare ESP32-C3
488 3 4 -
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
496 2 0 -
-
-
-
ESP32-C3 BLE Keyboard - Battery Powered with USB-C Charging
691 0 1 -
-
mammoth-3D SLM Voron Toolhead – Manual Drill & Tap Edition
676 0 1 -
-
AEL-2011 Power Supply Module
1351 0 2 -
AEL-2011 50W Power Amplifier
1233 0 2







