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上运行时,会发现根本不能运行。 这是因...")
 
(External Level Conversion Module Method)
 
(6 intermediate revisions by the same user not shown)
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,
  
这是因为SPI模块的引脚只能输入3.3V高电平,而Arduino输出的高电平为5V。要想成功运行,有两种
+
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).
  
==<font color="blue">短接法</font> ==
+
:In summary, it is recommended to use the external level shifting module method.
:所谓短接法就是将模块背后的'''J1'''元件位置(如下图所示)用焊锡短接起来。短接后,运行时模块VCC
 
  
引脚必须接5V电源(接3.3V不能运行)。
+
==<font color="blue">Short-Circuit Method</font> ==
 +
:The short-circuit method is to short the '''J1''' component position (shown below) with solder on the back of the module.  
  
[[File:MSP2402-007.jpg|600px]]
+
After shorting, the runtime module VCC The pin must be connected to a 5V power supply (not connected to 3.3V).
  
==<font color="blue">外接电平转换模块法</font> ==
+
[[File:MSP2402-011.jpg|600px]]
:所谓外接电平转换模块法就是将Arduino和显示模块通过外部电平转换模块连接起来,这样就可以将
 
  
Arduino输出的5V高电平经过电平转换模块转换为3.3V,然后输入给显示模块。如下图所示:
+
==<font color="blue">External Level Conversion Module Method</font> ==
 +
:The so-called external level conversion module method is to connect the Arduino and the display module
  
[[File:MSP2402-008.png|600px]]
+
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:
 +
 
 +
[[File:MSP2402-012.png|600px]]

Latest revision as of 16:32, 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-011.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-012.png