Alternatives to potentiometers - hall sensors, etc

Re: Alternatives to potentiometers - hall sensors, etc

Postby mike43110 » Wed May 13, 2015 4:12 am

Seeing that they do work, maybe i2c would be the way to go.

Already realised I am going to need a digital io extender so i2c means minimal cabling.
mike43110
 
Posts: 21
Joined: Fri Apr 24, 2015 11:45 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby mike43110 » Wed May 13, 2015 6:00 am

I need to throw a wrench into the i2c plan...
We will need multiplexers for i2c as the AS5601 (note, the 5600 does have i2c ONLY for programming from my understanding of their datasheet) has a fixed address...
http://za.mouser.com/ProductDetail/Texa ... 9QykAYc%3d
Is one such multiplexer at a reasonable price. Once the multiplexer is in place however then up to 4 AS5601s can be used. There isn't an address pin on the AS5601 annoyingly.

Another thing that should be looked at is:
http://ams.com/eng/content/view/download/327375
The magnet selection guide.
From what I read from there a 6mm to 8mm diameter magnet would be preferable with 8mm as most preferable due to the fact that the larger diameter helps with misalignment.
mike43110
 
Posts: 21
Joined: Fri Apr 24, 2015 11:45 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby zdayton » Thu May 14, 2015 5:20 am

SC-Maik wrote:What kind of connector are you going to use to mount the boards?


Jst-ph series. Although for testing I don't want to crimp anything so I'm just going to solder the wires to the pads. By the way I'm going to be traveling for work for the next 10 days so you won't be seeing any progress from me :(
zdayton
Site Admin
 
Posts: 81
Joined: Wed Dec 24, 2014 6:20 am

Re: Alternatives to potentiometers - hall sensors, etc

Postby jeruw » Tue May 19, 2015 1:00 pm

SC-Maik wrote:I was damn wrong and I had to find that out the hard way...

You can program AS5600 on 3 wire more only ONCE, the first time you plug it in with PGO enabled.


Actually, I think we should just use 3 wire mode. I've been reading further after mike43110's comments on needing a switch to talk to more than one chip on i2c. Even with i2c you can only run burn_angle 3 times and burn_settings only once. So there's not a big benefit to i2c over 3 wire from a programming perspective other than you get to do it slightly more than once. Plus you have the drawback of having to have a switch IC and the more complicated arduino programming to support it all.

Maybe it'd be worth having optional pinouts for connecting i2c for reprogramming, but just rely on 3 wire for all active function?

If not, I think I want to just order up some of your board design :)
jeruw
 
Posts: 80
Joined: Tue Feb 17, 2015 3:10 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Tue May 19, 2015 1:51 pm

I believe that we don't have to program it at all.

We just have to physically calibrate magnets once in around 2.5 Volts (180 degress out of full 360) while in rest position using arduino serial monitor. Then we can use 90-270 range.

All magnets/AS5600s don't even have to be calibrated at the same values. Every time you plug in throttle, board reads current values and sets starting position for x/y/z. So you can have for example A0=2.5V, A1=2.42V, A2=2,25V and get away with it. Those will be the starting points anyway. If we have to recalibrate it for any reason, we can just unplug/replug the throttle.

I will upload my board design for you in a couple of hours.
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Tue May 19, 2015 3:28 pm

Board files added
Attachments
AS5600.rar
Break out board for AS5600
(4.2 KiB) Downloaded 34 times
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby jeruw » Tue May 19, 2015 4:35 pm

Awesome, thanks! Just ordered 6 of them from OSHPark. Their pricing puts them at $5.05 per set of 3.

I had to rename the files for their submission guidelines. Here's a zip with the renamed files.
Attachments
as5600-3-wire.zip
(4.41 KiB) Downloaded 33 times
jeruw
 
Posts: 80
Joined: Tue Feb 17, 2015 3:10 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Fri May 22, 2015 6:01 am

I've soldered all boards and tonight I am picking up last parts to make my throttle functional.

Can't wait to compare pots with hall sensors (and bearings). I will update you later.
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Fri May 22, 2015 7:36 pm

10x times better response than pots. Smoother, more linear and more accurate!

Forgive me, but I am really tired. I will give more details tomorrow.
I have to fine tune/ align sensors and don't have the patience atm.
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

Re: Alternatives to potentiometers - hall sensors, etc

Postby SC-Maik » Sat May 23, 2015 10:00 am

I've used Arduino's sample sketch "AnalogReadSerial" to align magnets to sensors one by one.

Code: Select all
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  Serial.println(sensorValue);


While pressing first pivot arm all the way down, I've rotated magnet shaft until I was reading 0 on serial monitor.

Changed sensorValue to (A1), uploaded sketch again and repeated process for second pivot arm. Change to (A2) for last pivot arm.

When done, upload Delta Throttle sketch (I've changed "deadzone" to 0). Unplug throttle, put weight on handle while replugging throttle. Run windows joystick calibration.

Load Star Citizen

Remapped throttle

Strafe Up/ Down = Z-Axis (Input 2)
Strafe Left/ Right = X-Axis (Input 2)
Strafe Forward/ Back = Y-Axis (Input 2)

Changed curve values

Strafe Up/ Down = 2
Strafe Left/ Right = 1.8
Strafe Forward/ Back = 1.2

Set Z Axis deadzone to 15%

and played some Drone Simulations.

Just WOW!!!
SC-Maik
 
Posts: 142
Joined: Tue Mar 03, 2015 3:20 pm

PreviousNext

Return to Discussion

Who is online

Users browsing this forum: No registered users and 0 guests

cron