Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO time in HIGH LOW
#1
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
Reply
#2
What have you tried so far?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  function return boolean based on GPIO pin reading caslor 2 1,129 Feb-04-2023, 12:30 PM
Last Post: caslor
  class Update input (Gpio pin raspberry pi) caslor 2 742 Jan-30-2023, 08:05 PM
Last Post: caslor
  Webhook, post_data, GPIO partial changes DigitalID 2 953 Nov-10-2022, 09:50 PM
Last Post: deanhystad
  time setup for realtime plotting of serial datas at high sampling rate alice93 6 3,645 Jan-07-2022, 05:41 PM
Last Post: deanhystad
  Seemingly unstable GPIO output while executing from RetroPie LouF 6 3,855 Feb-19-2021, 06:29 AM
Last Post: LouF
  Picture changing triggered by GPIO q_nerk 2 2,517 Dec-14-2020, 03:32 PM
Last Post: DeaD_EyE
  GPIO high if network IP has good ping duckredbeard 3 2,280 Oct-12-2020, 10:41 PM
Last Post: bowlofred
  raspberry pi tank gpio help jatgm1 1 2,369 May-06-2020, 09:00 PM
Last Post: Larz60+
  Where should I place GPIO.cleanup() shallanq 2 2,110 Apr-11-2020, 05:02 AM
Last Post: shallanq
  Orange PI Win steering LEDs connect to GPIO djmcg 0 1,499 Dec-27-2019, 08:26 AM
Last Post: djmcg

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020