Difference between revisions of "Relay Module 3.3V to 5.5V"
(→Connection Diagram and Demo for Raspberry Pi) |
(→Connection Diagram and Demo for Raspberry Pi) |
||
Line 40: | Line 40: | ||
* Connect the sensor to the Raspberry Pi 4B, and put the test code on the Raspberry Pi system in the form of a folder. | * Connect the sensor to the Raspberry Pi 4B, and put the test code on the Raspberry Pi system in the form of a folder. | ||
* Dial the DIP switch to the ON terminal, and connect according to the wiring diagram. Execute the following commands in the terminal to run the program. We can see that the external LED lights up for 0.5 seconds first, then goes off for 0.5 side, blinking continuously. Press Ctrl+C to stop the program. | * Dial the DIP switch to the ON terminal, and connect according to the wiring diagram. Execute the following commands in the terminal to run the program. We can see that the external LED lights up for 0.5 seconds first, then goes off for 0.5 side, blinking continuously. Press Ctrl+C to stop the program. | ||
+ | |||
cd /home/pi/TS1818 | cd /home/pi/TS1818 | ||
+ | |||
ls | ls | ||
+ | |||
gcc TS1818.c -o TS1818 -lwiringPi | gcc TS1818.c -o TS1818 -lwiringPi | ||
+ | |||
sudo ./TS1818 | sudo ./TS1818 | ||
Revision as of 08:22, 27 November 2020
Contents
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
Pin and Cable Description
Connection Diagram and Demo for Raspberry Pi
Connection Diagram for Raspberry Pi
Raspberry Pi Connection Method
- Connect the sensor to the Raspberry Pi 4B, and put the test code on the Raspberry Pi system in the form of a folder.
- Dial the DIP switch to the ON terminal, and connect according to the wiring diagram. Execute the following commands in the terminal to run the program. We can see that the external LED lights up for 0.5 seconds first, then goes off for 0.5 side, blinking continuously. Press Ctrl+C to stop the program.
cd /home/pi/TS1818
ls
gcc TS1818.c -o TS1818 -lwiringPi
sudo ./TS1818