Bit T-type GPIO Board
Bit T-type GPIO Board
| Bit T-type GPIO Board is a versatile and convenient expansion board for the BBC micro | bit, offering a range of features and interfaces to enhance the capabilities of the micro:bit. Its compact design, easy assembly, and built-in power supply make it an ideal choice for IoT projects and prototyping applications. |
3.3V
20 (accessible through the T-type interface)
3
| Digital Inputs/Outputs | 10 |
| I2C Interface | 1 |
Built-in voltage regulator
50mm x 40mm x 15mm
Micro:Bit T-type GPIO Board DocumentationOverviewThe Micro:Bit T-type GPIO board is a compact, breadboard-friendly expansion board designed specifically for the BBC micro:bit microcontroller. It provides a convenient way to access and utilize the micro:bit's GPIO pins, making it ideal for various IoT projects and prototyping applications.Features21 GPIO pins broken out into 3 rows of 7 pins each
Compatible with both 3.3V and 5V systems
Supports digital input/output, analog input, I2C, SPI, and UART communication protocols
Onboard power and ground rails for convenient prototypingPinoutThe Micro:Bit T-type GPIO board has the following pinout:| Row 1 | Row 2 | Row 3 |
| --- | --- | --- |
| P0 | P8 | P16 |
| P1 | P9 | P17 |
| P2 | P10 | P18 |
| GND | GND | GND |
| 3.3V | 3.3V | 3.3V |
| P3 | P11 | P19 |
| P4 | P12 | P20 |
| P5 | P13 | P21 |
| P6 | P14 | |
| P7 | P15 | |Code Examples### Example 1: Digital Input with Push ButtonIn this example, we'll use the Micro:Bit T-type GPIO board to read the state of a push button connected to pin P0.Code (MicroPython)
```python
from microbit import# Set pin P0 as an input
pin0 = pin0.setup(pin.IN)while True:
# Read the state of the push button
if pin0.read_digital():
print("Button pressed!")
else:
print("Button not pressed!")
sleep(100)
```
Hardware ConnectionConnect a push button between pin P0 and GND on the Micro:Bit T-type GPIO board.
Connect the micro:bit to the GPIO board.### Example 2: Analog Output with LEDIn this example, we'll use the Micro:Bit T-type GPIO board to control the brightness of an LED connected to pin P1.Code (MicroPython)
```python
from microbit import# Set pin P1 as an analog output
pin1 = pin1.setup(pin.OUT, pin.ANALOG)while True:
# Output a PWM signal to control the LED brightness
for i in range(0, 1024, 1):
pin1.write_analog(i)
sleep(10)
```
Hardware ConnectionConnect an LED to pin P1 and GND on the Micro:Bit T-type GPIO board, with a 220 resistor in series with the LED.
Connect the micro:bit to the GPIO board.Note: These examples are just a starting point, and you can modify them to suit your specific project requirements. Make sure to check the micro:bit's documentation for more information on how to use its GPIO pins and features.