Help me pi pls k thx

psychedelicdaddi

Well-Known Member
Hi, so I'm following a pi tutorial on remote viewing a pi camera. Its using the IP address of the pi with the port of the camera embedded in an html doc that opens when the pi is attempted to be accessed. Anyway, I can get the pi remotely viewed and the document opened but clearly my html isn't on point because idk what to really write to embed the IP address:port.

http://www.techradar.com/how-to/computing/use-a-raspberry-pi-to-remotely-watch-your-home-1314466


Whole point is to put a canopy cam facing down off the panel. Pi is also going to control an 8 relay module for spectrum. 3000k, 4000k, 365-420, 380/840, 500-530nm, 660-730nm .

So, ill keep updates as I work. Parts coming from all over the planet. I have lots of analog electrical experience. Just new to pi and am just fair at coding.
 
Last edited:

psychedelicdaddi

Well-Known Member
For the light timer I am using "cron", which is a schedule software on the pi. It's pretty straight forward but I need more than one pin outputting. So I assume I can simply add another schedule for each pin. I haven't read into cron's potential but that makes the most sense.

I noticed in the light timer tutorial I posted with this link here needed a few alterations. For instance, the on.she file doesn't need any of the hashtag on the ends of lines including the original #!/bash/bin . if you add the extra hashtag it will fail to load when you test your pin 25 like he/she does.
https://makezine.com/2014/02/06/using-raspberry-pi-as-a-lamp-timer/
 

psychedelicdaddi

Well-Known Member
Active low relay module using bc548 npn transistor gates.
Seems to work. The catch with this device is the inability to turn on/off channels by hand without using terminal. It needs selector switches.
Oh, but cool thing is the Pi camera can be used to time lapse capture the grow. I can take photos every day at a certain time(s) and link up the photos in some other software. Cool right?
CIMG5849.JPG CIMG5845.JPG
 

psychedelicdaddi

Well-Known Member
pi is up and running 6 relays. 4000k, 3000k, far red, UV left, UV center, uv right.


Tomorrow im adding a green/cyan channel and a blurple channel. Theyre mounted but not wired. I would like to start and end the day with a blurple and 3000k period with the far red initiator running separate. Im not sure when the best time to use green/cyan is, so, i will play around with that color.

CIMG5880.JPG CIMG5879.JPG CIMG5877.JPG
 

SSGrower

Well-Known Member
20171223_090955.jpg
So not to clutter the registration thread and give away trade secrets:eyesmoke:
Two of the relays will be rewired for the red and uv.
I have a 12v/5v supply that the 5v side powers the arduino and the 12 is unused, so it will be power for both red and uv since they will be on at different times.
 

psychedelicdaddi

Well-Known Member
View attachment 4075388
So not to clutter the registration thread and give away trade secrets:eyesmoke:
Two of the relays will be rewired for the red and uv.
I have a 12v/5v supply that the 5v side powers the arduino and the 12 is unused, so it will be power for both red and uv since they will be on at different times.
oh, nice. Is that the app tek they have of the arduino website? I saw they have an app that communicates with an arduino via bluetooth. If you unplugged and plugged back in the arduino, what would happen? does it reboot the light back on to the same place in time or something else?
 

SSGrower

Well-Known Member
oh, nice. Is that the app tek they have of the arduino website? I saw they have an app that communicates with an arduino via bluetooth. If you unplugged and plugged back in the arduino, what would happen? does it reboot the light back on to the same place in time or something else?
It's an app called arduinodroid on an old phone I use it as a serial monitor as not to take up any ports and I can just plug it in and unplug it without inturrpting the program. I don't use the app to its full capacity, could code from phone if so inclined.

Time is controlled by a ds3231 RTC, I may not have the numbers right but its a clock with battery backup so unit always knows what time it is even after power outage. It just powers back up, checks what time it is and does what's it's told to do by program. I input when I want lights on during veg, how many days to veg, how many hours I want in flower, how many days to go from veg to flower, so having the unit know what time it is is critical. I use an 8 channel version in my full scale cabinet, it has some environmental control capacity in addition.

I know Jack about the arduino and even less about the pi.
 
Top