So let me clear that up a bit.
My pot outputs a read from 0 to 100.
For example let's say it reads 50 at the moment, but then I switch it to 75.
Now I don't want the code to know it now reads 75, rather tell it this second, that it reads 50, next second 51, next 52, untill it finally reaches 75.
But during all this time the code calculated something, every second, based on the value it had received.
So basically leave the rest of the code untouched, and have something that spits values every cycle, based on a pot.
void loop() {
float tmpR = 5 //place holder for reading a temp sensor
float tmpC = 10
float tmpFinT = (tmpR + tmpC) / 2
int readPot;
float cTmpI;
Read the second line and tell me why there is no semikolon after the "5"!
Autoformatting the code gives a strange picture..... Use that as often as You change anything!
Read the second line and tell me why there is no semikolon after the "5"!
Autoformatting the code gives a strange picture..... Use that as often as You change anything!
oh yeah, there should be a ; there.
there still are some errors on there.
Your last code attachement looks "geogriphicly" correct. Now the code will do what Your plans were.
Right or wrong, working or not? New games, new bets.
Railroader:
Your last code attachement looks "geogriphicly" correct. Now the code will do what Your plans were.
Right or wrong, working or not? New games, new bets.
yeah, still kind of stuck on how to do the values for the pot though.
Okey. What is the issue running this corrected code?
There are some tutorials written by @Robin2 telling how to use millis(), milliSeconds(), how to blink LEDs, and more.
Suppose You "read the clock", millis or micros, and save it when You perform a downstep. If You define a delaytime that has to expire before You make the next downstep, You can set the rate of change.