The Raspberry Pi 3 Model B+ is a versatile and popular single-board computer from the Raspberry Pi Foundation. Here’s a detailed description:
Key Features:
-
Processor:
- CPU: Broadcom BCM2837B0, Quad-core ARM Cortex-A53, 64-bit, running at 1.4 GHz.
- GPU: Broadcom VideoCore IV.
-
Memory:
-
Networking:
- Wi-Fi: Onboard 802.11n Wireless LAN.
- Ethernet: 10/100 Mbps Ethernet port.
- Bluetooth: Bluetooth 4.2.
-
Ports:
- USB Ports: 4 x USB 2.0 ports.
- HDMI: Full-size HDMI port.
- Audio: 3.5mm audio jack (composite video and audio).
- Camera Interface: CSI (Camera Serial Interface) connector.
- Display Interface: DSI (Display Serial Interface) connector.
-
Storage:
- MicroSD Card Slot: For the operating system and data storage.
-
Power:
- Power Supply: 5V via micro-USB connector.
- Power Consumption: Typically 2.5W to 3W.
-
GPIO:
- General Purpose I/O: 40-pin GPIO header, fully compatible with previous Raspberry Pi boards.
-
Dimensions:
- Size: Approximately 85.6mm x 56.5mm.
Improvements Over Previous Models:
- Enhanced Performance: The Raspberry Pi 3B+ has a faster 1.4 GHz processor compared to the 3B's 1.2 GHz, leading to better performance.
- Improved Networking: It features faster Ethernet (Gigabit over USB 2.0) and better Wi-Fi (dual-band 2.4 GHz and 5 GHz).
- Better Thermal Management: The board has improved heat dissipation features.
Use Cases:
- Learning and Development: Great for learning programming, electronics, and system design.
- Projects: Ideal for DIY electronics projects, media centers, retro gaming consoles, and home automation.
- Prototyping: Often used for prototyping embedded systems and IoT applications.
Overall, the Raspberry Pi 3B+ is a powerful and cost-effective tool for hobbyists, educators, and developers, providing a solid foundation for a wide range of computing tasks.
![](https://raspberrypi.vn/wp-content/uploads/2018/05/raspbplus-overview.jpg)
import RPi.GPIO as GPIO
import time
# Set up the GPIO mode to BCM
GPIO.setmode(GPIO.BCM)
# Define GPIO pins
LED_PIN = 17 # GPIO pin connected to the LED
BUTTON_PIN = 18 # GPIO pin connected to the pushbutton
# Set up the GPIO pins
GPIO.setup(LED_PIN, GPIO.OUT) # Set LED pin as an output
GPIO.setup(BUTTON_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Set button pin as input with pull-up resistor
# Main loop to monitor the button and control the LED
try:
while True:
# Check if the button is pressed
button_state = GPIO.input(BUTTON_PIN)
if button_state == GPIO.LOW: # Button pressed (since the button pulls the pin LOW)
GPIO.output(LED_PIN, GPIO.HIGH) # Turn the LED on
print("Button Pressed! LED ON")
else:
GPIO.output(LED_PIN, GPIO.LOW) # Turn the LED off
print("Button Released! LED OFF")
time.sleep(0.1) # Delay for debouncing and to avoid high CPU usage
except KeyboardInterrupt