Last Updated on : 2024-10-15 09:26:29download
The Tuya Sandwich Wi-Fi and Bluetooth LE combo SoC NANO has BK7231N chip as a microcontroller, which is designed to help you easily prototype your IoT ideas. It can work with functional boards or circuit boards to implement specific features.
The development board is integrated with the cost-effective Wi-Fi and Bluetooth LE combo chip BK7231N from Beken Corporation. It has on-board buttons, LED, GPIOs, and a USB-to-serial chip.
Pin description
No. | Pin name | Description |
---|---|---|
1 | NC | Leave it floating. |
2 | 3.3V | 3.3V power pin. |
3 | NC | Leave it floating. |
4 | NC | Leave it floating. |
5 | NC | Leave it floating. |
6 | P26 | GPIOP_26 on BK7231N, which can be reused as the PWM5. |
7 | P24 | GPIOP_24 on BK7231N, which can be reused as the PWM4. |
8 | P23 | GPIOP_23 on BK7231N, which can be reused as the ADC. |
9 | P28 | GPIOP_28 on BK7231N. |
10 | P22 | GPIOP_22 on BK7231N. |
11 | P21 | GPIOP_21 on BK7231N, which can be reused as the I2C1 SDA. |
12 | 5V | 5V power pin. |
13 | RST | Clock enable (CEN) pin on BK7231N. It can output the chip enable and high enable signals. |
14 | GND | Ground pin. |
15 | NC | Leave it floating. |
16 | P11 | GPIOP_11 on BK7231N, which can be reused as the UART1 TXD pin and generally used as the user I/O. |
17 | P10 | GPIOP_10 on BK7231N, which can be reused as the UART1 RXD pin and generally used as the user I/O. |
18 | RST | Clock enable (CEN) pin on BK7231N. It can output the chip enable and high enable signals. |
19 | GND | Ground pin. |
20 | P09 | GPIOP_09 on BK7231N, which can be reused as the PWM3. |
21 | P20 | GPIOP_20 on BK7231N, which can be reused as the I2C1 SCL. |
22 | P01 | GPIOP_01 on BK7231N, which can be reused as the UART2 RXD pin, generally used for log printing. |
23 | P00 | GPIOP_00 on BK7231N, which can be reused as the UART2 TXD pin, generally used for log printing. |
24 | P08 | GPIOP_08 on BK7231N, which can be reused as the PWM2. |
25 | P07 | GPIOP_07 on BK7231N, which can be reused as the PWM1. |
26 | P06 | GPIOP_06 on BK7231N, which can be reused as the PWM0. |
27 | P14 | GPIOP_14 on BK7231N, which can be reused as the SPI SCK. |
28 | P16 | GPIOP_16 on BK7231N, which can be reused as the SPI MOSI. |
29 | P15 | GPIOP_15 on BK7231N, which can be reused as the SPI CSN. |
30 | P17 | GPIOP_17 on BK7231N, which can be reused as the SPI MISO. |
When micro-USB (CN1) inputs 5V DC voltage, the board can supply power to external components.
Power pin | Rated voltage/current |
---|---|
5V | Depends on the input current of the adapter connected to the DC-005 terminal. |
3.3V | 3.3V/0.6A |
Characteristics of output voltage
Output current | 0A | 0.15A | 0.3A | 0.45A | 0.6A | 0.75A |
---|---|---|---|---|---|---|
Output voltage | 3.34V | 3.36V | 3.37V | 3.37V | 3.38V | 3.38V |
Note: We tested the voltage under the condition that there is no output voltage on the micro-USB (CN1) terminal.
The schematic diagram of the board:
The PCB board:
The board has a built-in USB-to-serial chip. The single-channel USB port can provide two extended serial ports. You can flip the DIP switch (S1) to enable the 2-channel serial port on the BK7231N to connect to the USB-to-serial chip. The following table lists the pin definition of the DIP switch.
DIP switch No. | 1 | 2 | 3 | 4 |
---|---|---|---|---|
BK7231N chip | UART1_RX | UART1_TX | UART2_RX | UART2_TX |
USB-to-serial chip | USB-TX0 | USB-RX0 | USB-TX1 | USB-RX1 |
Note:
- Flip the toggle to the ON position to complete the circuit. The switch is used to open and close the circuit between the USB-to-serial chip and the chip’s serial port.
- When you use the UART pin on the chip for communication with an MCU or GPIO, flip the toggle of the corresponding channel to the OFF position (the side with numbers) to open the circuit between the UART on BK7231N and the USB-to-serial chip.
The COM ports map to the UART pins as follows.
COM ports on the computer | SERIAL-A(COM23) | SERIAL-B(COM22) |
---|---|---|
USB-to-serial chip | USB-UART0 | USB-UART1 |
BK7231N chip | UART1 | UART2 |
Note: The COM port number varies depending on computers so we use
SERIAL-A
andSERIAL-B
to indicate the two COM ports.
Flip the toggles of channel 1 and 2 on the DIP switch (S2) to the ON position to complete the circuit between the UART1 on BK7231N and the host.
Flip the toggles of channel 3 and 4 on the DIP switch (S2) to the ON position to complete the circuit between the UART2 on BK7231N and the host.
Flip the toggles of channel 1 and 2 on the DIP switch (S2) to the ON position to complete the circuit between the UART1 on BK7231N and the host.
Flip the toggles of channel 1 to 4 on the DIP switch (S2) to the OFF position to open the circuit between the UARTs on BK7231N and the USB-to-serial chip.
Download the USB-to-serial chip driver for your operating system.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback