PLEASE HELP !!! BEGINNER PROGRAMMING TO RUN OBJECTS AT THE SAME TIME

Hello everyone,

Long story short I had an Arduino laying around and wanted to put it to use for a school project. I got everything wired up and running with some basic code. I have absolutely zero experience with any type of code. I have a servo, leds, LCD screen, and a speaker all hooked up to my arduino uno, but they run in sequence in my loop(); code. my leds would turn on then the LCD start, then the servo moves and then the speaker plays. I need all of that to happen at the same exact time. Can someone please help!!

I've attached my code down below.

Thank You!

Diarama_test_1.1.ino (1.17 KB)

Try Demonstration code for several things at the same time - Project Guidance - Arduino Forum

I had seen that post, I don't know why but I can not grasp the concept of how to do it.

x3xplosiiv3x:
I had seen that post, I don't know why but I can not grasp the concept of how to do it.

If you explain what you don't understand I will try to help.

The idea is that there are several functions and each of them runs very briefly and returns to loop() so the next one can be called. Long running processes are achieved a tiny piece at a time. And there may be dozens of calls to some functions before it is actually time for anything to happen.

...R

Well then I guess my question would be what are the exact code commands I would need and what they exactly do?

x3xplosiiv3x:
Well then I guess my question would be what are the exact code commands I would need and what they exactly do?

Amazing ... :confused:

Can you post the code you've got?
Helping you would be easier then.

x3xplosiiv3x:
Well then I guess my question would be what are the exact code commands I would need and what they exactly do?

That's not a real question, that's a request for someone to write your program for you. Good luck with that.

Steve

I agree with @slipstick

If you make an effort to use the ideas from Several Things at a Time and run into difficulties we will try to help.

...R

A good start would be letting us see your code.
please edit your OP, and repost the INO within tags.

Many - including me, browse on a phone or tablet... no INO here.