Changes

Jump to navigation Jump to search

Q100

3,496 bytes added, 14 March
{{GD Template Impl}}
[[File:Q100-IMG-7622-1.jpg|thumb|right|installation guide]]
[[File:Q100-IMG-7641.jpg|thumb|right|]]
[[File:Q100-IMG-7644.jpg|thumb|right|]]
[[File:Q100-XIMG-6870-Packing-List.jpg|thumb|right|Q100 packing list]]
==Overview==
The Q100 is an expansion board similar to [[X1000]]. It has the function of PCIE to NVME ssd and also has an attached a 1.3" 240x240 Color TFT(ST7789 chipset), The TFT can display system and SSD status information, making it ideal for use as an additional display for NAS or media systems.
 
{{PCIe to NVME Sets}}
 
==Features==
* NVMe Base PCB with M.2 Slot (M-Key NVMe SSD with 2242 sizes)
* With ACT LED Indicator(Flashing: Reading /Writing)
* With 40pin GPIO Header,it can supply power from GPIO,avoiding the problem of insuggicient power supply for ultra-large capactiy SSDs
* 1.3" 240x240 Color TFT (ST7789 chipset),The TFT can display system and SSD status information, making it ideal for use as an additional display for NAS or media systems.
* 'PCIe Pipe' Flat Flex Shielded Cable(50mm length FFC Shielded Cable),shielded cables can provide better PCIE performance, effectively solve the interference problem between PCIE and WIFI, and provide a more stable data link for SSDs.
==PIN OUT==
This LCD use a 4-line SPI interface for reducing GPIO and fast speed.LCD
==LCD Working Protocol==
[[File:Q100-lcd-work-protocol.png]]
 
Note: Different from the traditional SPI protocol, the data line from the slave to the master is hidden since the device only has display requirement.
 
RESX Is the reset pin, it should be low when powering the module and be higher at other times;
 
CSX is slave chip select, when CS is low, the chip is enabled.
 
D/CX is data/command control pin, when DC = 0, write command, when DC = 1, write data
 
SDA is the data pin for transmitting RGB data, it works as the MOSI pin of SPI interface;
 
SCL worka s the SCLK pins of SPI interface.
 
SPI communication has data transfer timing, which is combined by CPHA and CPOL.
 
CPOL determines the level of the serial synchronous clock at idle state. When CPOL = 0, the level is Low. However, CPOL has little effect to the transmission.
 
CPHA determines whether data is collected at the first clock edge or at the second clock edge of serial synchronous clock; when CPHL = 0, data is collected at the first clock edge.
 
There are 4 SPI communication modes. SPI0 is commonly used, in which CPHL = 0, CPOL = 0.
==User Manual==
Only provides tutorials for running on Raspberry Pi OS as following
 
==NVMe SSD boot tutorial==
Reter to [[NVMe SSD boot with the Raspberry Pi 5]]
===LCD display tutorial===
'''1. Enable SPI interface'''
Reter to [[How to enable SPI]]
sudo raspi'''2. Install Library''' PS: If you use the bookworm system, you can only use lgpio library, bcm2835 and wiringPi can't be installed and used.  '''BCM2835'''<PRE>#Open the Raspberry Pi terminal and run the following commandwget http://www.airspayce.com/mikem/bcm2835/bcm2835-config1.71.tar.gz Choose Interfacing Options tar zxvf bcm2835-> SPI 1.71.tar.gz cd bcm2835-1.71/sudo ./configure && sudo make && sudo make check && sudo make install# For more, you can refer to the official website at: http://www.airspayce.com/mikem/bcm2835/</PRE> Yes to enable SPI interface 
Install lgpio liberery'''WiringPi'''<pre>#Open the Raspberry Pi terminal and run the following commandcdsudo apt-get install wiringpi#For Raspberry Pi systems after May 2019 (earlier than that can be executed without), an upgrade may be required:wget https://project-downloads.drogon.net/wiringpi-latest.debsudo dpkg -i wiringpi-latest.debgpio -v# Run gpio -v and version 2.52 will appear, if it doesn't it means there was an installation error
PS# Bullseye branch system using the following command: If you use the bookworm system, you can only use lgpio librarygit clone https://github.com/WiringPi/WiringPicd WiringPi. /buildgpio -v# Run gpio -v and version 2.70 will appear, bcm2835 and wiringPi canif it doesn't be installed and usedit means there was an installation error</pre>
 
'''lgpio'''
<pre>
#Open the Raspberry Pi terminal and run the following command
</pre>
Install '''Python'''
<pre>
sudo apt-get update
sudo apt-get install python3-pil
sudo apt-get install python3-numpy
#sudo pip3 install spidev
</pre>
Download Examples
Open the Raspberry Pi terminal and run the following command:'''Download Examples'''
<pre>
sudo apt-get install p7zip-full -ywget git clone https://sourceforgegithub.netcom/projects/ugeekworm-geekcom/files/HATs//Raspi_M2_HAT/Raspi_M2_HAT_codeQ100.7z7z x Raspi_M2_HAT_code.7z -r -o./Raspi_M2_HAT_codesudo chmod 777 -R Raspi_M2_HAT_codegitcd Raspi_M2_HAT_codeQ100
</pre>
 '''3. Run the demo'''<pre>sudo python status.py</pre>The results are as follows: [[File:Q100-lcd-on-2.jpg|800px]]  '''4. Auto-start when Power on''' Configure the script to run automatically at startup sudo nano /etc/rc.local and ''python stats/home/pi/Q100/status.py&'' before '''exit 0''' line [[File:Q100-auto-run-script.png]] '''5. References:'''* https://www.waveshare.com/wiki/1.3inch_LCD_HAT 
<!--Add review function! -->

Navigation menu