Jamie Searle
UNITED KINGDOM • + Follow
Edit Project
Tools, APP Software Used etc.
|
arduino IDEArduino
|
|
|
EasyEDA |
Description
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.
Code
ATTiny85 Arduino Code
Arduino
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
}
}
Schematic and Layout
Apr 17,2024
292 views
GameCube Power Switch for PC Front Panel
2 Layers PCB 29.4 x 44.8 mm FR-4, 1.6 mm, 1, HASL with lead, Black Solder Mask, White silkscreen
Converts the latching switch on the Nintendo GameCube into a momentary connection as required by PC motherboard front panel headers.
292
0
0
Published: Apr 17,2024
BOM(Bill of materials)
Centroid file
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
File Last Updated: 2024/04/17 (GMT+8)
File update record
2024-04-1720:12:14
Centroid file is updated.
2024-04-1720:12:14
Parts List (BOM) is updated.
2024-04-1720:12:14
Gerber file is updated.
Only PCB
PCB+Assembly
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-NonCommercial-NoDerivs (CC BY-NC-ND)
License.
- Comments(0)
- Likes(0)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by Jamie Searle
You may also like
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
157 1 1 -
-