multitaskin problem

HI guys, im new in programing and i have a project that is to create a egg incubator .
i have :

-an oled display to show me the temperature and humidity

-a dht11 sensor

-2 5v relays to activate a 230v motor (to spin the eggs) and a to activate a ceramic lamp (to control the temperature)

my question is how can i program a motor that have to spin every 12hours without messing with the rest of the programing.

without messing with the rest of the programing.

We can't see any programming, so the advice we usually give is "look at the blink without delay example , without delay"

You could use two AVR boards. They can be bought for about US$2.50 each. :slight_smile:

darkassasinpt:
my question is how can i program a motor that have to spin every 12hours without messing with the rest of the programing.

Why do you think it might mess "with the rest of the programing"?

...R
Several Things at a Time

This is the program that im using but the motor is off and on the same time and i want that the motor spin 1 second every 12 hours

help.ino (11.5 KB)

darkassasinpt:
This is the program that im using

Where did you get that program and why have you chosen it?

I suggest you start with a simple program that does not have any display and just shows output on the Arduino Serial Monitor.

When you have the practical functionality working you can then add code for the display.

...R

that was a program that i have found in a website but i changed it a bit

darkassasinpt:
that was a program that i have found in a website but i changed it a bit

That's interesting.

darkassasinpt:
that was a program that i have found in a website but i changed it a bit

It is a reasonably complex program. if you figured out how to change it I don't understand why you are having the difficulty you have posted about here.

You have not answered my question in Reply #3. If you explain your thinking it will be much easier to help you.

...R