Transistor DC Relay, 5V logic, DC 24V 30A - RobotDynOfficial/Documentation GitHub Wiki
Transistor DC Relay lets your microcontroller control a higher-power 24V/30A circuit with a low-power 5V logic signal. This module like all RobotDyn relays is equipped with an opto-isolator that protects the MCU and its user from high currents and voltage. If you need, you can install an additional jeat sink to the transistor.
- ID @ TC = 25°C Continuous Drain Current, VGS @ 10V: 33 A
- ID @ TC = 100°C Continuous Drain Current, VGS @ 10V: 23 A
- IDM Pulsed Drain Current: 110 A
- PD @TC = 25°C Power Dissipation: 130 W
- Linear Derating Factor: 0.87 W/°C
- VGS Gate-to-Source Voltage: ± 20 V
- IAR Avalanche Current: 16 A
- EAR Repetitive Avalanche Energy: 13 mJ
- dv/dt Peak Diode Recovery dv/dt: 7.0 V/ns
|---|---| |S|Control signal| |GND|Controller ground| |Vcc|Power/reference voltage (5V)|
Sets the output to the 24V DC power circuit proportional to the value read from the potentiometer.
int controlPin = 9; // Transistor DC Relay connected to digital pin 9
int analogPin = 3; // potentiometer connected to analog pin 3
int val = 0; // variable to store the read value
void setup() {
pinMode(controlPin, OUTPUT); // sets the pin as output
}
void loop() {
val = analogRead(analogPin); // read the input pin
analogWrite(controlPin, val / 4); // analogRead values go from 0 to 1023, analogWrite values from 0 to 255
}