N
N
Nikita Gladkiy2013-12-06 14:48:52
Python
Nikita Gladkiy, 2013-12-06 14:48:52

How can I see the states of 24 VDC sensor signals in Python 3?

Hello. There is a 24 VDC sensor. It has 2 states - 1 (24VDC) or 0 (0VDC). How can I see the signal states of this sensor in Python? And can it be used as an intermediate Arduino device?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HallEffect, 2013-12-06
@Techniker753

Can you describe the sensor in more detail?
In any case, through adruin and other similar things, such a problem can be solved. We hook the sensor to the pin of the microcontroller, read the state of the pin, transfer the information to the computer via uart, and the python works with the catfish port on the computer side.

N
Nikita Gladkiy, 2013-12-06
@Techniker753

Sensor, for example, pressure (pressostat). How to work with com port in Python? What libraries can be used?
Interested in the ability to transfer data from the field level (sensors, actuators, etc.) to Python, and then to an application on PyQt or the like. Sphere - industrial automation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question