67.6mm x 31mm x 4.7mm
67.6mm x 31mm x 4.7mm
Approximately 6g
0C to 50C
-20C to 80C
Electrical Specifications
| Typical | 300mA @ 5V ( idle), Max: 1.5A @ 5V (full load) |
5V DC, via micro-USB or external power input
| I/O Voltage | 1.8V/3.3V |
The Raspberry Pi Compute Module 3 V1.1 is a powerful and flexible computing module that provides a complete system solution for a wide range of applications. Its compact form factor, high-performance CPU, and advanced peripherals make it an ideal choice for IoT devices, industrial automation systems, and custom embedded systems.
Raspberry Pi Compute Module 3 V1.1 DocumentationOverviewThe Raspberry Pi Compute Module 3 V1.1 is a system-on-module (SoM) that combines the functionality of the Raspberry Pi 3 Model B with a more compact and flexible form factor. This module is designed for industrial and commercial applications, providing a cost-effective and highly capable solution for IoT projects.Key FeaturesBroadcom BCM2837B0 quad-core Cortex-A53 processor
1GB, 2GB, or 4GB LPDDR2 SDRAM
4GB or 8GB eMMC flash storage
Dual-band 802.11ac wireless LAN and Bluetooth 4.2
PCIe interface for custom peripherals
HDMI and camera interfaces
Supports Raspbian OS and other Linux distributionsProgramming LanguagesThe Raspberry Pi Compute Module 3 V1.1 can be programmed using various languages, including Python, C, C++, and Java.Code ExamplesHere are a few code examples to demonstrate the usage of the Raspberry Pi Compute Module 3 V1.1 in different contexts:### Example 1: Python Script for LED BlinkingThis example demonstrates how to control an LED connected to GPIO pin 17 on the Raspberry Pi Compute Module 3 V1.1 using Python:
```python
import RPi.GPIO as GPIO
import time# Set up GPIO pin 17 as an output
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)while True:
# Turn the LED on
GPIO.output(17, GPIO.HIGH)
time.sleep(1)
# Turn the LED off
GPIO.output(17, GPIO.LOW)
time.sleep(1)
```
### Example 2: C Code for Reading Temperature Sensor DataThis example demonstrates how to read temperature data from a DS18B20 digital temperature sensor connected to the Raspberry Pi Compute Module 3 V1.1 using C:
```c
#include <stdio.h>
#include <wiringPi.h>#define PIN 4 // GPIO pin 4int main() {
wiringPiSetup();
pinMode(PIN, INPUT);while (1) {
// Read temperature data from the DS18B20 sensor
float temp = getTempData(PIN);
printf("Temperature: %0.2fC
", temp);
delay(1000);
}
return 0;
}float getTempData(int pin) {
// Initialize the temperature data
float temp = 0.0;// Send the temperature conversion command
digitalWrite(pin, LOW);
delay(1);
digitalWrite(pin, HIGH);
delay(750);// Read the temperature data
temp = readTempData(pin);return temp;
}float readTempData(int pin) {
// Read the temperature data from the sensor
int val = 0;
for (int i = 0; i < 12; i++) {
val <<= 1;
if (digitalRead(pin) == HIGH) {
val |= 1;
}
}// Convert the temperature data to Celsius
float temp = val 0.0625;return temp;
}
```
### Example 3: Java Code for FTP ServerThis example demonstrates how to create an FTP server on the Raspberry Pi Compute Module 3 V1.1 using Java:
```java
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.FtpServerFactory;
import org.apache.ftpserver.listener.ListenerFactory;
import org.apache.ftpserver.usermanager.PropertiesUserManagerFactory;public class FTPServer {
public static void main(String[] args) throws IOException {
// Create an FTP server factory
FtpServerFactory serverFactory = new FtpServerFactory();// Set up the user manager
PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory();
serverFactory.setUserManager(userManagerFactory.createUserManager());// Set up the FTP server
FtpServer server = serverFactory.createServer();// Start the FTP server
server.start();
}
}
```
These examples demonstrate the versatility of the Raspberry Pi Compute Module 3 V1.1 and its potential applications in various IoT projects.