Forum Replies Created
-
AuthorPosts
-
gt244ParticipantShould have done a quick search as it was a basic question:
Can you give me more details on how v2.3 DC works internally?
Below is a block diagram of the v2.3 DC circuit. All relevant parts are marked in red. The mcu controls two high-side switches (HS switches): it turns on switch 1 to engage the boost converter (based on MC34063), which generates 22V DC and stores that into a capacitor; it then turns off switch 1 but turns on switch 2 to dump the boosted voltage to the common (COM) wire, which provides the in-rush current. Finally it turns off switch 2 and the input 9V DC continues to provide the holding current through the diode.see the link here: https://opensprinkler.com/announcing-the-first-dc-powered-opensprinkler-v2-3-dc/
gt244ParticipantAhh easy solution silly. Silly me did not have both the master ticked on the station options.
gt244ParticipantHi,
I would be interested in some of these. Whats the best way to get in touch?
Thanks,
Ben
gt244ParticipantCheers Ray,
I will give that a go.
gt244ParticipantHi Mike,
Sorry was not very clear. We are using it to run frost protection so the water has to be applied and certain way.
The solution we have worked out is just to use an thermostat switch hooked up as an rain sensor so when it is below an temp it will run the programs and once it goes above that temp it will turn off.
So we will have an program that starts at say 9pm an runs on repeat till 9am with the thermostat switch hooked up so it only runs when the temp is low.
Cheers
gt244ParticipantThanks all for the help it is all up and going and here is the code below if anyone else is having trouble.
list1 = (line.split(",")[7]) frost = str(30) if (list1 < frost): #Manually start an OpenSprinkler program r = requests.get('http://12X.60.XXX.2X5/mp?pw=a6d82bcedXXXef1e9bbXXX83225c&pid=0&uwt=0') print (r.text)
gt244ParticipantCheers Ray!
I was thinking something like this may be ideal.
gt244ParticipantHi Ray,
Just need some time to get my head around it.
I think with the min function I need an list.
Thanks,
Ben
gt244ParticipantHi Mike,
Still having some trouble hopefully you can look at the below and see how I am going wrong. Just tacked your code on at the end.
#!/usr/bin/python3 from time import localtime, strftime import serial import time import thingspeak import requests channel_id = () write_key = () ser = serial.Serial('/dev/ttyACM0', 9600, timeout=900) #ser = serial.Serial('/dev/cu.usbmodem1421', 9600, timeout=900) while True: line=ser.readline() if len(line)==0: print("Time Out") sys.exit() try: line=line.decode("utf-8") except: line="" print ("unreadable character received") print (line) print (len(line.split(","))) try: start_char = line.split(",")[0] write_key = line.split(",")[1] field_1 = line.split(",")[2] field_2 = line.split(",")[3] field_3 = line.split(",")[4] field_4 = line.split(",")[5] v_batt = (line.split(",")[6]) temperature = line.split(",")[7] humidity = line.split(",")[8] aux = line.split(",")[9] stop_char = line.split(",")[10] except: if start_char != "$": print ("no start character detected") try: channel = thingspeak.Channel(id=channel_id,write_key=write_key) print (write_key, field_1, field_2, field_3, field_4, v_batt, temperature , humidity, aux) response = channel.update({1:field_1, 2:field_2, 3:field_3, 4:field_4, 5:v_batt, 6:temperature, 7:humidity,}) print (strftime("%a, %d %b %Y %H:%M:%S", localtime())) print (response) except: print ("connection failed",) if min(temperature) < 25.00: #Manually start an OpenSprinkler program r = requests.get('http://122.60.XXX.XXX:8080/mp?pw=a6d82bced638de3def1XXXXbb4983225c&pid=0&uwt=0)
Cheers,
Ben
gt244ParticipantCheers Mike!
Will give that a go.
gt244ParticipantHi Mike,
Thanks for your help.
Still a little confused. You include the code in section 12 in your python script that uploads to Thingspeak. But how does that talk to the OS?
Thanks,
Ben
gt244ParticipantHi Mike,
Thanks for that.
Are you able to provide an copy of the code that you are using? Or point me towards the correct place in the OS API.
I am running an RPI that picks up data from the sensor stations. The RPI then uploads this data to thingspeak.
So I should just be able to add the command to start the OS in my script that uploads to thingspeak.
It will be starting an program.
Cheers,
Ben
-
AuthorPosts