Python Forum
GPIO time in HIGH LOW - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: GPIO time in HIGH LOW (/thread-23012.html)



GPIO time in HIGH LOW - boris_za - Dec-07-2019

Hi All

Wondering if someone can help me with a problem im trying to solve.

I have data that im trying to put together.

Scenario:

1. There is a dip in LOW for 5ms and then a HIGH for 1.5ms, this is the header or beginning of data.

2. Then there are intervals at LOW for 0.4ms.

3. Data is then "1" when the pin is HIGH for 0.4ms.

4. Data is then "0" when the pin is HIGH for 1.2ms.

5. The end is then determined by a LOW of 1.5ms.

I need to detect the above conditions and then split them by the interval as explained in no.2.
With the above done i can then start extracting the data.

Im very new to python.

Thanks


RE: GPIO time in HIGH LOW - Larz60+ - Dec-07-2019

What have you tried so far?