Introduction: Ambiental Sensor With 2 Output Commands

Picture of Ambiental Sensor With 2 Output Commands

hi,

i made this ambiental sensor using arduino uno and arduino lcd 16x2 shield(with analog buttons). The sensor i used is DHT11 but it works with all DHT sensors.

It has 2 outputs that can connect to an arduino relay shield or other types of relays. The first output is used for temp control and the second output is used for humidity control.

From the buttons you can select the temp point and the humidity point after the outputs are switched to ON state.

On the main screen you will see the curent temp and humidity marked with T-temp. and H-humidity, and another feature called Tvar wich is the variation of the temperature from min to max, basically an arithmetic mean.

Step 1: Sensor Connection

Picture of Sensor Connection

The DHT sensor has 4 pins but only 3 are used.

As you can see in the picture, facing sensor with the label towards you, the pins are from left to right:

-Ground

-NC (not connected)

-Data (conected to pin 2 digital on arduino)

-5V (power)

The output pins for the relay are:

-Output 1 pin 3 digital from arduino

-Output 2 pin 13 digital from arduino

Step 2: Case

Picture of Case

I've used an IP56 120mmx120mm plastic case for mounting the arduino, the temp sensor can be glued on the case (externally) and the switching relay can pe connected through holes with a lan cable or other 4 pin cable.

Step 3: Arduino Code

This is Arduino code, it contains the software you need to write it inside your Arduino uno. The code can be modified for any other Arduino. I've used a "diagnostic mode" on serial port, if you have problems with the project you can always connect to the usb port and run the serial monitor from Arduino codeing software, and you will se if you have sensor reading or the relay output is working.

Comments

Florin_escu (author)2016-01-24

Asa este dar toata filozofia ARDUINO este bazata pe OPEN SOURCE, eu deabia am descoperit lumea asta si sunt fascinat!

Bogdan RaduB (author)Florin_escu2016-01-24

open source nu înseamnă free work.open source înseamnă ca poți modifica muncă altuia fără să plătești licență, eu câștig de pe automatizări cu arduino și siemens. arduino se pretează pt Home user doar. în mediu industrial nu merita

Florin_escu (author)2016-01-24

Asa Radule, fi rau!

Bogdan RaduB (author)Florin_escu2016-01-24

salut, poate ca am fost puțin mai dur, dar nici să îi dau pe gratis totul nu îmi convine. am făcut și eu un test pe pagina asta să văd despre ce este vorba. eu din asta trăiesc iar el vrea să să folosească soluția mea fără să transpire un pic.

Bogdan RaduB (author)2016-01-23

I believed I've solved the code file problem.

DIY Hacks and How Tos (author)2016-01-22

Great sensor project. You should enter this in the Arduino All the Things contest.

without any code and any electric scheme? great...

Bogdan RaduB (author)mrsharkit2016-01-23

hi,

i've uploaded the code, and electric scheme you don't need one. i've explain the input pins and output pins and how to connect them.

mrsharkit (author)Bogdan RaduB2016-01-23

i don't see any code, yet...

Bogdan RaduB made it! (author)mrsharkit2016-01-23

as you can see in the screenshot there is a file uploaded, don't know why you can't see it.

regarding the shield and schematic: every shield use some pins, but not all of them. unused pins have open pin holes so you can connect your wires.

i'm not gonna post a text like this "with your right hand grab a blue wire 20awg, and strip it from right to left using a wire stripper that you'll be using with your left hand. after this operation wipe your head and grab a cup of tea...."

i'm assuming you have the basic knowledge about electronics and electricity, i'm not here to teach you that. i'm here to give you a solution to your problem, show you how i've done it and how to improove it.

of course this is my first instructable, i don't know the rules yet, i didn't had time to explore all the features of this site or his benefits. this instructable i'll try to make it better.

thnak you for your comments and for for your time, this is good for me to and i'll try to correct it.

have a nice day :)

mrsharkit (author)Bogdan RaduB2016-01-23

i see only 4 images:
1 with t=22C and so on, on the screen
2 the pins used of the dht11
3 the box from an angle view
4 the box from a side view

nothing else... tried emptying cache and changing browsers, no luck...

even in the screenshot you posted, which is from an EDITOR view we have NO access, the image of the screen is NOT present in final article... try yourself to look at your article from an other browser, being NOT logged in...

mrsharkit (author)Bogdan RaduB2016-01-23

and a scheme would have been a kind addition, as you use a shield that obviusly used every pin when plugged in and you don't explain how you connected PHISICALLY the pins you say... an instructable is supposed to be instructable, not a showcase...

Bogdan RaduB (author)2016-01-22

I'm new to this page, not so sure what it does. This was a first project, i have many. Dont know if i will get paid, a friend of mine told me that but i dont think is true. Thanks gor the comment.

About This Instructable

398views

11favorites

License:

More by Bogdan RaduB:Ambiental sensor with 2 output commands
Add instructable to: