Alternatives to potentiometers - hall sensors, etc

Alternatives to potentiometers - hall sensors, etc

Postby jeruw » Thu Apr 23, 2015 4:31 pm

A few of us have been talking about experimenting with different sensors on the pivot arms. I've been considering several different types of hall sensors from simple 3 wire ratiometric sensors to more complicated rotary/angle encoders. SC-Maik is working on a design using a similar 3 wire sensor, and zdayton was discussing using a angular encoder.

I was hoping we could centralize this discussion here rather than in various posts across our different build threads.

For those wanting to try out similar builds, one option would be ordering samples. Some manufacturers offer limited free samples, you just need to register on their site.

I requested samples from AMS. You can request 3 of each of 3 different products per month for free for sample purposes. Here's the listing page. http://ams.com/eng/Products/Position-Se ... on-Sensors

I'll have a couple of TSSOP-14 and SOIC-8 chips to test with. I'll need to go back over the data sheets and see which I'm more interested in working with. This one in particular is interesting - http://ams.com/eng/Products/Position-Se ... ors/AS5600

That chip provides a linear analog output of 0-360 degrees, but that range can be programmed to a user specified range, either a full 360 degrees, 180, 90 or 45 degrees. The 90 degree range would be more than enough movement for a pivot arm. I think that'd provide enough accuracy and be fairly easy to implement. It's also a less expensive component when it comes time to buy.

It's worth noting that they also have magnets and interesting hall effect joystick modules that might make for a good hat switch. If you don't want to experiment with different sensors you could get 3 of the sensor you want to use, 3 magnets, and a couple joystick modules.
jeruw
 
Posts: 80
Joined: Tue Feb 17, 2015 3:10 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Fri Apr 24, 2015 7:50 pm

Will this adapter work with AS5600?

Image

Or even better this one

Image
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby jeruw » Fri Apr 24, 2015 8:12 pm

Probably? It's an SOIC-8 chip, so I don't see why not. Something with some mounting holes would be nice, but nice finds! Decent price points too.
jeruw
 
Posts: 80
Joined: Tue Feb 17, 2015 3:10 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Fri Apr 24, 2015 8:17 pm

I will center it and mount it using round protoboard

Image


Edit: Can't be centered with this protoboard... 9x9 vs 4x4 :(
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby zdayton » Mon Apr 27, 2015 7:22 am

I ordered some boards to mount my sensors on and some stuff from mcmaster to build a new throttle with magnetic sensors. The boards I got from OSH Park, i got 6 small boards for $13 shipped. I will also be testing the new pivot arm design and magnet placement. I will upload results soonish.
zdayton
Site Admin
 
Posts: 81
Joined: Wed Dec 24, 2014 6:20 am

Re: Alternatives to potentiometers - hall sensors, etc

Postby jeruw » Mon Apr 27, 2015 11:03 pm

All of my samples from AMS showed up today. Talk about fast! I'll need to source or make some sample boards now and see if I can get these tiny components mounted.

Did you do a custom board with Osh Park or pick up something off the shelf?
jeruw
 
Posts: 80
Joined: Tue Feb 17, 2015 3:10 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby zdayton » Tue Apr 28, 2015 1:51 am

I did a custom board. It went to fab today and should be done may 9 I think, hopefully sooner
zdayton
Site Admin
 
Posts: 81
Joined: Wed Dec 24, 2014 6:20 am

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Tue Apr 28, 2015 4:48 am

jeruw wrote:All of my samples from AMS showed up today. Talk about fast! I'll need to source or make some sample boards now and see if I can get these tiny components mounted.

Did you do a custom board with Osh Park or pick up something off the shelf?


Ams samples arrived as well and yes they are pretty fast.
I am waiting an AMS adapter board from Digikey by April 30 to start testing, before making custom boards.
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby jeruw » Wed Apr 29, 2015 6:59 pm

I ordered some test boards from ebay last night for both the SOIC-8 chips from Analog Devices and AMS and some 14 pin boards for a couple other AMS chips I have for testing. Unfortunate that there aren't better options with mounting holes out there off the shelf. I'll need to figure out how to design a board I guess.

In addition to the AS5600 samples I got some 6mm x 2.5mm diametric magnets from AMS.

Have you put any thought into how you'll wire up and program the AS5600? I wondered if it'd make sense to write in a calibration routine of some kind. Some button sequence that would enter calibration mode where you'd set the start and end position. Enter program mode, pull up or take the weight off the Delta, click a button and it sets 0. Push down and click a button and it sets the end point. Click again to exit the program mode.
jeruw
 
Posts: 80
Joined: Tue Feb 17, 2015 3:10 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby Nemesisghost » Thu Apr 30, 2015 5:28 am

jeruw wrote:Have you put any thought into how you'll wire up and program the AS5600? I wondered if it'd make sense to write in a calibration routine of some kind. Some button sequence that would enter calibration mode where you'd set the start and end position. Enter program mode, pull up or take the weight off the Delta, click a button and it sets 0. Push down and click a button and it sets the end point. Click again to exit the program mode.


Have you looked at my interrupt addition? Mine turns the throttle "off" locking the axis output to 0, when I turn it back on it runs the initialization method. Here's the Arduino reference to setting up & using interrupts.

You could utilize a similar interrupt setup to switch states, one being normal operation & another would be for calibration. The benefits of using interrupts is that unless the micro-controller is busy with another interrupt, the interrupt's method will always fire meaning that you don't have to listen & possibly miss the mode switch. Interrupts do add complexity. You want to keep the interrupt methods small & simple, as they will prevent other interrupt methods from interrupts from running. This is especially a problem if you are using something like I2C. That is why you want to use the interrupts to set different modes & then continue to do all the heavy lifting in the Loop method.

The Pro Micro has 5 pins tied to interrupts, 4 are also special hook up pins(I2C & Serial Bus). I2C is good if you need to expand the number of pins or hook up special boards, but for our purposes we don't need the Serial Bus. Which leaves 3 interrupts we can easily use. This allows us to have either 4 single button modes or 8 multi-button modes. That should be more than plenty to have a calibration mode, an "off" mode & a normal running mode.
Nemesisghost
 
Posts: 14
Joined: Thu Apr 09, 2015 12:44 am

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron