Stufin
Home Quick Cart Profile

Elecrow - CrowPi2 - All-in-One Raspberry Pi STEM Laptop, FCC/CE Certified, Space Grey, English Keyboard, EU Plug, Basic Kit (No Raspberry Pi)

Buy Now on Stufin

Pin Configuration

  • Elecrow CrowPi2 - All-in-One Raspberry Pi STEM Laptop Pinout Guide
  • The Elecrow CrowPi2 is a comprehensive, FCC/CE certified, space grey laptop designed for STEM education and IoT projects, built around the Raspberry Pi platform (Raspberry Pi not included in the basic kit). This guide provides a detailed explanation of the pins on the CrowPi2 and how to connect them.
  • Pinout Structure:
  • The CrowPi2 features a 40-pin GPIO header, similar to the Raspberry Pi, with additional interfaces and connections specific to the laptop's design. We will break down the pinout into sections for clarity:
  • GPIO Header (Raspberry Pi compatible):
  • The GPIO header is divided into two rows of 20 pins each, with the following pinout:
  • Row 1:
  • 1. 3V3 Power: 3.3V power supply
  • 2. 5V Power: 5V power supply
  • 3. GPIO 2: GPIO pin 2 (input/output)
  • 4. GPIO 3: GPIO pin 3 (input/output)
  • 5. GPIO 4: GPIO pin 4 (input/output)
  • 6. GND: Ground
  • 7. GPIO 14: GPIO pin 14 (input/output)
  • 8. GPIO 15: GPIO pin 15 (input/output)
  • 9. GPIO 17: GPIO pin 17 (input/output)
  • 10. GPIO 18: GPIO pin 18 (input/output)
  • 11. GPIO 27: GPIO pin 27 (input/output)
  • 12. GPIO 22: GPIO pin 22 (input/output)
  • 13. GPIO 23: GPIO pin 23 (input/output)
  • 14. GND: Ground
  • 15. GPIO 24: GPIO pin 24 (input/output)
  • 16. GPIO 10: GPIO pin 10 (input/output)
  • 17. GPIO 9: GPIO pin 9 (input/output)
  • 18. GPIO 25: GPIO pin 25 (input/output)
  • 19. GPIO 11: GPIO pin 11 (input/output)
  • 20. GPIO 8: GPIO pin 8 (input/output)
  • Row 2:
  • 21. UART TXD: UART transmit data
  • 22. UART RXD: UART receive data
  • 23. GPIO 0: GPIO pin 0 (input/output)
  • 24. GPIO 1: GPIO pin 1 (input/output)
  • 25. GPIO 4: GPIO pin 4 (input/output)
  • 26. GPIO 5: GPIO pin 5 (input/output)
  • 27. GPIO 6: GPIO pin 6 (input/output)
  • 28. GPIO 12: GPIO pin 12 (input/output)
  • 29. GPIO 13: GPIO pin 13 (input/output)
  • 30. GND: Ground
  • 31. GPIO 19: GPIO pin 19 (input/output)
  • 32. GPIO 16: GPIO pin 16 (input/output)
  • 33. GPIO 26: GPIO pin 26 (input/output)
  • 34. GPIO 20: GPIO pin 20 (input/output)
  • 35. GPIO 21: GPIO pin 21 (input/output)
  • 36. 3V3 Power: 3.3V power supply
  • 37. 5V Power: 5V power supply
  • 38. GPIO 7: GPIO pin 7 (input/output)
  • 39. GPIO 28: GPIO pin 28 (input/output)
  • 40. GND: Ground
  • Additional Interfaces and Connections:
  • 1. HDMI Output: HDMI output for connecting to external displays
  • 2. USB-A ports: 2x USB-A ports for connecting peripherals
  • 3. USB-C port: USB-C port for power delivery and data transfer
  • 4. 3.5mm Audio Jack: 3.5mm audio jack for headphones or speakers
  • 5. MicroSD Card Slot: MicroSD card slot for expanding storage
  • 6. Keyboard and Touchpad Connectors: Internal connectors for the laptop's keyboard and touchpad
  • 7. Speaker Connectors: Internal connectors for the laptop's speakers
  • 8. Battery Connector: Internal connector for the laptop's battery
  • 9. Power Button Connector: Internal connector for the power button
  • 10. LED Indicator Connectors: Internal connectors for the laptop's LED indicators
  • Connecting the Pins:
  • When connecting peripherals or devices to the CrowPi2, ensure you use the correct voltage and signal levels to avoid damage to the board or components. Here are some general guidelines:
  • Use the 3.3V power supply pins (pin 1, 36) to power devices that require 3.3V.
  • Use the 5V power supply pins (pin 2, 37) to power devices that require 5V.
  • Use the GPIO pins to connect devices or peripherals that require digital input/output signals.
  • Use the UART pins (pin 21, 22) for serial communication with devices that support UART protocol.
  • Use the HDMI output to connect to external displays.
  • Use the USB-A ports and USB-C port to connect peripherals and devices that support USB protocol.
  • Use the 3.5mm audio jack to connect headphones or speakers.
  • Remember to always refer to the documentation and datasheets of the devices or peripherals you are connecting to ensure compatibility and correct usage.
  • By following this guide, you should be able to understand and utilize the pinout of the Elecrow CrowPi2 for your IoT projects and STEM education endeavors.

Code Examples

Component Documentation: Elecrow CrowPi2 - All-in-One Raspberry Pi STEM Laptop
Overview
The Elecrow CrowPi2 is an innovative, all-in-one Raspberry Pi STEM laptop designed for educational and hobbyist projects. This comprehensive kit includes a space grey laptop casing, English keyboard, and EU plug, but does not include a Raspberry Pi board. The CrowPi2 is FCC and CE certified, ensuring compliance with regulatory standards.
Key Features
Compatible with Raspberry Pi 4, 3, and 2 models
 11.6-inch HD IPS display with 1366x768 resolution
 Built-in keyboard and touchpad
 Supports Wi-Fi, Bluetooth, and HDMI connectivity
 Includes a range of interfaces, such as USB 3.0, USB 2.0, and RJ45
 Space grey laptop casing with a compact design
Software Requirements
Raspberry Pi OS (recommended) or other compatible Linux distributions
Hardware Interface
The CrowPi2 features a range of interfaces, including:
1 x HDMI port
 2 x USB 3.0 ports
 1 x USB 2.0 port
 1 x RJ45 Ethernet port
 1 x 3.5mm audio jack
 1 x DC power jack (for Raspberry Pi power supply)
 1 x MicroSD card slot (for Raspberry Pi storage)
Code Examples
The following examples demonstrate how to use the Elecrow CrowPi2 with Raspberry Pi 4 in various contexts:
Example 1: Basic Keyboard and Display Usage
This example showcases the use of the CrowPi2's keyboard and display with a Raspberry Pi 4.
Language: Python 3
Code:
```python
import tkinter as tk
# Initialize the tkinter GUI
root = tk.Tk()
# Create a simple label and button
label = tk.Label(root, text="Hello, World!")
label.pack()
button = tk.Button(root, text="Click me!", command=lambda: print("Button clicked!"))
button.pack()
# Start the GUI event loop
root.mainloop()
```
Explanation:
This code creates a simple GUI using the tkinter library, which is bundled with the Raspberry Pi OS. The GUI includes a label and a button. When the button is clicked, a message is printed to the console. This example demonstrates the use of the CrowPi2's keyboard and display with a Raspberry Pi 4.
Example 2: IoT Project with Wi-Fi Connectivity
This example demonstrates the use of the CrowPi2's Wi-Fi connectivity feature with a Raspberry Pi 4 to create a simple IoT project.
Language: Python 3
Code:
```python
import socket
import wifi
# Connect to a Wi-Fi network
wifi.connect('your_wifi_ssid', 'your_wifi_password')
# Create a socket object
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to a address and port
server_address = ('0.0.0.0', 8080)
sock.bind(server_address)
# Listen for incoming connections
sock.listen(1)
print("Server started. Waiting for connections...")
while True:
    # Accept incoming connections
    connection, address = sock.accept()
    print("Connected by", address)
# Receive and send data
    data = connection.recv(1024)
    if data:
        print("Received data:", data.decode())
        connection.sendall(data)
    else:
        print("No data received")
        break
# Close the connection
    connection.close()
```
Explanation:
This code creates a simple Wi-Fi server using the socket library, which allows the Raspberry Pi 4 to connect to a Wi-Fi network and listen for incoming connections. When a connection is established, the server receives and sends data to the client. This example demonstrates the use of the CrowPi2's Wi-Fi connectivity feature with a Raspberry Pi 4 in an IoT project.
Troubleshooting and Resources
For troubleshooting and additional resources, please refer to the Elecrow CrowPi2 documentation and the Raspberry Pi official documentation.