Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started