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):||6 February 2017|
|PDF File Size:||18.54 Mb|
|ePub File Size:||5.84 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 working, 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 keywnce thing it will 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 meyence Raspberry Pi to ground but not using the raspberry pi”s power supply.
PZP – Square Reflective Cable Type, PNP | PZ2 series | KEYENCE America
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 it 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 problem 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. 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 supposed to be ground.
1pcs KEYENCE Photoelectric Sensor Switch Pz2-42 PZ242
kyeence 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 keyencce 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.
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. Also maybe just have sensor on the maze, with pi attached by a long wire. Then pi could kejence 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 keyejce 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.