AgTalk Home
AgTalk Home
Search Forums | Classifieds | Skins | Language
You are logged in as a guest. ( logon | register )

Home Brew Bin Fan Controler 6
View previous thread :: View next thread
   Forums List -> Computer TalkMessage format
 
tedbear
Posted 2/16/2020 11:09 (#8045191 - in reply to #8045074)
Subject: RE: Home Brew Bin Fan Controler 6


Near Intersection of I-35 & I-90 Southern Mn.
I've been gone a couple of weeks. I started playing with my OLED display with I2C again today. I'm just trying to get the screen to respond to a button press but need to get a bit creative so the new text clears the old text instead of just adding to it.

As far as your fan situation. Are you using milli(s)?

I'm thinking you need a variable called fanruntime. I think you also need some other variables like fanstarttime and fanstoptime. When the fan starts, the fanstartime should be set to that time. When the fan stops, the fanstoptime should be set to that time. The difference between fansstoptime and fanstarttime would be the length of time the fan ran this interval. This value would be added to the variable fanruntime which would be the total running time.

Millis() is the running time that the Arduino has been running since a reset. I believe the millis() function overflows around 29 days which might be a problem.
Top of the page Bottom of the page


Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete cookies)