Question: we are going to make a ebb flow gardening system in which i am controlling the lighting system and i am using Microgreen salad Mix
we are going to make a ebb flow gardening system in which i am controlling the lighting system and i am using Microgreen salad Mix and Ruby stem Radish seeds so i need to make the changes in this code const int ledPin ;
const int lightPin A;
const int relayPin ;
const int ledPin;
void setup
pinModeledPin OUTPUT;
pinModelightPin INPUT;
pinModerelayPin OUTPUT;
pinModeledPin OUTPUT;
Serial.begin;
void loop
int lightValue analogReadlightPin;
Serial.printlnlightValue;
Control the light relay based on time intervals
unsigned long currentTime millis;
unsigned long elapsedTime currentTime ;
unsigned long elapsedTimeInHours currentTime ;
if elapsedTime Vegetative Stage: hours on hours off
if elapsedTimeInHours If the current twohour block is even
digitalWriterelayPin HIGH; Turn on lights
analogWriteledPin; Full brightness
analogWriteledPin; Turn on the new LED
else If the current twohour block is odd
digitalWriterelayPin LOW; Turn off lights
analogWriteledPin; LED off
analogWriteledPin; Turn off the new LED
else if elapsedTime Flowering Stage: hours on hours off
digitalWriterelayPinelapsedTime elapsedTime HIGH : LOW;
delay;
So i need like hours on lights for the seeds and hours off or you can change according to seeds
Apart from this i also need to build the circuit with the rasberry pi explain me step by step to build the circuit with reberry pi code to run the code for lighting system in ebb flow gardening system just for lighting system
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
