I want to make a window fan that will detect the room temp and then slowly increase the voltage on the fan until its at full speed. I understand that I can buy this kind of fan at the store, but the main reason is when the fan kicks on, it's zero to 100 and wakes up my baby.
One this fan, I want a display and 4 other buttons(Temp up/down, on/off, Max power and Normal)
I'm really interested in the compact design of the nano, but I'm unsure if there is enough inputs on the board to support a display and 4 buttons. If this doesn't work, please recommend the best board for this.
I'm also powering this fan with either 12V(camper) or 5V.
You can definitely connect the LCD via I2C and to my knowledge there are ways to connect more than one buttons to one pin of Arduino. So 4 buttons and an I2C module should take 3 pins. But I've never used a Nano, and not exactly sure if it has I2C or not. But even without an I2C, seeing that you'll most likely use PWM to control the fan, I'm pretty sure your Nano can handle a normal LCD and 4 buttons, considering you can connect many buttons to one pin.
Grumpy_Mike:
It has it uses the identical chip as the Uno only in a surface mount package.
Going back to the pun thing I spoke of earlier, I saw the title of this and thought, yes I am a fan of rooms too.
Then yeah, you should be able to handle your LCD and 4 buttons with 3 pins if I'm not mistaken. Actually, I'd just use I2C LCD and normal buttons, because last time I checked connecting several buttons to the same pin required you to be a little precise and had a trial and error part to the whole thing.
And, on the pun side of things, I consider us equal. It's 1-1 man, bring it on!
Something to look at here is the fan motor on an existing extractor may not be suitable for varying its speed. ( they are usually an AC reluctance type motor which will only run at one speed) You might need to check that and possibly swap that out .
OP mentions a 12V DC power supply for the fan, that should make speed control easy using PWM - assuming it's a brushed DC motor, which it most likely is.
A Nano definitely has enough pins even if you run that display without I2C backpack. You have 19 I/O available, plus the two extra analog inputs A6 and A7 that the Uno doesn't have available.
RabbitTheDevil:
last time I checked connecting several buttons to the same pin required you to be a little precise and had a trial and error part to the whole thing.
It is true that you generally need to calibrate the code to the set of buttons.
My concern with these devices - such as the "LCD Keypad shield" and the control buttons on most computer monitors - is that they frequently become unreliable due to moisture ingress into the lubricant on the "tact" style pushbuttons. This has even happened to the odometer/ trip meter on my car - the reset button will not work on a cold and humid morning but will after the car has warmed up.
Such experience on many such devices I have used leads me to strenuously advise against this approach.
wvmarle:
OP mentions a 12V DC power supply for the fan, that should make speed control easy using PWM - assuming it's a brushed DC motor, which it most likely is.
(Relatively) Low speed motor. More likely a brushless motor like most used as computer fans,
Paul__B:
It is true that you generally need to calibrate the code to the set of buttons.
My concern with these devices - such as the "LCD Keypad shield" and the control buttons on most computer monitors - is that they frequently become unreliable due to moisture ingress into the lubricant on the "tact" style pushbuttons. This has even happened to the odometer/ trip meter on my car - the reset button will not work on a cold and humid morning but will after the car has warmed up.
Such experience on many such devices I have used leads me to strenuously advise against this approach.
(Relatively) Low speed motor. More likely a brushless motor like most used as computer fans,
Yeah like I said, I didn't know what Nano had for pins, apparently it has way more than enough to do the job at hand anyways. I don't like that type of connection either, I thought it could be used here that's all. But now you made me a sad boi