Connecting an angle sensor (0to360degree) to an LED matrix

I need some help finding a sensor that can measure angles between 0 and 360 degrees that I can connect to an LED matrix or screen (<1") that shows the angle, the sensor should be precise to <1*.

Any suggestions for a method that can help me do so is much appreciated. :).

Hi,
An angle between what.
What is the application, as there are so many types of sensors.

Tom...... :slight_smile:

@OP: Don't waste any of your time looking for this thread's near-identical twin, because I deleted it.

DO NOT CROSS-POST, CROSS-POSTING WASTES TIME.

If you're measuring the angle of local gravity - a tilt sensor - then the ADXL345 is pretty good. It's able to measure angles quite precisely. (I don't recall a specification in degrees but it's pretty damn tiny.)

1" screen? There's some micro-OLED screens but this size is pretty rare. Depending on what you want to do, I would recommend you either go to 7-segment LCDs or go up to a bigger screen.

Hey guys! I'm sorry for cross posting I forgot to read the how to use this forum before posting for the first time!

My application is to measure the angle between two lines connected to a single point just like a protractor.

What kind of sensor would help and how should i go from sensor to displaying it on an LED screen?
:slight_smile:

Come on. Lines are only one dimensional objects they are not real. What do you want to measure?

Look at a Hall effect absolute shaft encoder.

http://www.ebay.com/itm/140775658827?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
Just get one of these. For $15.00 it's hard to beat.
I just bought one and going to see what they are using to measure the angle. Might be a source for a cheap encoder

That's what I thought too :slight_smile:

Thanks for the help. Yeah encoders are really expensive :o

No a magnetic Hall effect rotary sensor with 10 bits of accuracy is only £7.00

Here's an example of a 12-bit magnetic encoder. It's an AS5055. The chips cost $5 and magnet $3. (At least that's what they cost when I made the video and when purchasing 100 at once.)

As you can see from the video, it's pretty stable (with a bunch of samples averaged).

This first video makes magnetic encoders look like a great solution and they are if they're used correctly.

I attempted to replace a pot inside a servo with one of these encoders with less than stellar results.

I used one NeoPixel rings to indicate the position read from the encoder and another NeoPixel ring as a speed indicator (based on change in position feedback). You can see at about 2:47 into this video how poorly the encoder data represented the actual position of the servo.

At about 0:42 into the same video, I show the small PCBs I used inside the servo. The PCBs were the same diameter as the original servo pots. In hindsight I don't think it was a good idea to try to make the PCBs the the size of the pot because by the time a diametrically magnetized magnet was added to the underside of the final servo gear, the magnet protruded beneath the level of the plastic pot holder.

I probably would have been better off using a PCB made to fit inside the open area of the servo. The alignment of the sensor and the magnet was very poor.

I'm not sure if the poor sensor alignment accounted for such atrocious feedback from the sensor or not. I suspected the motors may have also prevented the sensor from working as well as it's capable.

So while these are really cool sensors (an I'm still a huge fan), you need to make sure you're careful with how you mount them.

I choose the AS5055 because it's such a small sensor and it's a 12-bit sensor. AMS makes all sorts of other magnetic encoders. Many of these other chips are easier to solder than the AS5055.

I used four of the AS5040 to make this:-