Then, can we put time while the sensor detected object? because I need to count cycle time ( time between 2 detection object). or can we add to program to count that?
Yes, my sensor output when low signal is 0, then when the object detected is 1. Thanks for your help. Next question, can we make a button to clear all data and make it start again without exit from terminal? because i will implement this sensor using raspberry pi without keyboard and mouse. so that ...
Hi, I have a problem with my code in python. I use E18 D80NK proximity sensor for counting item. I need to rwrite output just when the output changes from 1 ti 0 or 0 to 1. My code now writes every time when sensor read the input. Example: Menunggu Proses ke - 1 Menunggu Proses ke - 1 Menunggu Prose...
Hi there, I have problem when I run my python code in teriminal. I always get continously counting with or without input from sensor. my code: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(25, GPIO.IN) count = 0 # wait for sensor trigger loop while Tru...
https://1drv.ms/u/s!AhJi7ZY1kVa3hAIcYabxoTW-kbnz I have problems, when i try run this programs, at QX output "merah_0" has "TRUE" value in client, and i try to connect with raspi, but at gpio raspi can't switch on the lamp. I use opc ua client and server to communicate all of them and used 4diac to...