Python Forum
GPIO output timing help needed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO output timing help needed
#6
Hi folks thanks for the replys
What I am trying to do is use a high input (3.3v) to control a fan to cool a radio heat sink. I want the fan to run for about 2 min. after the input goes low.
But with the sleep time I have in the code right now, if the input goes high during this sleep time period I want it, basically to reset the time period the output is high. I hope I explained that properly.
I realize I am probably not using the time function properly but I could not find any examples on the web.
I have seen a reply here that suggest using interrupts, I have been exploring that too.
I know I am making mistakes here but if nothing else I am learning, all be it, slowly.
I hope you can steer me in the right direction, and again thanks for you help so far.

Hi again Guys
I should have mentioned that I set the internal pull down resistor so the Input(4) would not be floating. Was this wrong?
Reply


Messages In This Thread
GPIO output timing - by skid - Jan-21-2018, 02:50 PM
RE: GPIO output timing help needed - by j.crater - Jan-22-2018, 07:09 PM
RE: GPIO output timing help needed - by Larz60+ - Jan-22-2018, 07:25 PM
RE: GPIO output timing help needed - by DeaD_EyE - Jan-23-2018, 09:36 AM
RE: GPIO output timing help needed - by skid - Jan-23-2018, 04:12 PM
GPIO output timing help needed - by skid - Jan-22-2018, 06:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  function return boolean based on GPIO pin reading caslor 2 1,171 Feb-04-2023, 12:30 PM
Last Post: caslor
  class Update input (Gpio pin raspberry pi) caslor 2 788 Jan-30-2023, 08:05 PM
Last Post: caslor
  Webhook, post_data, GPIO partial changes DigitalID 2 984 Nov-10-2022, 09:50 PM
Last Post: deanhystad
Question Timing actions with Python dangermaus33 0 1,003 Apr-19-2022, 10:08 PM
Last Post: dangermaus33
  Inconsistent counting / timing with threading rantwhy 1 1,759 Nov-24-2021, 04:04 AM
Last Post: deanhystad
  Synchronization/Timing Problem quest 5 2,974 Mar-31-2021, 10:26 PM
Last Post: quest
  Timing of a while loop stylingpat 4 6,804 Mar-31-2021, 10:48 AM
Last Post: stylingpat
  Seemingly unstable GPIO output while executing from RetroPie LouF 6 3,919 Feb-19-2021, 06:29 AM
Last Post: LouF
  Picture changing triggered by GPIO q_nerk 2 2,571 Dec-14-2020, 03:32 PM
Last Post: DeaD_EyE
  GPIO high if network IP has good ping duckredbeard 3 2,330 Oct-12-2020, 10:41 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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