Difference between revisions of "Relay Module 3.3V to 5.5V"

From CQRobot-Wiki
Jump to: navigation, search
(Connection Diagram)
Line 37: Line 37:
  
 
----
 
----
 +
==Prepare for RaspberryPi==
 +
Before testing of RaspberryPi,you must install the lastest WringPI tool.
 +
 +
<pre>
 +
$ cd /tmp
 +
$ wget https://project-downloads.drogon.net/wiringpi-latest.deb
 +
</pre>
 +
 +
[[File:LLS_1.PNG]]
 +
 +
<pre>
 +
$ sudo dpkg -i wiringpi-latest.deb
 +
</pre>
 +
 +
[[File:LLS_2.PNG]]
 +
 +
<pre>
 +
$ gpio -v</pre>
 +
 +
WiringPI has updating to 2.52
 +
 +
[[File:LLS_3.PNG]]
 +
 +
<pre>
 +
$ gpio readall
 +
</pre>
 +
 +
[[File:LLS_4.PNG]]
 +
 +
=='''Sample Code'''==
 +
[[Media:1sample_code_for_Arduino.zip|Sample Code for Arduino]]
 +
 +
[[Media:1sample_code_for_RaspberryPi.zip|Sample Code for RaspberryPi]]

Revision as of 08:55, 30 November 2020

CQRJDQ01.jpg

Introduction

Relay is an automatic switching element with isolation function, which is widely used in remote control, telemetry, communication, automatic control, mechatronics and power electronic equipment, and is one of the most important control elements. The traditional relay module has complicated wiring and is not friendly to novice makers or electronic enthusiasts. The CQRobot relay module simplifies the wiring of traditional relays. The input terminal is equipped with an adapter, which is compatible with most power supplies and battery boxes. , DC power supply, power bank, etc. While simplifying the wiring method, the functions of the relay NC and NO are retained, and only a simple adjustment of the toggle switch is used to switch between normally open and normally closed modes.

CQRobot's latest simple relay module uses a standard Ocean sensor interface and supports a wide voltage input from 3.3V to 5.5V, making it easy to Compatible with Raspberry Pi, Micro:bit, Arduino and other main control boards. Satisfy your needs in robot control, lighting control, smart home, surveillance and other control applications.


Specifications

  • VIN Operating Voltage: 5V to 30V
  • VIN Operating Current: 0A to 2.5A
  • Logic Power Supply: 3.3V to 5.5V
  • Logic Signal: 3.3 to 5.5V
  • Operating Temperature: -55 Degree Celsius to +150 Degree Celsius
  • Switching Characteristics: T(on)= 20us / T(off)= 50us
  • Switching Trequency: 1kHz
  • Dimension: 43mm * 30mm

Product Size

CQRJDQ01-1.jpg

Pin and Cable Description

CQRJDQ01-3.jpg

Connection Diagram

CQRJDQ01-6.jpg

Prepare for RaspberryPi

Before testing of RaspberryPi,you must install the lastest WringPI tool.

$ cd /tmp
$ wget https://project-downloads.drogon.net/wiringpi-latest.deb

LLS 1.PNG

$ sudo dpkg -i wiringpi-latest.deb

LLS 2.PNG

$ gpio -v

WiringPI has updating to 2.52

LLS 3.PNG

$ gpio readall

LLS 4.PNG

Sample Code

Sample Code for Arduino

Sample Code for RaspberryPi