SAVE postion of a direct current motor and to be able to get it back using arduino and ir remote

Hello everyone , please i have troubles in my school project and it's in how to save direct motor's position (angles precisely ) in an ir remote (each position saved in an associated button) and to be able to get this position back , so how can i do this using arduino as an intermediate . thank you

Put yourself in our position, and imagine that we don't have any idea what you're writing about

the thing is that i want to adjust an electric bed wich rotates and get it to a certain position using a dc motor and in case i liked a particular position i can save it using my ir remote and be able to get this position afterwards i hope i made my self clearer thank you for replying i hope you can help me

OK, when you've got it clearer in your mind, get back to us.

Maybe with some capitals and some punctuation.

OK , can you at least guide me .

Present what You have achieved so far. Schematics, code.... And present the trouble....

I have done the modelization of the dc motor , the trouble is that i need a way to save a dc motor position in arduino and to be able to order it using an ir remote . I have figured out a way to give the order but how to save the position and call it back , here i'm stuck .

How about EEPROM?

Yes that's what i'm using , but i have a problem in the Arduino code i still didn't figure it out .

What code would that be?

A code that reads the dc motor's position and save it in EEPROM , then do the link with an ir remote

I know it's hard a little bit because it's my final studies project .

No, what is the problem with the code you haven't posted?

I still don't have any code , i'm gathering idea's and propositions for the moment .

But you haven't posted any details, so it's all just hand-waving.
("Ideas" is a plural - it doesn't have an apostrophe)

I'm sorry that was a typo . Is there a way to read dc motor position in Arduino ?

I think positioning is something you do with steppermotors or servo's with feedback (closed loop).
Above that you always have to go to a reference position first so the hardware knows where it is after a power-off and start up.. you could move it while it is off..
Just giving a DC-motor a pulse of xxx mS doesn't say anything about the position.

It depends on what you're using to read the position, but I'm going to stick my neck out and say "yes"

Not directly. Anyway, you don't mean that. The motor goes round hundreds of times as the bed moves. So actually you want to save the position of the bed, not the motor.

In simple terms, what you want is possible, but it requires a position sensor on the bed mechanism which indicates the position of the mechanism. Then your Arduino can operate the DC motor until the mechanism reaches the desired position.

Yes , exactly . But how to operate between the dc motor en Arduino is there a library for that ?