Please help with a project

Hi
Im Ayush, im a beginner in arduino programming and i would like you experts to help me out with a project.
Project:
Im using an arduino uno, moisture sensor and a tenp sensor.
I want a code when the moisture sensor detects that there is less than 40% moisture in the soil, the arduino turns a motor on for 5secs and then off. And when the temp sensor detects that the temp is higher than 25C then it toggles a switch on, to complete a circuit which turns on cooling. The cooling is turned off when the temp goes at 23C.

I would love you guys helping in this project. If you could tell the coding and where to attach which sensor on the arduino board.

I would really really appretiate your help.
Thanks guys.

I would love you guys helping in this project. If you could tell the coding and where to attach which sensor on the arduino board.

If you want somebody to do it for you there are people you can pay.

get this:

in a RS-485 version

make sure you get a RS485 receiver for the Arduino

run through the example

let us know if you have troubles.

ardly:
If you want somebody to do it for you there are people you can pay.

Look i can find seperate programs for both of the sensor . I just dont know how to combine those two programs into one program.
If you guys would tell me how to do that.

It’s about learning to program - start with a few basics and then move on. By downloading two sketches and trying to just nail them together you will learn very little.
Look at and play with the example programs .

Ayush29:
Look i can find seperate programs for both of the sensor . I just dont know how to combine those two programs into one program.
If you guys would tell me how to do that.

Post the programs and also you best attempt at combining them

...R

Ayush29:
Look i can find seperate programs for both of the sensor . I just dont know how to combine those two programs into one program.
If you guys would tell me how to do that.

That is not what you said in your original post. You said

If you could tell the coding and where to attach which sensor on the arduino board.

That is different than 'help me combine 2 sketches'

OK, you found the 2 sketches. Have you run them? Have you confirmed that you know where to attach sensors?
If you do that, then as @Robin2 said, make your best attempt at combining them. Let us know how it goes. If you have questions, ask. We like to help.

step #1) save one of the sketchs as new_sketch or some such
#2) copy over everyting above setup
2a ) compile
#3) copy over everthing in setup
3a compile
#4) create a new void with the second file and name it something
void DisplayLoop (void){
put stuff here
}

in your loop()

call that with
DisplayLoop();

now, any and every variable that you need to take from one to the other has to be declared as a global.

it may not be the best way, or the cleanest, but to get started, it offers you two places to look for issues.

Or read this
http://www.thebox.myzen.co.uk/Tutorial/Merging_Code.html

Hi,
Im a beginner at this and i have a school project coming up in 3 days.
I really need you guys to help me out.
Can some give me a program using Electro Hub Temperature Sensor LM35 connected to an arduino uno.
And when the temp goes above 25C the arduino turns a fan on. And when the temp goes below 25C the arduino turns the fan off.

It would help me alot thanks.

I think you've perhaps missed the point of this forum. We HELP you to get YOUR code working. We don't just do your project for you with you not bothering to put in any effort.

You said you had two sketches you wanted to combine. So post the two sketches and the best attempt you have made to combine them and we'll HELP you to get the combined code working. But if you have done nothing then we're not going to do anything either.

Steve

Hi,
Im Ayush and im a beginner in arduino, i have a school project coming up in 3 days. I really need you guys to help me out.
Project:
I need to program an arduino uno that, using an Electro Hub Temperature Sensor LM35 and a cpu fan. When the temp goes above 25C the arduino turns the cpu fan on till the temp goes below 25C And then it turns off.

If guys could give me a sketch for this, it would be of great help.
Thanks

Unlikely anyone will do your homework for you - sorry

but doing the homework is the whole intent of learning - if someone does the code for you - you will not learn anything

Ayush29:
Hi,
Im Ayush and im a beginner in arduino, i have a school project coming up in 3 days. I really need you guys to help me out.

You keep saying that. And then you ignore everything we suggest.

You are not going to get your project done unless YOU do some of the work. So I guess you've failed. Shame, I would have been happy to help but not to just do it all for you.

Steve

Hi,
Try google lm35 arduino code

Tom... :slight_smile: