Pages: [1]   Go Down
Author Topic: Stepper: Read position when off.  (Read 183 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've searched and can't find a good answer,  Is it possible to write my code so that when no stepping is in progress but the rotor is manually moved, it counts how many steps it has moved so that when initialized by the code it can return to position 0?
I'm trying to do this without the use of an additional encoder or extra buttons as limit points (like on a CNC machine).
Logged

Offline Offline
Faraday Member
**
Karma: 92
Posts: 5401
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can forget about that. The only way is with an ABSOLUTE ENCODER (NOT INCREMENTAL) and even then you need some electronics to read the values
Logged

Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,
DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Offline Offline
Newbie
*
Karma: 1
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, that's what i was afraid of.  I have a plethora of scrap steppers i could use for my project but no servo's and don't feel like buying any.  Will see what i can get together, thanks!
Logged

Narvik, Norway
Offline Offline
Edison Member
*
Karma: 23
Posts: 1020
electronics engineer, teacher.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

add a microswitch to detect an end stop
Logged

Ny

Pages: [1]   Go Up
Jump to: