Difference between revisions of "QTPy49"

From Land Boards Wiki
Jump to navigation Jump to search
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[File:tindie-mediums.png|link=https://www.tindie.com/products/27066/]]
 
[[File:tindie-mediums.png|link=https://www.tindie.com/products/27066/]]
  
<video type="youtube">iI9lUsVSuF8</video>
+
<video type="youtube">kf08ITtFjvE</video>
  
 
[[FILE:QTPy49_P18254-720px.jpg]]
 
[[FILE:QTPy49_P18254-720px.jpg]]
Line 9: Line 9:
 
* CPU choices are
 
* CPU choices are
 
** [[QT Py (SAMD based)]]
 
** [[QT Py (SAMD based)]]
 +
*** [https://www.adafruit.com/product/4600 Adafruit QT Py SAMD21 Product Page]
 +
*** [https://www.seeedstudio.com/Seeeduino-XIAO-Arduino-Microcontroller-SAMD21-Cortex-M0+-p-4426.html?queryID=3273c05f7923d5ee5cbc677ce4892180&objectID=4426&indexName=bazaar_retailer_products Seeeduino XIAO]
 +
*** 48 MHz
 
** [[QT Py (RP2040 based)]]
 
** [[QT Py (RP2040 based)]]
* Socketed CPU
+
*** [https://www.adafruit.com/product/4900 Adafruit QT Py RP2040 Product page]
 +
*** [https://www.seeedstudio.com/XIAO-RP2040-v1-0-p-5026.html Seeed XIAO RP2040 Product page]
 +
*** 133 MHz
 +
** [[XIAO ESP32C3]]
 +
*** [https://www.seeedstudio.com/Seeed-XIAO-ESP32C3-p-5431.html?utm_source=mailchimp&utm_medium=edm&utm_campaign=bazaar_0707&ct=t%28%29&mc_cid=3303ccf0f9&mc_eid=e1825627f2 SeeedStudio XIAO ESP32C3] (New 2022-07)
 +
*** RISC-V Single Core
 +
*** Up to 160 MHz
 +
*** 400 KB SRAM
 +
*** 4 MB Flash
 +
*** 2.4GHz Wi-Fi subsystem
 +
*** [https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/ Wiki]
 +
*** [https://files.seeedstudio.com/wiki/Seeed-Studio-XIAO-ESP32/esp32-c3_datasheet.pdf?ct=t()&mc_cid=87cf985ac5&mc_eid=1dd4876369 ESP32C3 Datasheet]
 
* Connectors/Headers
 
* Connectors/Headers
 
** DC Power
 
** DC Power
Line 54: Line 68:
 
=== J1 - DC In ===
 
=== J1 - DC In ===
  
* QTPy49 can be powered from with either the USB C or DV jack
+
* QTPy49 can be powered from either the USB C or DC jack
 
** Automatic Schottky diode power switching
 
** Automatic Schottky diode power switching
 +
*** Can use a regular Silicon Diode with sufficient current ex: 1N400X)
 
** 7-12V if regulator is installed
 
** 7-12V if regulator is installed
 
** 5V if regulator is not installed (install J2 jumper if not using regulator)
 
** 5V if regulator is not installed (install J2 jumper if not using regulator)
Line 69: Line 84:
 
# GND
 
# GND
 
# 3.3V
 
# 3.3V
# SS, AD3
+
# SS, AD3 (wired to J6-3)
 
# MOSI, S10
 
# MOSI, S10
 
# MISO, D9
 
# MISO, D9
 
# SCK, D8
 
# SCK, D8
 +
 +
==== J3 - SD Card ====
 +
 +
* MISO - AD9
 +
** GP4 on XIAO-RP2040 and SeeedStudio RP2040
 +
** PA09 on Adafruit SAMD21
 +
* MOSI - AD10
 +
** GP3 on XIAO-RP2040 and SeeedStudio RP2040
 +
** PA10 on Adafruit SAMD21
 +
* SCK - AD8
 +
** GP2 on XIAO-RP2040
 +
** GP6 on SeeedStudio RP2040
 +
** PA11 on Adafruit SAMD21
 +
* SS - AD0
 +
** GP26 on XIAO-RP2040
 +
** GP29 on SeeedStudio RP2040
 +
** PA02 on Adafruit SAMD21
  
 
=== J4 - UART ===
 
=== J4 - UART ===
Line 80: Line 112:
 
# TX, D6
 
# TX, D6
 
# RX, D7
 
# RX, D7
 +
 +
* D6
 +
** GP0 on XIAO-RP2040
 +
** GP20 on Adafruit RP2040
 +
** PA06 on Adafruit SAMD21
 +
* D7
 +
** GP1 on XIAO-RP2040
 +
** PA07 on Adafruit SAMD21
 +
** GP5 on Adafruit RP2040
  
 
=== J5 - I2C ===
 
=== J5 - I2C ===
Line 87: Line 128:
 
# D4, SDA
 
# D4, SDA
 
# D5, SCL
 
# D5, SCL
 +
 +
* D4
 +
** GP6 on XIAO-RP2040
 +
** GP24 on Adafruit RP2040
 +
** PA16 on Adafruit SAMD21
 +
* D5
 +
** GP7 on XIAO-RP2040
 +
** GP25 on Adafruit RP2040
 +
** PA17 on Adafruit SAMD21
  
 
=== J6 - AD3 ===
 
=== J6 - AD3 ===
Line 92: Line 142:
 
* Digital I/O 3
 
* Digital I/O 3
 
* Analog In 3
 
* Analog In 3
 +
* GP29 on XIAO-RP2040
 +
* GP24 on Adafruit RP2040
 +
* PA05 on Adafruit SAMD21
 
* PWM output
 
* PWM output
 
* Capacitive touch input
 
* Capacitive touch input
Line 98: Line 151:
 
# GND
 
# GND
 
# 3.3V
 
# 3.3V
# AD3
+
# AD3 (wired to J3-3)
  
 
=== J7 - AD2 ===
 
=== J7 - AD2 ===
 
 
* Digital I/O 2
 
* Digital I/O 2
 
* Analog In 2
 
* Analog In 2
 +
* GP28 on XIAO-RP2040
 +
* GP27 on Adafruit RP2040
 +
* PA05 on Adafruit SAMD21
 
* PWM
 
* PWM
 
* Capacitive touch input
 
* Capacitive touch input
Line 116: Line 171:
 
* Digital I/O 1
 
* Digital I/O 1
 
* Analog In 1
 
* Analog In 1
 +
* GP27 on XIAO-RP2040
 +
* GP28 on Adafruit RP2040
 +
* PA03 on Adafruit SAMD21
 
* Capacitive touch input
 
* Capacitive touch input
 
* AREF pin
 
* AREF pin
Line 128: Line 186:
 
* Digital I/O 0
 
* Digital I/O 0
 
* Analog In 0
 
* Analog In 0
 +
* GP26 on XIAO-RP2040
 +
* GP29 on Adafruit RP2040
 +
* PA02 on Adafruit SAMD21
 +
* Slave Select to SD card
 
* True analog output with 10 bit precision
 
* True analog output with 10 bit precision
 
* Does not have PWM
 
* Does not have PWM
Line 136: Line 198:
 
# 3.3V
 
# 3.3V
 
# AD0
 
# AD0
 +
 +
== Applications ==
 +
 +
Sample applications for the QTPy49 card.
 +
 +
* [https://github.com/land-boards/QT-Py/tree/main/CircuitPython/lbcards Land Boards CircuitPython code]
 +
 +
=== MMBASIC ===
 +
 +
Runs MMBASIC over USB port or RS-232 Serial port.
 +
 +
[[file:QTPy49--01_P18529-720px.jpg]]
 +
 +
* [https://hackaday.io/project/186498/details/ MMBASIC on Small RP2040 Card] - Hackaday page
 +
* [[MMBASIC_on_XIAO_RP2040|MMBASIC on XIAO RP2040]]
 +
* Store program on SD card
 +
* Runs [https://github.com/land-boards/RasPiPico/blob/main/PicoMite_MMBASIC/PicoMite_USB_Serial/PicoMite_Firmware/PicoMiteVGAV5.07.05b16/PicoMiteV5.07.05b16.uf2 PicoMiteV5.07.05b16.uf2]
 +
** PicoMite MMBasic Version 5.07.05b16
 +
 +
==== XIAO RP2040 MMBASIC Pin Assignments ====
 +
 +
<pre>
 +
OPTION SERIAL CONSOLE GP1,GP0
 +
OPTION SYSTEM SPI GP2,GP3,GP4
 +
OPTION COLOURCODE ON
 +
OPTION SDCARD GP26
 +
 +
</pre>
 +
 +
=== SD Card Loader ===
 +
 +
* [[SD_Loader|SD Card Loader]]
 +
 +
<video type="youtube">iI9lUsVSuF8</video>
 +
 +
=== GPS frequency Standard ===
 +
 +
* [[GPS_Frequency_Standard]]
 +
 +
<video type="youtube">kf08ITtFjvE</video>
 +
 +
=== Pulse Generator Test Station ===
 +
 +
* [[PulseGen#Factory_Acceptance_Test_.28FAT.29_Procedure|PulseGen Test Station]]
 +
 +
[[file:PulseGen_TestStation_P18373-720px.jpg]]
  
 
== Prototype ==
 
== Prototype ==

Latest revision as of 12:48, 18 August 2022

Tindie-mediums.png

QTPy49 P18254-720px.jpg

Features

CPU Pinouts

Adafruit QT Py SAMD

Adafruit products Adafruit QT Py SAMD21 pinout.png

Seeed Studio XAIO SAMD

Seeeduino-XIAO-pin-out.jpg

Adafruit QT Py RP2040

Adafruit products qtpy-rp2040-pins.png

Seeed Studio XAIO RP2040

Seeed-xinpin-rp2040.jpg

Connectors/Headers

QTPy49-P18253-720pxV.jpg

  • Ground, Voltage, Signal (GVS) connections

J1 - DC In

  • QTPy49 can be powered from either the USB C or DC jack
    • Automatic Schottky diode power switching
      • Can use a regular Silicon Diode with sufficient current ex: 1N400X)
    • 7-12V if regulator is installed
    • 5V if regulator is not installed (install J2 jumper if not using regulator)
  • Center positive

J2 - Short Regulator

  • Install if J1 has 5V
  • No need to install U2 regulator

J3 - SPI

  1. GND
  2. 3.3V
  3. SS, AD3 (wired to J6-3)
  4. MOSI, S10
  5. MISO, D9
  6. SCK, D8

J3 - SD Card

  • MISO - AD9
    • GP4 on XIAO-RP2040 and SeeedStudio RP2040
    • PA09 on Adafruit SAMD21
  • MOSI - AD10
    • GP3 on XIAO-RP2040 and SeeedStudio RP2040
    • PA10 on Adafruit SAMD21
  • SCK - AD8
    • GP2 on XIAO-RP2040
    • GP6 on SeeedStudio RP2040
    • PA11 on Adafruit SAMD21
  • SS - AD0
    • GP26 on XIAO-RP2040
    • GP29 on SeeedStudio RP2040
    • PA02 on Adafruit SAMD21

J4 - UART

  1. GND
  2. 3.3V
  3. TX, D6
  4. RX, D7
  • D6
    • GP0 on XIAO-RP2040
    • GP20 on Adafruit RP2040
    • PA06 on Adafruit SAMD21
  • D7
    • GP1 on XIAO-RP2040
    • PA07 on Adafruit SAMD21
    • GP5 on Adafruit RP2040

J5 - I2C

  1. GND
  2. 3.3V
  3. D4, SDA
  4. D5, SCL
  • D4
    • GP6 on XIAO-RP2040
    • GP24 on Adafruit RP2040
    • PA16 on Adafruit SAMD21
  • D5
    • GP7 on XIAO-RP2040
    • GP25 on Adafruit RP2040
    • PA17 on Adafruit SAMD21

J6 - AD3

  • Digital I/O 3
  • Analog In 3
  • GP29 on XIAO-RP2040
  • GP24 on Adafruit RP2040
  • PA05 on Adafruit SAMD21
  • PWM output
  • Capacitive touch input
  • Pinout
  1. GND
  2. 3.3V
  3. AD3 (wired to J3-3)

J7 - AD2

  • Digital I/O 2
  • Analog In 2
  • GP28 on XIAO-RP2040
  • GP27 on Adafruit RP2040
  • PA05 on Adafruit SAMD21
  • PWM
  • Capacitive touch input
  • Pinout
  1. GND
  2. 3.3V
  3. AD2

J8 - AD1

  • Digital I/O 1
  • Analog In 1
  • GP27 on XIAO-RP2040
  • GP28 on Adafruit RP2040
  • PA03 on Adafruit SAMD21
  • Capacitive touch input
  • AREF pin
  • Pinout
  1. GND
  2. 3.3V
  3. AD1

J9 - AD0

  • Digital I/O 0
  • Analog In 0
  • GP26 on XIAO-RP2040
  • GP29 on Adafruit RP2040
  • PA02 on Adafruit SAMD21
  • Slave Select to SD card
  • True analog output with 10 bit precision
  • Does not have PWM
  • Capacitive touch input
  • Pinout
  1. GND
  2. 3.3V
  3. AD0

Applications

Sample applications for the QTPy49 card.

MMBASIC

Runs MMBASIC over USB port or RS-232 Serial port.

QTPy49--01 P18529-720px.jpg

XIAO RP2040 MMBASIC Pin Assignments

OPTION SERIAL CONSOLE GP1,GP0
OPTION SYSTEM SPI GP2,GP3,GP4
OPTION COLOURCODE ON
OPTION SDCARD GP26

SD Card Loader

GPS frequency Standard

Pulse Generator Test Station

PulseGen TestStation P18373-720px.jpg

Prototype

  • Built on GRID49 card
  • Breaks out QY Py pins to (2) 1x7 headers
  • Power/ground distribution on 2x8 header
  • Limit: Must be powered from USB C connector

QTPy Proto P18238-720px.jpg

Mechanicals

QTPy49 MECHS.PNG

Assembly Sheet