I’m working on a motorcycle here. I have a 12v battery to work with and a stator that produces (limited) power. I have a throttle position sensor that I believe needs 5v input and outputs up to 5v.
The question is: how do I convert ~12v to 5v? The 12v may not be exactly 12v and if my understanding of motorcycles is accurate it may fluctuate as I ride. Is there something that can take let’s say 11-13v and always output almost exactly 5v? Minor fluctuation is fine but any fluctuation would be seen as a changing throttle position. 10% is a huge error. More like 2-3% error would be nice.
Whatever device it is, if it doesn’t use up too many amps that’d be nice as my stator can only handle so many amps drawn.