Find great deals for 1pcs KEYENCE Photoelectric Sensor Switch Pz PZ Shop with confidence on eBay!. 11 products offers 11 keyence pz products. About 27% of these are sensors. A wide variety of keyence pz options are available to you. Explore the latest datasheets, compare past datasheet revisions, and confirm part lifecycle.
|Published (Last):||14 March 2011|
|PDF File Size:||7.58 Mb|
|ePub File Size:||12.18 Mb|
|Price:||Free* [*Free Regsitration Required]|
My friends and I usually do all kinds of things with the Raspberry Pi but first time with sensors and we’re stuck. Which is not leyence, it’s just an example. I want to know how to use this sensor with the raspberry and the programming codes.
I believe it should be python. If I can do this I would want to make other fun application with the sensor. So when the micromouse goes through this thing it pz2-24 detect and starts the timer and the next time it goes through it detects again that something went past and stops the timer.
Running on raspbian and ssh using putty. I am now following the this website to use the sensor to detect something and display “motion detected”. All I did was the same only that my sensor is PZ keyence so I connect it like this:.
So I connect the Raspberry Pi to ground but not using the raspberry pi”s power supply. The codes are from the website above:. Eventhough my sensor was turn green red as it detects my hand,the code should have display motion detected but it didn’t.
I don’t know what is the problem. I check the output voltage of the sensor and pz2-422 was 0. So I think that when nothing its detected it is a close circuit but when it detects it opens the circuit so the input change state by seeing the code above then it displays motion detected. I don’t know whether the keyeence is that the input voltage when has’nt been detected is not enough for the Raspberry Pi to recognized it or receive as the voltage is too low which concludes the reason why it stays at ready even though the sensor changes from green to red when it detects my hand.
PZ – Square Reflective Cable Type, NPN | PZ2 series | KEYENCE America
Home Questions Tags Users Unanswered. I want to use the photoelectronic with the Raspberry Pi for a micromouse maze. The sensor will be placed under the white plastic,overall i’m expecting it to look like this: All I did was the same only that my sensor is PZ keyence so I connect it like this: The codes are from the website above: PIR is triggered print ” Motion detected! Waiting for PIR to settle Ready Eventhough my sensor was turn green red as it detects my hand,the code should have display motion detected but it didn’t.
1pcs KEYENCE Photoelectric Sensor Switch Pz2-42 PZ242
Milla Kurtney 14 3. The sensor you are using requires at least 12 volt to work. What exactly is your question? Please add link to more information about this sensor.
PZP – Square Reflective Cable Type, PNP | PZ2 series | KEYENCE America
Also maybe just have sensor on the maze, with pi attached pz2–42 a long wire. Then pi could handle multiple sensors. I have solved my problem: I didn’t read the specification of the sensor, the assume the black wire to be ground but it was the output while the blue was suppose to be ground.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.