Arduino UNO R4 WiFi

Started by tha, October 10, 2023, 12:55:51 PM

Previous topic - Next topic

tha

5 Microcontroller (R7FA4M1AB3CFM#AA0)

The UNO R4 WiFi อยู่บนฐานของ the 32-bit RA4M1 series microcontroller, R7FA4M1AB3CFM#AA0, จาก Renesas, ซึ่งใช้ a 48 MHz Arm® Cortex®-M4 microprocessor ที่มี a floating point unit (FPU).

The operating voltage สำหรับ the RA4M1 คงที่อยู่ที่ 5 V เนื่องจากเป็นฮาร์ดแวร์ที่เข้ากันได้กับ shields, accessories & circuits บนฐานของ Arduino UNO boards รุ่นก่อนหน้า.

The R7FA4M1AB3CFM#AA0 features:

  •  256 kB flash / 32 kB SRAM / 8 kB data flash (EEPROM)
  •  Real-time Clock (RTC)
  •  4x Direct Memory Access Controller (DMAC)
  •  14-bit ADC
  •  สูงถึง 12-bit DAC
  •  OPAMP
  •  CAN bus

สำหรับรายละเอียดทางเทคนิคที่มากขึ้นเกี่ยวกับ microcontroller นี้, โปรดเยี่ยม the Renesas - RA4M1 series official documentation.

tha

6 Wi-Fi® / Bluetooth® Module (ESP32-S3-MINI-1-N8)

The Wi-Fi® / Bluetooth® LE module บน the UNO R4 WiFi มาจาก the ESP32-S3 SoCs. มันมีคุณลักษณะ the Xtensa® dualcore 32-bit LX7 MCU, a built-in antenna และรองรับสำหรับ 2.4 GHz bands.

The ESP32-S3-MINI-1-N8 features:

  •  Wi-Fi® 4 - 2.4 GHz band
  •  Bluetooth® 5 LE support
  •  3.3 V operating voltage
  •  384 kB ROM
  •  512 kB SRAM
  •  สูงถึง 150 Mbps bit rate

โมดูลนี้ทำหน้าที่เป็น a secondary MCU บน the UNO R4 WiFi, และสื่อสารกับ the RA4M1 MCU โดยใช้ a logiclevel translator. โปรดทราบว่าโมดูลนี้ทำงานโดยใช้ 3.3 V เมื่อเทียบกับ  5 V operating voltage ของ the RA4M1.

tha

6.1 ESP Header



The header ที่วางตำแหน่งใกล้กับ the RESET button สามารถถูกใช้เพื่อเข้าถึง the ESP32-S3 module โดยตรง. The pins ที่สามารถเข้าถึงได้คือ:

  •  ESP_IO42 - MTMS debugging (Pin 1)
  •  ESP_IO41 - MTDI debugging (Pin 2)
  •  ESP_TXD0 - Serial Transmit (UART) (Pin 3)
  •  ESP_DOWNLOAD - boot (Pin 4)
  •  ESP_RXD0 - Serial Receive (UART) (Pin 5)
  •  GND - ground (Pin 6)



tha

6.2 USB Bridge

เมื่อโปรแกรม the UNO R4 WiFi, the RA4M1 MCU จะถูกโปรแกรมผ่านทาง the ESP32-S3 module เป็นค่าเริ่มต้น. The U2 และ U6 switches สามารถสลับ the USB communication ไปยัง the RA4M1 MCU ได้โดยตรง, โดยการเขียน a high state ไปยัง the P408 pin (D40).



การบัดกรีแผ่น SJ1 เข้าด้วยกันจะตั้งค่า the USB communication ไปยัง RA4M1 โดยตรงอย่างถาวร โดยข้ามผ่าน ESP32-S3.

tha

7 USB Connector

The UNO R4 WiFi มีหนึ่ง USB-C® port, ถูกใช้เพื่อจ่ายพลังงานและโปรแกรมบอร์ดของคุณตลอดจนการส่ง & การรับ serial communication.

Note: The board ไม่ควรถูกจ่ายพลังงานที่มากกว่า 5 V ผ่านทาง the USB-C® port.

tha

8 LED Matrix

The UNO R4 WiFi มีคุณลักษณะ a 12x8 matrix ของ red LEDs (U_LEDMATRIX), ที่ต่อโดยใช้ the technique ที่เรียกว่า charlieplexing.

pins ต่อไปนี้บน the RA4M1 MCU ถูกใช้สำหรับ the matrix:

  •  P003
  •  P004
  •  P011
  •  P012
  •  P013
  •  P015
  •  P204
  •  P205
  •  P206
  •  P212
  •  P213



LEDs เหล่านี้สามารถูกเข้าถึงเป็น an array, โดยใช้ a specific library. ดูการแม็ปข้างล่าง:



matrix สามารถถูกใช้สำหรับโปรเจ็กต์และวัตถุประสงค์ในการสร้างต้นแบบได้หลายอย่าง, และรองรับแอนิเมชั่น, การออกแบบเกมง่ายๆ และการเลื่อนข้อความเหนือสิ่งอื่นใด

tha

9 Digital Analog Converter (DAC)

The UNO R4 WiFi ที่มี a DAC ที่มีความละเอียดสูงสุด 12 บิตติดอยู่กับ the A0 analog pin. A DAC ถูกใช้เพื่อแปลง a digital signal ไปเป็น an analog signal.

The DAC สามารถถูกใช้สำหรับ signal generation ตัวอย่างเช่น audio applications, เช่น การสร้างและการดัดแปลง sawtooth waves.

tha

10 I2C Connector

The I2C connector SM04B-SRSS-TB(LF)(SN) ถูกต่อกับ a secondary I2C bus บน the board. โปรดทราบว่า connector นี้ถูกจ่ายพลังงานให้ผ่านทาง 3.3 V.



connector นี้ยังแชร์ pin connections ต่อไปนี้:

JANALOG header

  •  A4
  •  A5

JDIGITAL header

  •  SDA
  •  SCL

Note: เนื่องจาก A4/A5 ถูกต่อกับ the main I2C bus, พินเหล่านี้ไม่ควรถูกใช้เป็น ADC inputs เมื่อไรก็ตามที่ the bus ถูกใช้อยู่. อย่างไรก็ตามคุณสามารถต่อ I2C devices กับแต่ละ pins เหล่านี้ และ connectors พร้อมกัน.