Uploaded January 2022 | Updated November 2026, 1 week ago
Hi! In this video, we are going to teach you how to connect 12V or more sensor to Arduino's 5V input/output pins.
We are going to use PC817 Optocoupler Module and connect it to the sensor and Arduino so that Arduino can read the data from sensor even though the voltage difference is high.
In this example, we are using proximity sensor which use 12V voltage source and the output of the sensor is also 12V, which when we connect it directly to the Arduino's input/output pins, it could damaged our Arduino board. So, to read sensor's data from proximity sensor to Arduino, we are using PC817 Optocoupler module which is a phototransistor. You can read more about this module at the link below.
Optocoupler is a great isolator IC to prevent high current application from damaging low current board which it connects to. This phototransistor helped Arduino reads the data from sensor when the phototransistor inside the IC is triggered, then the it drives the output of the IC high on 5V signal. This 5V high data is what Arduino reads. Not the 12V high data from sensor.
Learn more about PC817 Optocoupler module:
microcontrollerslab.com/pc817-optocoupler-pinout-working-examples-datasheet
#ArduinoSensor #OptocouplerIsolator #MYBOTIC
Hi! In this video, we are going to teach you how to connect 12V or more sensor to Arduino's 5V input/output pins.
We are going to use PC817 Optocoupler Module and connect it to the sensor and Arduino so that Arduino can read the data from sensor even though the voltage difference is high.
In this example, we are using proximity sensor which use 12V voltage source and the output of the sensor is also 12V, which when we connect it directly to the Arduino's input/output pins, it could damaged our Arduino board. So, to read sensor's data from proximity sensor to Arduino, we are using PC817 Optocoupler module which is a phototransistor. You can read more about this module at the link below.
Optocoupler is a great isolator IC to prevent high current application from damaging low current board which it connects to. This phototransistor helped Arduino reads the data from sensor when the phototransistor inside the IC is triggered, then the it drives the output of the IC high on 5V signal. This 5V high data is what Arduino reads. Not the 12V high data from sensor.
Learn more about PC817 Optocoupler module:
microcontrollerslab.com/pc817-optocoupler-pinout-working-examples-datasheet
#ArduinoSensor #OptocouplerIsolator #MYBOTIC









![MA-03 Arduino Ultrasonic Sensor Kit Overview, water level detector, auto water dispenser kit
This kit is called MA-03 Arduino Ultrasonic Sensor kits. This kit have built in program which able to let user complete their project such as Auto water dispenser, auto hand sanitizer, electronic ruler, ultrasonic alarm and so on without writing a single code! How it works? Please check out the video! :)
Website: https://www.mybotic.com.my/
Facebook: https://www.facebook.com/Mybotic/
MA-03 ARDUINO HC-SR04 ULTRASONIC SENSOR KIT (Product Page)
(Schematic and Source Code inside link below)
Or you may support us to get this board from below link :)
https://www.mybotic.com.my/webshaper/store/viewProd.asp?pkProductItem=2828
Music:
––––––––––––––––––––––––––––––
Track: Pineapple — JayJen [Audio Library Release]
Music provided by Audio Library Plus
Watch: https://youtu.be/9rUBOxkiI_M
Free Download / Stream: https://alplus.io/pineapple
–––––––––––––––––––––––––––––– MA-03 Arduino Ultrasonic Sensor Kit Overview, water level detector, auto water dispenser kit](https://i.ytimg.com/vi/JQbPABM2xXc/mqdefault.jpg)
