Using Inductive Proximity sensors with Arduino

preview_player
Показать описание
Using Inductive Proximity sensors with Arduino

Sketch

int limitSwitch = 13;
int state = LOW;
void setup() {

pinMode(limitSwitch,INPUT);

}

void loop() {

int val = digitalRead(limitSwitch);

if( val != state ){
state = val;
if( state == 0 )
else
}
} ::::::::::: SUPPORT CHANNEL ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Don't forget to subscribe!
Рекомендации по теме
Комментарии
Автор

OMG - Just what I needed and how specific and clear, Thank you so much ;-)

hukcoi
Автор

The model number for your sensor ends in B. But I don't see any of those sensors on the internet that end in just B . They all seem to have a letter after the B, such as BX or B Y.

scottbechdolt
Автор

Thank you so much, this was just what I needed! Great video.

fenik
Автор

Hi, great video. But just a beginner question: Do i need the optokoppler also, if i use an NPN Sensor? I mean that if i use an NPN sensor and switch the digital input of the Arduino to INPUT_PULLUP --> Can i then directly connect the black signal cable to the digital input and remove R2 (because of the internal pullup)?

pottingermusic
Автор

I have connected only one sensor on analog pin.all other analog pins are not connected to any sensor but when I read other analog pins I get the same reading on them how I can avoid this problem.plz suggest any solution.

acqurius-gxlr
Автор

is there any better circuit then this using internal PULLUP resistor ?

sanjaybatra
Автор

Great, thanks ! Just something I noticed, if I'm not mistaken Emitter and Collector are inverted on the first slide.

cyriljourdan
Автор

im wondering what the forward voltage on that optocoupler is to be able to wire 12v directly to it?

ahernandez
Автор

if the supply voltage is 28 volts, will the output voltage remain stable at 5 volts through this circuit?

shogunvanrepi
Автор

Thank you very much. A Liteon LTV-815 can be replaced with PC-817

EXCELREPORTING
Автор

To the point explanation thankyou very much..subscribed

akhtar
Автор

Hi can I connect it direct into the arduino without resistors if I use 5V proxmity sensor?

leavesfx
Автор

Hi, please tell me, how can i use an optocoupler with mechanical limit switches.

denisdarii
Автор

What is the switching frequency of the inductive proximity sensor

akashagale
Автор

Can I use 9Vin directly to the Inductive Sensor then use 7805 IC to regulate the output to 5V the connect it to the analog?

kennybos
Автор

Hi. Can this be used with other Type of NPN sensors like contrast sensors from SICK ?

CJfoks
Автор

Hi, how can I make a servomotor rotate when I sense?

cody
Автор

Is there any way to make this project run as it is without using the optocoupler PC817

priyanshubhagat
Автор

the program didn't work in my project can u find my problem?

Wegegta-
Автор

What Power Supply should I use?
Is a 12V and 1A Power Supply enough?

freemusictribe
visit shbcf.ru