Void loop() { int current = 0; int maxcurrent = 0; int mincurrent = 1000; for (int i=0 ; i<=200 ; i++) //monitors and logs the current input for 200 cycles to determine max and min current { current = analogread(current pin); //reads current input and records maximum and minimum current if(current >= maxcurrent) maxcurrent = current; else if(current <= mincurrent) mincurrent = current;
Answers
Answered by
1
keep up bruss..............
Similar questions