Python Forum
[split] Check presence of a file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Check presence of a file
#26
Hi all
I hope you can help with this, as it is a relay problem not python. But I am struggling to get this to work below is a photo of the relay module, It is a Songle relay connected to a hl-58s v1.2 board (this means nothing to me)
[Image: %24_1.JPG?set_id=880000500F] I know my script that I have set up works as I have tested it witha simple LED, but It does not trigger the relay. on the module are A(gnd, in1, in2, in3, in4, in5, in6, in7, in8, vcc.) and also B(gnd, vcc, jd-vcc) I have connected from my pi zero 5v(2)-A(vcc), gnd(6)-A(gnd) and out(25)-A(in1) and also an external 5volt supply positive to B(jd-vcc) and negative to B(gnd), nothing has exploded or burnt out, nor has the relay operated.
I have carried out this test, I diconnected the out cble from pi leaving it connected to the module then then connect it to 5v pin on pi result = nothing

then connect it to Gnd pin on pi result = switch operates?
what does this mean and what do I need to do?
kind regards
paul
Solved it!
I changed the code in temp.py
if read_sensor(sID1) + x > read_sensor(sID2):
            GPIO.output(25,GPIO.HIGH)
          # print("it's Hot!")
to
if read_sensor(sID1) + x > read_sensor(sID2):
            GPIO.output(25,GPIO.LOW)
          # print("it's Hot!")
and it worked
Big Grin
Reply


Messages In This Thread
[split] Check presence of a file - by pascale - Jun-22-2018, 10:34 PM
RE: [split] Check presence of a file - by pascale - Jun-23-2018, 08:34 PM
RE: [split] Check presence of a file - by pascale - Jun-23-2018, 09:10 PM
RE: [split] Check presence of a file - by pascale - Jun-23-2018, 09:32 PM
RE: [split] Check presence of a file - by pascale - Jun-24-2018, 09:28 AM
RE: [split] Check presence of a file - by pascale - Jun-24-2018, 10:33 AM
RE: [split] Check presence of a file - by snippsat - Jun-24-2018, 11:01 AM
RE: [split] Check presence of a file - by pascale - Jun-24-2018, 12:17 PM
RE: [split] Check presence of a file - by pascale - Jun-24-2018, 05:29 PM
RE: [split] Check presence of a file - by pascale - Jun-24-2018, 07:03 PM
RE: [split] Check presence of a file - by pascale - Jun-24-2018, 08:59 PM
RE: [split] Check presence of a file - by pascale - Jun-25-2018, 06:54 AM
RE: [split] Check presence of a file - by pascale - Jun-25-2018, 12:56 PM
RE: [split] Check presence of a file - by pascale - Jun-27-2018, 08:33 PM
RE: [split] Check presence of a file - by pascale - Jun-29-2018, 09:41 AM
RE: [split] Check presence of a file - by pascale - Jul-08-2018, 12:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to "tee" (=split) output to screen and into file? pstein 6 1,409 Jun-24-2023, 08:00 AM
Last Post: Gribouillis
  Split pdf in pypdf based upon file regex standenman 1 2,103 Feb-03-2023, 12:01 PM
Last Post: SpongeB0B
  please check this i wanna use a csv file as a graph xCj11 5 1,509 Aug-25-2022, 08:19 PM
Last Post: deanhystad
  check if a file exist on the internet and get the size kucingkembar 6 1,806 Apr-16-2022, 05:09 PM
Last Post: kucingkembar
  How to split file by same values from column from imported CSV file? Paqqno 5 2,809 Mar-24-2022, 05:25 PM
Last Post: Paqqno
  [split] Results of this program in an excel file eisamabodian 1 1,589 Feb-11-2022, 03:18 PM
Last Post: snippsat
  Code to check folder and sub folders for new file and alert fioranosnake 2 1,954 Jan-06-2022, 05:03 PM
Last Post: deanhystad
  split txt file data on the first column value shantanu97 2 2,451 Dec-29-2021, 05:03 PM
Last Post: DeaD_EyE
  [split] Help- converting file with pyton script eltomassito 6 3,285 Jul-02-2021, 05:29 PM
Last Post: snippsat
  Check last time file was accessed Pavel_47 4 2,846 Jun-01-2021, 05:47 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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