Introduction
This Raspberry Pi Pico terminal expansion board is just right for makers who love using terminal block for wiring up their projects!
The board has all pins of Pico broken out into terminal blocks and provides users with additional GDI, 5V output and 7-24 power input. Each port is labeled with clear silkscreens. All terminal blocks (except GND) have LED indicators for status indicating, which can be turned off using the onboard switch when not required.
Features
- Terminal blocks, make connections more stable and reliable
- All pins of main board are broken out
- Clear color silkscreens
- Additional 5V output
- GDI for connecting display
- Terminal block status indicator switch
- External Voltage Input: 7-24V
Dimension Diagram
Overview
Name | Description | Remarks |
---|---|---|
PICO Female Header | Install PICO | |
GDI | Connect to the display with GDI | |
Terminal Block Status Indicator Switch | Control the terminal block indicator status | |
VIN Power Indicator | Indicate the power input status of VIN | Red |
VIN Power Input | Input voltage of 7-24V | |
Terminal Block | Wiring port | |
Terminal Block Status Indicator | Indicate terminal block status | Power supply: red; GPIO interface: blue |
Specification
- External Voltage Input: 7~24V
- Screen Interface: GDI
- GPIO: × 27
- GND: × 5
- 5V Port: × 2
- 3.3V Port: × 2
- Port LED Indicator: × 35
- Port LED Indicator Color: blue
- Default ON Port Indicator: 3.3V, 5V, VSYS, VBUS and VREF ports
- Dimension (without packaging): 61mm × 93.5mm/2.40×3.68"
Tutorial
Digital Port
Blink Sample Code
This sample uses the Blink code to show the level change of the port.
int LED=0;
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
Result
After the code is downloaded into PICO, it can be viewed that the LED corresponding to the GP0 will blink.
I2C Port
Hardware Requirement
- SHT40 Humidity and Temperature Sensor × 1 (Download SHT40 Library)
- Terminal Block Board For Pico × 1
- Pico Mainboard × 1
Hardware Connection
- Pin Connection
The Terminal Block Board: 5V (connect to) SHT40: VCC
The Terminal Block Board: GND (connect to) SHT40: GND
The Terminal Block Board: GP4 (connect to) SHT40: SCL
The Terminal Block Board: GP5 (connect to) SHT40: SDA
Sample Code
This sample shows the I2C function by using the SHT40 temperature and humidity sensor to measure the current ambient temperature and humidity.
#include"DFRobot_SHT40.h"
DFRobot_SHT40 SHT40(SHT40_AD1B_IIC_ADDR);
uint32_t id = 0;
float temperature, humidity;
void setup() {
Serial.begin(9600);
SHT40.begin();
while((id = SHT40.getDeviceID()) == 0){
Serial.println("ID retrieval error, please check whether the device is connected correctly!!!");
delay(1000);
}
delay(1000);
Serial.print("id :0x"); Serial.println(id, HEX);
}
void loop() {
temperature = SHT40.getTemperature(/*mode = */PRECISION_HIGH);
humidity = SHT40.getHumidity(/*mode = */PRECISION_HIGH);
if(temperature == MODE_ERR){
Serial.println("Incorrect mode configuration to get temperature");
} else{
Serial.print("Temperature :"); Serial.print(temperature); Serial.println(" C");
}
if(humidity == MODE_ERR){
Serial.println("The mode for getting humidity was misconfigured");
} else{
Serial.print("Humidity :"); Serial.print(humidity); Serial.println(" %RH");
}
if(humidity > 80){
SHT40.enHeater(/*mode = */POWER_CONSUMPTION_H_HEATER_1S);
}
delay(1000);
Serial.println("----------------------------------------");
}
Result
Program description: print the temperature and humidity information read by the sensor on the serial monitor.
GDI Port
Hardware Requirement
- 1.8" 128*160 TFT LCD Display with MicroSD Card Slot × 1 (Download 1.8" 128*160 TFT LCD Display Library)
- Terminal Block Board For Pico × 1
- Pico Board × 1
Hardware Connection
Function & Pin Description of the Board GDI
NO. | Finction | Pin Number |
---|---|---|
1 | GPIO | IO20 |
2 | CS | IO19 |
3 | RST | IO18 |
4 | SCK | IO16 |
5 | MOSI | IO8 |
6 | MISO | IO9 |
7 | GPIO | IO15 |
8 | GPIO | IO14 |
9 | CS-SD | IO2 |
10 | CS-LCD | IO5 |
11 | RESET | IO17 |
12 | D/C | IO13 |
13 | MISO | IO4 |
14 | MOSI | IO7 |
15 | SCK | IO6 |
16 | Ground | GND |
17 | BLK | IO12 |
18 | Power | 3V3 |
Sample Code
The screen will display the blue text "DFROBOT" after the sample code is downloaded.
#include "DFRobot_GDL.h"
#define TFT_DC 13
#define TFT_CS 5
#define TFT_RST 17
#endif
DFRobot_ST7735_128x160_HW_SPI screen(/*dc=*/TFT_DC,/*cs=*/TFT_CS,/*rst=*/TFT_RST);
void setup() {
Serial.begin(115200);
screen.begin();
}
void loop() {
screen.setTextSize(2);
screen.fillScreen(COLOR_RGB565_BLACK);
screen.setFont(&FreeMono12pt7b);
screen.setCursor(/*x=*/32,/*y=*/64);
screen.setTextColor(COLOR_RGB565_LGRAY);
screen.setTextWrap(true);
screen.print("DFRobot");
delay(500);
Result
Program description: the screen will display the blue text "DFROBOT".
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.