Difference between revisions of "Run Arduino Demo in spi model"

From LCD wiki
Jump to: navigation, search
(Created page with "==<font color="blue">概述</font> == :当我们直接将没有板载电平转换模块的SPI显示模块接到Arduino上运行时,会发现根本不能运行。 这是因...")
 
Line 1: Line 1:
==<font color="blue">概述</font> ==
+
==<font color="blue">Overview</font> ==
  
:当我们直接将没有板载电平转换模块的SPI显示模块接到Arduino上运行时,会发现根本不能运行。
+
:When we directly connected the SPI display module without the on-board level conversion module to the Arduino, we found that it could not run at all.
  
这是因为SPI模块的引脚只能输入3.3V高电平,而Arduino输出的高电平为5V。要想成功运行,有两种
+
This is because the SPI module's pin can only input a 3.3V high level, while the Arduino output has a high level of 5V. To run successfully, there are two
  
方法:短接法和外接电平转换模块法。
+
Method: short circuit method and external level conversion module method.
  
:短接法的优点是操作简单,只需短接,不需要再外接器件,缺点是运行时,模块发热量较大,可能
+
:The short-circuit method has the advantages of simple operation, short wiring, and no need for external devices. The disadvantage is that the module generates a large amount of heat during operation.
  
会影响模块的使用寿命。
+
Will affect the life of the module.
  
:外接电平转换模块法为常规操作,优点是运行时模块发热量小,运行稳定,缺点是操作稍微复杂
+
:The external level conversion module method is a normal operation, and the advantage is that the module generates less heat and runs stably during operation, and the disadvantage is that the operation is slightly complicated.
  
(需要外接电平转换模块),增加成本(需要额外购买电平转换模块)。
+
(An external level shifting module is required) to increase the cost (additional level conversion module is required).
  
:综上所述,推荐使用外接电平转换模块法。
+
:In summary, it is recommended to use the external level shifting module method.
  
==<font color="blue">短接法</font> ==
+
==<font color="blue">Short-Circuit Method</font> ==
:所谓短接法就是将模块背后的'''J1'''元件位置(如下图所示)用焊锡短接起来。短接后,运行时模块VCC
+
:The short-circuit method is to short the '''J1''' component position (shown below) with solder on the back of the module. After shorting, the runtime module VCC
  
引脚必须接5V电源(接3.3V不能运行)。
+
The pin must be connected to a 5V power supply (not connected to 3.3V).
  
 
[[File:MSP2402-007.jpg|600px]]
 
[[File:MSP2402-007.jpg|600px]]
  
==<font color="blue">外接电平转换模块法</font> ==
+
==<font color="blue">External Level Conversion Module Method</font> ==
:所谓外接电平转换模块法就是将Arduino和显示模块通过外部电平转换模块连接起来,这样就可以将
+
:The so-called external level conversion module method is to connect the Arduino and the display module through an external level conversion module, so that
  
Arduino输出的5V高电平经过电平转换模块转换为3.3V,然后输入给显示模块。如下图所示:
+
The 5V high level of the Arduino output is converted to 3.3V by the level conversion module and then input to the display module. As shown below:
  
 
[[File:MSP2402-008.png|600px]]
 
[[File:MSP2402-008.png|600px]]

Revision as of 15:53, 30 November 2018

Overview

When we directly connected the SPI display module without the on-board level conversion module to the Arduino, we found that it could not run at all.

This is because the SPI module's pin can only input a 3.3V high level, while the Arduino output has a high level of 5V. To run successfully, there are two

Method: short circuit method and external level conversion module method.

The short-circuit method has the advantages of simple operation, short wiring, and no need for external devices. The disadvantage is that the module generates a large amount of heat during operation.

Will affect the life of the module.

The external level conversion module method is a normal operation, and the advantage is that the module generates less heat and runs stably during operation, and the disadvantage is that the operation is slightly complicated.

(An external level shifting module is required) to increase the cost (additional level conversion module is required).

In summary, it is recommended to use the external level shifting module method.

Short-Circuit Method

The short-circuit method is to short the J1 component position (shown below) with solder on the back of the module. After shorting, the runtime module VCC

The pin must be connected to a 5V power supply (not connected to 3.3V).

MSP2402-007.jpg

External Level Conversion Module Method

The so-called external level conversion module method is to connect the Arduino and the display module through an external level conversion module, so that

The 5V high level of the Arduino output is converted to 3.3V by the level conversion module and then input to the display module. As shown below:

MSP2402-008.png