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
  Picture changing triggered by GPIO q_nerk 2 148 Dec-14-2020, 03:32 PM
Last Post: DeaD_EyE
  GPIO high if network IP has good ping duckredbeard 3 248 Oct-12-2020, 10:41 PM
Last Post: bowlofred
  raspberry pi tank gpio help jatgm1 1 425 May-06-2020, 09:00 PM
Last Post: Larz60+
  Where should I place GPIO.cleanup() shallanq 2 477 Apr-11-2020, 05:02 AM
Last Post: shallanq
  Orange PI Win steering LEDs connect to GPIO djmcg 0 368 Dec-27-2019, 08:26 AM
Last Post: djmcg
  RPi GPIO Flashing LED nickayres 1 896 Jun-07-2019, 01:32 PM
Last Post: gontajones
  GPIO output timing help needed skid 5 1,645 Jan-23-2018, 04:12 PM
Last Post: skid
  Setting GPIO on Raspberry PI using a function jmjasper1 6 2,274 Dec-29-2017, 08:42 PM
Last Post: nilamo
  Use kivy app to call a php website to change the state of a gpio pin on rasperbery pi Battillo 1 1,559 Jun-05-2017, 10:33 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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