Python Forum

Full Version: GPIO time in HIGH LOW
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
What have you tried so far?