Introduction
Are you still distressed that industrial sensors can't be used on Arduino? You may need to get a converter just like this!
This 12V to 3.3V level converter module with 2/4-channel photoelectric isolation features common anode / common cathode / differential signal inputs. The level shifter translates signal level from 12V to 3.3V and offers PNP output (NPN to PNP). It can be used for signal isolation, PLC signal level conversion, NPN to PNP signal conversion, polarity conversion, signal level voltage conversion and so on.
NOTE: Module DC power supply positive equals to the signal output voltage, for example, 12 to 3.3V module, power input VCC=3.3V.
Features
- PNP Output (NPN to PNP available)
- Output Signal Level (12V to 3.3V)
- Signal Photoelectric Isolation
Specification
- Input Channel: 2-channel Optocoupler Isolation/4-channel Optocoupler Isolation
- Output Signal: PNP Output (NPN to PNP available)
- Sensor Input Voltage: 12V
- Module Supply Voltage: 3.3V
- Input Signal Level: 12V
- Output Signal Level: 3.3V
- Output Current: no more than 50mA for each channel
- Indicator: SMD LED
- Size of Bare Board: 38x72x19mm/1.50x2.83x0.75”(2 Channel); 45x72x19mm/1.77x2.83x0.75”(4 Channel)
- Size of Converter with Shell: 40x87x39mm/1.57x3.43x1.54”(2 Channel);47x87x39mm/1.85x3.43x1.54"(4 Channel)
- Size of Screw Hole: 3mm
- Installation Specification: With Shell (Fit on standard rails)
Board Overview
- Common Anode Signal Input
- Common Cathode Signal Input
- Differential Signal Input
Tutorial
Requirements
Hardware
- DFRduino UNO R3 ×1
- 2-Channel Level Converter ×1
- Wires
Software
Connection Diagram
Connection of Single-channel common anode 3-wire sensor to the UNO board.
Sample Code
int input_pin = 7;
void setup()
{
Serial.begin(9600);
pinMode(input_pin, INPUT);
// pinMode(inpin, INPUT_PULLUP);//Input mode internal pull-up
}
void loop()
{
int reading = digitalRead (input_pin);
Serial.println(reading);
delay(100);
}
Expected Results
If the signal input is low level 0, open the UNO serial port, then you can see it stably outputs high level 1.
Schematic Diagram
NOTE: When other different voltages and levels are converted, the resistance values in the diagram are different.
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum. |