Search found 32 matches

by sprinkfitter
Wed Apr 10, 2019 1:35 pm
Forum: ESP32 boards
Topic: Relay On Time
Replies: 9
Views: 314

Re: Relay On Time

Mr.pythoncoder now I do not want to do that. What I want to do is turn a relay on at a certain time let it stay on for the delay and then turn off?
by sprinkfitter
Wed Apr 10, 2019 1:14 pm
Forum: ESP32 boards
Topic: Relay On Time
Replies: 9
Views: 314

Re: Relay On Time

Under construction... Trying to turn relay on and off a certain times of day! Very new to Micro-python. OnMin1 = arr.array([10, 20]) # Array Setup for triggering relay 1 OnHour1 = arr.array([8, 16]) OnDay1 = arr.array([1, 3, 5, 7, ]) OnMonth1 = arr.array([6, 7, 8, 9]) OnYear1 = arr.array([2019, 2020...
by sprinkfitter
Tue Apr 09, 2019 1:32 pm
Forum: ESP32 boards
Topic: Relay On Time
Replies: 9
Views: 314

Re: Relay On Time

Thanks that does work!!
by sprinkfitter
Tue Apr 09, 2019 12:24 pm
Forum: ESP32 boards
Topic: Relay On Time
Replies: 9
Views: 314

Re: Relay On Time

Seems a little odd sleep time to be use to keep a relay or pin on. So you can use the sleep for high and low pins??
by sprinkfitter
Tue Apr 09, 2019 12:03 pm
Forum: ESP32 boards
Topic: Relay On Time
Replies: 9
Views: 314

Relay On Time

I want to turn a relay on for a period of time. Can I just call millis if ds.DateTime() == (OnMin4, OnHour4, OnDay4, OnMonth4, OnYear4): relay1.value = 0 # HIGH millis(2000) print('Relay 1 ON') print(ds.DateTime) print(OnMin1, OnHour1, OnDay1, OnMonth1, OnYear1) else: relay1.value = 1 # LOW print('R...
by sprinkfitter
Wed Mar 27, 2019 9:29 pm
Forum: ESP32 boards
Topic: DS3231 Chinese Community!
Replies: 4
Views: 312

Re: DS3231 Chinese Community!

Thank You!! Big help. Miss that address in code. Works great now.
by sprinkfitter
Wed Mar 27, 2019 1:47 pm
Forum: ESP32 boards
Topic: DS3231 Chinese Community!
Replies: 4
Views: 312

Re: DS3231 Chinese Community!

Thanks Big Help!! :) :) :)
by sprinkfitter
Tue Mar 26, 2019 4:06 pm
Forum: ESP32 boards
Topic: DS3231 Chinese Community!
Replies: 4
Views: 312

DS3231 Chinese Community!

Has anyone been able to get this library to work with an esp32?? https://github.com/micropython-Chinese-Community/mpy-lib/tree/master/misc/DS3231 I have added 5k pull-up resisters to SCL AND SDA lines. import DS1307 from machine import I2C, Pin #import DS3231 i2c = I2C(sda=Pin(5), scl=Pin(4)) ds = D...
by sprinkfitter
Tue Mar 26, 2019 3:31 pm
Forum: ESP32 boards
Topic: During boot relay go high
Replies: 3
Views: 246

Re: During boot relay go high

I try the eternal resisters but no luck. Read some more on the esp32 and found out some pins go high on boot. Found some great info at https://espeasy.readthedocs.io/en/latest/Reference/GPIO.html . Decided to switch pins and got the following to work great. Thanks for all the help :D :D :D import ma...
by sprinkfitter
Fri Mar 22, 2019 2:45 am
Forum: ESP32 boards
Topic: During boot relay go high
Replies: 3
Views: 246

Re: During boot relay go high

Thanks I will try that. Hope's ot works