2 Sensor and 2 Stepper motor and a lcd display

(deleted)

What have you tried already ?

Hi,
Welcome to the forum.

Please read http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Please write your posts in lower case.
UPPER CASE MEANS YOU ARE SHOUTING... :slight_smile: :slight_smile:

What do you want the stepper motors to do?

Can you please tell us your electronics, programming, arduino, hardware experience?

Thanks.. Tom.. :slight_smile:

(deleted)

Hi Yuva,

writing in CAPITAL letters is interpreted as shouting. Which is pretty unpollite.

You seem to have a wrong imagination fof how coding works.
It does not work that way

"Hey Alexa order the same Pizza as I ordered on friday"

I want to describe programming with an analogon:

programming is like using Lego.
Now there are different kinds of Lego
Lego-Duplo
Lego-classic
Lego-technic

Lego-Duplo is for very young childs and pretty easy to use. For building easy and more rough-shaped things.
Nontheless you could build up pretty massive things if you take a lot of Lego-bricks

If you want it to look smarter you would use Lego-classic
If you want much more functionality you would use lego-technic
And of course you can use any combination of them.

Now programming is even more
It is like all kinds of lego, metal construction kits, plaster, silicon for joints, screws and nuts of all sizes
glue, clay etc. etc. etc.

With this set of material you can create a lot of functionality (at least when you are McGuiver)
Similiar thing with programming
You can do easy things like with a few Lego-Duplo-bricks or high functional things using a bigger set of components
than just Lego-Duplo

So if you want to have real quick success go splitting wood. If you want to program there is a learning-process that take some time. You can have a lot of fun running up the learning-curve. Let an LED blink as a first step into programming.

For two stepper-motors and two sensors you have to take time to analyse and the describe in the forum
-what kind of stepper-motor?

  • what kind of stepper-motor-driver?
  • what kind of sensors?

So at first you have to make a fundamental decision:
investing 20 to 50 hours in learning the basics of programming
or
....
....
....
not!

Not would mean to abandon the project right now!
There is nothing inbetween except maybe a online found program that has similar words in the description
downloading it trying to upload into your microcontroller and then beeing lost again because you don't understand anything
trying to get help with asking for code just getting answers "post your own attempt".

So it is up to you to decide....

You have decided to try to get some user here to write the code for you.

you did not yet understand how this forum works.

to say it very clear:

YOU the thread-opener has to post at least a first small attempt of SELFWRITTEN code how it might work.
And ask a SPECIFIC question about one of the DETAILS how to proceed.

or as an alternative to ask for a link to a tutorial to learn YOURSELF programming this functionality .

In the meantime of waiting for an answer you should transform the waiting-time into getting productive by
learning programming in general

Take a look into this tutorial:
Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

There is another option:

read it to the end before you take action on this:

report to a moderator to move your thread to the gigs and collaboration-subforum
and ask there if somebody will write the code for beeing PAID MONEY for writing the code for you.

So your opportunities are:

  • taking time to learn programming
    or
  • taking time to work on whatever job to earn the money for paying the programmer

best regards Stefan

as an addition:

posting this really poor description

The material I have to use in this project is

  1. Stepper Motor(2)
  2. Lcd display
    3)Please this image os sensor (2): https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcRyWTHzZjj9DR7tKNuVLDgw5IbtFa12N9HhX1svH-B2tRluiMWSivnrK4SkG0uurThQjqH9RbLjdTwKoy0nKEbyk8ACbSyvAY1EsWqfIsdpMs9u1qmVXpRY&usqp=CAE

and a non-functional link to a WhatsApp-picture creates an impression that you are

a: somebody who has no idea what kind of work a project like this includes:
analysing datasheets to obtain the details how to write the code for this specific hardware.

b: a guy who is lazy and wants others to do 98% of HIS work

So the bare minimum is to provide WORKING links where DATASHEETS of the sensor
and WORKING links of the technical specs of the stepmotor and the stepmotor-DRIVER

I assume this was not your intention. my position is: I have given enough hints how to change the picture of yourself to the forum.

best regards Stefan

Hi,
PLEASE READ the first paragraph of POST #2.

Attach any images and the forum editor will load them into your post.

The sensor is a photo-interrupter.

Thanks.. Tom.. :slight_smile:

(deleted)

My impression that you are someone who is lazy solidifies.

The code above is for sure found somewhere online and you did just a quick copy and paste.
This code has nothing at all about stepper-motors

Your posting can be translated into:

I'm really lazy!!! here is some code !! write me the code I have asked for and HURRY UP!!!

no no no no no no no no no no

That is NOT the way this forum works.
I'm curious how many posts it will take until you learn to put REAL OWN EFFORT into this project.

The only help you will get from me is a step by step manual how to put OWN EFFORT into this project:

STEP1: Post a link to a datasheet of your stepper-motors. Not pictures. A datasheet!

STEP2: Post a link to a datasheet of your sesnors. Not pictures. A datasheet!

STEP3: do a google search with the keywords "Arduino stepper library" and post those three links
you think were the most useful links combined with the question

After posting this in the meantime of waiting for an answer start to work through this
Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

best regards Stefan

(deleted)

(deleted)

The code you have posted does not even have a first stepper-motor.
I still have the impression that you know almost nothing about programming.
If you would know something about programming you would have been able to post a code that does have at least something about a single stepper-motor.

I'm sure you know how to use google.

Here is a screenshot of how to search for an example-demo-code about stepper-motors

I guess your picture of how programming works is:

add 5 to 10 lines of code and everything is working.

If it would be that easy somebody would have posted the ten lines of code.
But it isn't that easy.

I write programs for 37 years know. So you can really believe me from this experience.
If somebody would post a part of the code that you need you would compile and upload it
and it might work but then you would come back after 15 minutes to ask the next question
Now how do i....
short answer with a piece of code
then you have the next question how do i ...
short answer with a piece of code
... ... ... .... .... .... ...
and this process would go on for 8 to 12 weeks! You understand 12*7 = 84 days = 3 months.

and still after all this time if you want a tiny change in your program you would still only know tooo less
to do the change yourself.

The alternative is to take 5 to 10 days each at 5 hours a day to learn programming yourself
and having the project finished in just 3 weeks.

So it is up to you to decide....
best regards Stefan

(deleted)

(deleted)

(deleted)

Talking to me really doesn't need a "Sir"
I am serious now: if you feel the need for a deference show more own effort or ask more detailed questions. But leave out the "Sir" I don't like it.

You still seem to think "copy & paste 5 lines of code and you are done." It needs a bit more.

What is so hard about using google?

www.google.de/search?as_q=Arduino+demo-code+reading+potentiometer

www.google.de/search?lr=&newwindow=1&as_qdr=all&ei=0gQHYJL5IM-dkwXI0JrwCw&q=Arduino+potentiometer

I even pasted the important part of a sentence from you into google

www.google.de/search?lr=&newwindow=1&as_qdr=all&ei=DQUHYJKgC5mHjLsP0vSdEA&q=+add+a+potentiometer+to+this+code

and google comes up with useful hits.

best regards Stefan

From the code you have posted I can see that you need some basic knowledge. With asking your question

I would like to add a potentiometer to this code but I don't know how to, can please help me.

You are asking me to give you a personal training and explanation on the absolute most basic niveau which you can do yourself. If I really shall do this we first make a donation-contract that for every hour of my time you do a donation of $50 to a non-profit organization of your choice.

Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

best regards Stefan

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.