Terminal Block Board for Raspberry Pi Pico Wiki - DFRobot

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

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

Tutorial

Digital Port

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

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

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("----------------------------------------");
}

Program description: print the temperature and humidity information read by the sensor on the serial monitor.

GDI Port

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

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);

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.

More Documents