Difference between revisions of "8-Bit Level Shift Board SKU: PZSDYZH001"

From CQRobot-Wiki
Jump to: navigation, search
(Description)
(Pin Description)
Line 22: Line 22:
 
|[[File:PZSDYZH001-2.jpg |left|400px]]
 
|[[File:PZSDYZH001-2.jpg |left|400px]]
 
|}
 
|}
 +
----
 +
=='''Case and Test Code'''==
 +
*Materials: Dupont wire, Arduino uno board, level conversion module;
 +
*Use the 2, ~ 3, 4, ~ 5, ~ 6, 7, 8, ~ 9 I/O ports of the Arduino UNO for demonstration as shown below;
 +
*'''Note''': A port voltage is 1.2V ~ 3.6V; B port voltage is 1.65V ~ 5.5V (VA≤VB).
 +
'''Arduino Connection Method'''
 +
{|-
 +
|[[File:PZSDYZH001-3.jpg |left|600px]]
 +
|}
 +
'''Arduino Code'''
 +
 +
void setup() {
 +
  // put your setup code here, to run once:
 +
for(int i=2;i<10;i++)
 +
{
 +
  pinMode(i,OUTPUT);
 +
  }
 +
}
 +
 +
void loop() {
 +
  // put your main code here, to run repeatedly:
 +
for(int i=2;i<10;i++)
 +
{
 +
  digitalWrite(i,HIGH);
 +
  delay(500);
 +
  }
 +
  delay(1000);
 +
for(int i=10;i>1;i--)
 +
{
 +
  digitalWrite(i,LOW);
 +
  delay(500);
 +
  } 
 +
}
 +
 +
[[Media: 8-Bit Level Shift Board-Arduino Code Download.rar]]
 
----
 
----

Revision as of 07:03, 14 January 2022

Level Shift Board

Description

In daily electronic projects, we may often encounter that the sensor cannot work normally, the project lags behind, and causes certain economic losses. This is caused by the incompatibility of the sensor level with the controller. In order to solve this problem, we have introduced a level conversion module with strong level compatibility and fast signal conversion speed.

This 8-channel level conversion module, the power supply voltage of the A port VA pin. The VA pin can accept a voltage in the range of 1.2V to 3.6V. The B port tracks the supply voltage of the VB pin. The VB pin can accept a voltage in the range of 1.65V to 5.5V. VA must be lower than or equal to VB. These two input power pins can realize any low-voltage bidirectional conversion between 1.2V, 1.8V, 2.5V, 3.3V and 5V voltage nodes. The power supply voltage can be tracked automatically. Its conversion speed can reach up to 60Mbps in push-pull applications, and can be used for level conversion of communication protocols such as I2C, UART, SPI, and OneWire.


Specifications

  • VA Voltage Range: 1.2V to 3.6V
  • VB Voltage Range: 1.65V to 5.5V
  • Conditions of use: VB More Than VA
  • Working Current: 30uA
  • Support Port: Push-pull, Open drain
  • Conversion Speed: Push-pull 60Mbps (MAX) \ Open Drain 2Mbps (MAX)
  • Working Temperature Range: -30 Degree Celsius to +75 Degree Celsius
  • Product Size: 22mm * 34mm
  • Installation Hole Spacing: 15mm
  • Fixing Hole Size: 3mm

Pin Description

PZSDYZH001-2.jpg

Case and Test Code

  • Materials: Dupont wire, Arduino uno board, level conversion module;
  • Use the 2, ~ 3, 4, ~ 5, ~ 6, 7, 8, ~ 9 I/O ports of the Arduino UNO for demonstration as shown below;
  • Note: A port voltage is 1.2V ~ 3.6V; B port voltage is 1.65V ~ 5.5V (VA≤VB).

Arduino Connection Method

PZSDYZH001-3.jpg

Arduino Code

void setup() {

 // put your setup code here, to run once:

for(int i=2;i<10;i++) {

 pinMode(i,OUTPUT);
 }

}

void loop() {

 // put your main code here, to run repeatedly:

for(int i=2;i<10;i++) {

 digitalWrite(i,HIGH);
 delay(500);
 }
 delay(1000);

for(int i=10;i>1;i--) {

 digitalWrite(i,LOW);
 delay(500);
 }  

}

Media: 8-Bit Level Shift Board-Arduino Code Download.rar