@ajb2k3 said in Component recommendations: Rotate a servo using signal from a linear encoder:
For a Start M5Stack uses Micropython and so you already know how to program it
What kind of Linear encoder are you thinking of
Many thanks @ajb2k3.
Linear encoder: it'll be a set of digital vernier calipers with a 4-pin data output - very similar this post by Martin Thalheimer: https://shorturl.at/anNRU
Level shifting: Same as in Martin's post, my encoder outputs a 1.5V signal, while microcontrollers typically require a higher voltage input 5V(?). Ideally, I'd like an M5Stack component to handle the level shifting, rather than making another circuit board dangling between the devices .
Updated question
Have a linear encoder with a 1.5v signal output similar to
https://shorturl.at/anNRU
Have a 5v micro servo
Need to read the displacement d on the encoder, and rotate the servo by an angle a = f(d)
Need help selecting the correct M5Stack components that:
-- includes a microcontroller, screen & buttons interface, and rechargeable battery (one of the cores. Which one?)
-- reads the 1.5v signal from the encoder and handles the level shifting internally (or doesn't need level shifting?)
-- runs a Python script that applies the transformation a = f(d) (the core)
-- rotates servo by angle a (servo controller).