Go to advanced search

by Anugerah Nuri Satria
Mon Jun 15, 2020 1:20 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Re: Write data just when the output changes

Can we show its terminal via 7 segment? Or do u have idea to make HMI for that?
by Anugerah Nuri Satria
Fri Jun 12, 2020 10:14 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Re: Write data just when the output changes

Which switch do i should use? NC or NO?
Then why we use 2 switch?
by Anugerah Nuri Satria
Fri Jun 12, 2020 9:10 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Re: Write data just when the output changes

Just add the button as another gpio input then this input goes high reset the counting variable to zero.



Can you give me example in my python code for clearing my data without quit teriminal? I dont know how to make it.
by Anugerah Nuri Satria
Fri Jun 12, 2020 8:53 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Re: Write data just when the output changes

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?
by Anugerah Nuri Satria
Fri Jun 12, 2020 8:48 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Re: Write data just when the output changes

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 ...
by Anugerah Nuri Satria
Fri Jun 12, 2020 8:13 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Re: Write data just when the output changes

Why if I run your code I get this from the first execute before my sensor sense?

Proses Tapper Roll ke 0
Proses Tapper Roll ke 1



Can we start from "Proses Tapper Roll ke - 1"?
by Anugerah Nuri Satria
Fri Jun 12, 2020 6:25 am
Forum: Python
Topic: Write data just when the output changes
Replies: 60
Views: 2246

Write data just when the output changes

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...
by Anugerah Nuri Satria
Mon Jun 08, 2020 6:38 am
Forum: General discussion
Topic: counter metal using E18 Proximity in Raspberry
Replies: 1
Views: 138

counter metal using E18 Proximity in Raspberry

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...
by Anugerah Nuri Satria
Tue Mar 13, 2018 11:19 am
Forum: Other projects
Topic: Raspberry Pi as an OPC Server
Replies: 8
Views: 26000

Re: Raspberry Pi as an OPC Server

I have a problem when i try to build a simply project with raspberry using opc ua protocol.


when i try to run a program, at the output "merah_0" is true, but at raspi client can't switch on the lamp who i use to be output

Image
by Anugerah Nuri Satria
Tue Mar 13, 2018 11:14 am
Forum: Other projects
Topic: Raspberry Pi as an OPC Server
Replies: 8
Views: 26000

Re: Raspberry Pi as an OPC Server

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...

Go to advanced search