lcd.setCursor(1, 1); lcd.print("PTN:"); lcd.print(currentProfile); lcd.setCursor(13, 1); lcd.print("STEP:"); lcd.print(currentStep); lcd.setCursor(1, 2); lcd.print("TH"); lcd.setCursor(5, 2); lcd.print("SV:"); lcd.setCursor(13, 2); lcd.print("PV:"); lcd.setCursor(1, 3); lcd.print("BH"); lcd.setCursor(5, 3); lcd.print("SV:"); lcd.print(sv2); lcd.setCursor(13, 3); lcd.print("PV:");
The first is a timer. In my original sketch I used millis() and another variable previousmillis as a seconds counter. Very simple. When millis() > previousmillis by 1000 it updates counter variable then resets previousmillis. This worked great although I need to use smaller increments of time like increments of .25 all the way up to 9.00.The weird thing is the .25 isn't .25 seconds. It actually ends up being 4 seconds. There's another variable that is a setpoint that needs to ramp up at that rate(by .25 a degree by a second). I really hope that makes sense..25 = 4000 milliseconds.50 = 2000 milliseconds1 = 1000 millisecondsIf that doesn't make sense I'll wait until tomorrow to explain I'm sure it'll sound better.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16