Hi,
As a first project of some importance, I decided to combine several sensors into one project for the home
- DHT22 for indoor temp/ humidity
- DHT22 (or adequate alternative) for outdoor temp/ humidity
- Atmospheric pressure
- Time /date
- MQ7 CO sensor
- MQ2 smoke sensor
Features of the project
- Display temp/humidity indoor /outdoor
- Display pressure
- Display CO values (approx)
- Alarm on high CO (following guidelines from gov.). Using active buzzer (not in diagram yet)
- Display date and time
- Store any run values/settings in EEPROM (or perhaps flash card)
- Store historical data on flash card of sensor values at frequency T.B.D.
- Options to see min/max temp/ humidity for the day
- Options to see min/max temp/humidity for past few days reading from memory or flash card (T.B.D.)
- Options to see min/max temp humidity since last 'reset'
- buttons (3 or 4) to navigate options
- setup menus for date /time and other settings. (later?)
- powered by wall wart, as MQ7 is relatively power hungry.
I included the schematic, here are some comments
- The LCD, RTC, Barometer, EEPROM are I2C connected
- SD card is SPI
- DHT is using digital pins
- MQ7 is using 2 digital pins + 1 analog for reading. This one is annoying, as the datasheets say power heater at 5v for 60s, then at 1.4V for 90 seconds. I used a N channel mosfet to turn it on, and a P mosfet to swith between 1.4V and 5V on the heater.
- MQ2 is simpler, 1 N mosfet to turn the heater on, 1 analog for readout.
- All the components I have tested or used, except for the MQ7, MQ2.
- If I run out of digital pins, I will use a shift register or an i2c I/O extender.
Can you comment on the project itself?
Would you look at the schematic? it is a first draft and I am sure there are mistakes, and being new to electronics, there might be conceptual mistakes as well.
Best wishes.