It didn't really terminate. I just notice that while it is turning on/off the pin , the camera feed and detection freezes. I might need to do something like multithreading but sadly I don't have the time. Turn in is today, I might do it in the future. It is functional it just freezes the feed when c...
It is working, it turns on the valve but it terminates the python module and it doesn''t keep detecting. How can I make it so the valve being turned o doesnt stop the detecting software? while True: stime = time.time() ret, frame = capture.read() if ret: results = tfnet.return_predict(frame) for col...
I started looking at remote GPIO and that might do it but IP address syntax is killing me.
I tries using gpiozero pigpio library but its already 1 am so heading to bed ill get back on it tomorrow.
Ok, so my code will most definitely not run on my 3b+. Is it possible to run the code on my PC and when needed turn on the GPIO pin somehow? Maybe through wifi/bluetooth?
Ahead is part of my python code, this determines if the thing on camera is a cat or a dog, if it is one of the 2 it surrounds it with a rectangle. Would it be possible to add a GPIO output to turn on the sprinkler? while True: stime = time.time() ret, frame = capture.read() if ret: results = tfnet.r...
Yeah sorry it wasnt complete. Now it is. Bit of messy wiring but it should work. Now I just need to figure out the code to send a signal through that gpio pin.
Awesome i have everything except the opto isolator and the resistance. Can i just buy any 6leg opto isolator and resistance? Any ones in particular you recommend?
This is however out of my knowledge range and skillset given why im here. Never to late to learn though and so far it has been very entertaining and educational.
I already have the object detection code ready. I need to get the connection between valve and pi up and running so i can finish the gpio code and do some test runs.
What if i went with a higher amp power supply? Could i use the relay that i have? I have the hiletgo 12v single relay in the picture attached a couple messages above.
Did the current test with this 12v wall adapter. Amperage was 2.7a, the resistance for the valve was 4.2ohms. Sorry I took so long this has been a learning experience for me. Its my first time doing anything like this.