The ATXRaspi, manufactured by LowPowerLab (Part ID: LP5-100030), is a power management board specifically designed for the Raspberry Pi. It provides essential features such as safe shutdown, power-on reset, and GPIO-based power control. By integrating the ATXRaspi into your Raspberry Pi setup, you can protect your device from sudden power loss, ensuring a clean shutdown and preventing potential data corruption or hardware damage.
Parameter | Value |
---|---|
Input Voltage Range | 5V DC |
Maximum Current | 3A |
GPIO Control Pins | 2 (for shutdown and power control) |
Shutdown Trigger Voltage | 3.3V (logic HIGH) |
Dimensions | 1.5" x 1.0" (38mm x 25mm) |
Operating Temperature | -20°C to 70°C |
The ATXRaspi has a simple pinout for connecting to the Raspberry Pi and external components. Below is the pin configuration:
Pin Name | Pin Type | Description |
---|---|---|
VIN | Power Input | Connects to a 5V DC power source. |
GND | Power Ground | Ground connection for the power source and Raspberry Pi. |
GPIO_SHUTDOWN | GPIO Input | Connects to a GPIO pin on the Raspberry Pi to trigger a safe shutdown. |
GPIO_POWER | GPIO Output | Provides a signal to indicate the power state of the Raspberry Pi. |
BUTTON | Input | Connects to an external momentary push button for manual power control. |
OUT | Power Output | Supplies regulated 5V power to the Raspberry Pi. |
VIN
and GND
pins of the ATXRaspi.OUT
pin to the 5V power input pin of the Raspberry Pi.GND
pin to the Raspberry Pi's ground pin.GPIO_SHUTDOWN
pin to a GPIO pin on the Raspberry Pi (e.g., GPIO17).GPIO_POWER
pin to another GPIO pin for monitoring the power state.BUTTON
pin and ground. This button will allow manual power control.GPIO_SHUTDOWN
pin and initiate a safe shutdown when triggered.Below is an example Python script to monitor the GPIO_SHUTDOWN
pin and initiate a safe shutdown:
import RPi.GPIO as GPIO
import os
import time
SHUTDOWN_PIN = 17 # GPIO pin connected to ATXRaspi's GPIO_SHUTDOWN
GPIO.setmode(GPIO.BCM) GPIO.setup(SHUTDOWN_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP)
def shutdown_callback(channel): # Callback function to safely shut down the Raspberry Pi print("Shutdown signal received. Shutting down...") os.system("sudo shutdown -h now")
GPIO.add_event_detect(SHUTDOWN_PIN, GPIO.FALLING, callback=shutdown_callback, bouncetime=200)
print("Monitoring shutdown pin. Press Ctrl+C to exit.") try: while True: time.sleep(1) # Keep the script running except KeyboardInterrupt: print("Exiting script.") finally: GPIO.cleanup() # Clean up GPIO settings
safe_shutdown.py
on your Raspberry Pi.crontab
or a systemd service to ensure it runs automatically.Issue | Possible Cause | Solution |
---|---|---|
Raspberry Pi does not power on | Incorrect wiring or insufficient power | Verify connections and ensure the power source provides at least 2.5A. |
Shutdown does not trigger | GPIO pin not configured correctly | Check the GPIO pin configuration and ensure the script is running. |
Power cuts off unexpectedly | Overcurrent or unstable power source | Use a stable 5V DC power source with sufficient current capacity. |
Button does not respond | Faulty or miswired button | Check the button wiring and replace if necessary. |
Can I use the ATXRaspi with other single-board computers?
What happens if the power source is disconnected suddenly?
Can I use the ATXRaspi with a battery?
By following this documentation, you can effectively integrate the ATXRaspi into your Raspberry Pi projects, ensuring reliable power management and safe operation.