formula409
New member
Damn if only a 328 had one more pwm pin would make the ultimate slave light controller
:/ and only $4, cheaper then a bloody pcf chip
:/ and only $4, cheaper then a bloody pcf chip
Last edited:
Damn if only a 328 had one more pwm pin would make the ultimate slave light controller
:/ and only $4, cheaper then a bloody pcf chip
D0ughb0y,
Trying to get my head around why the need for precise fan speed?
I can understand the need to know that that the fans are spinning, but given the demand on the processor, or its support logic it seems overkill.
M
I'm getting a reading as high as 6000rpm on a fan rated for 1200rpm.
On my simple test program with essentially the same code, I get reading within +/- 20 rpm at max speed.
I have not figured out yet why the discrepancy, considering pin change interrupt has quite a high priority in the interrupt priority chain.
I'm going to try one variation of the current code first before I try the input capture method. The input capture feature looks quite useful, I'm not sure why arduino designer decided to only use 2 out of 4 available pins. The other 2 pins are simply not connected on the mega board.
anyone having problem with there conductivity probe, mines kept reading different reading over 24 hour time
if (data.type==_cond) { //set conductivity stamp to return SG only, K=1.0
data.saddr.print("\r");
delay(1000);
data.saddr.print("response,0\rl,1\rc,0\ro,ec,0\ro,tds,0\ro,sg,0\ro,s,1\rk,1.0\rr\r");
} else
btw, wgraham, I forgot to mention, I had to modify the initialization code for EZO sensors a little. I had to split off the first \r, otherwise, it was not initializing on mine. I have not checked in this fix yet, but the change is this
Code:if (data.type==_cond) { //set conductivity stamp to return SG only, K=1.0 data.saddr.print("\r"); delay(1000); data.saddr.print("response,0\rl,1\rc,0\ro,ec,0\ro,tds,0\ro,sg,0\ro,s,1\rk,1.0\rr\r"); } else
I set L,1 for now to keep the LED on so I can see on my test setup that the atlas stamp is working fine (green and cyan light only, no red).
overnight, my SG reading just drifted down from 30 to 28.5, probably due to decrease in temp. There were a couple spike readings, one 43 and one 62, but I removed the range restriction code on my setup. I am going to try to add the temp compensation to see if it makes the Salinity reading not drift as much. I now realize I've been running my tank for years at salinity of 30. I have to slowly adjust it to increase to 35.
Okay I will put it in the code today thanks, just checked my log in the one I got initialized okay.
I was wondering that the changes could be temperature related.
When mines drops down I can move it around in the sump and it would go to a different reading
Also why do you have the response to 0 and C to 0. Just want to understand.
My refractometer was reading 1.020 and the sensor was reading 35 sometimes and go to 30 sometimes. So I recal the sensor and increase my salinity to the new cal. So I don't know which to believe now.
c.0 is to turn off continuous mode. I do that even on the old serial ph stamp. I control the reading by sending r\r.
the old stamps do not return response string, hence I turn it off on ezo stamp using response,0 so I don't have to add more code to parse the response.
since this morning, I can see my salinity value slowly drifting back up as temp slowly rise. I'll add the temp compensation code and see if the salinity reading will drift less.
I think I have not calibrated my refractometer since I first bought it, maybe over 5 years ago. I will try my trusty old hydrometer tonight, as Archimedes' principle is time tested and does not depend on any tech. I have a feeling the cond sensor is correct, since I know I put in less salt (maybe half cup less for 5 gal mix) than what is called for when I do my salt mix yet the refractometer shows I am at the SG I want.