olukelo / KMA210

KMA210 sensor programming tool
2 stars 2 forks source link

KMA210 with arduino #2

Open Majestici opened 4 years ago

Majestici commented 4 years ago

I'd like to ask @olukelo if I would be able to use this code to perform some basic measurements with the KMA210 using an Arduino.

I'm currently working on an experiment using a KMA210.

The experiment would be set up as such: Stepper motor with a magnet attached to its shaft. 3cm above it, the sensor is mounted in a stationary bracket. I'm trying to find code to be able to use the KMA210 to read the angle but am unable to find it.

Even more, I can't seem to find an example case of the KMA210 being successfully used anywhere on the internet, except for maybe this rep?

Hopefully, this question reaches you well - I am a total noob when it comes to programming. Any tips or info would be extremely welcome!

olukelo commented 4 years ago

To read KMA210 simply connect it to analog input.It work as simple resistor and produce 0.05 - 0.95 of input voltage range by default. But I would recommend you to switch to ams AS5048/AS5047 sensor with eiger SPI or I2C interface. It gives you 16380 steps per 360 degree of rotationand easy to use.

Majestici commented 4 years ago

I've started researching the AMS AS5048/AS5047 sensors, they look very promising, thank you!

Would you know, or subscribe to the idea, that the sensor used in this configuration (image) is capable of monitoring the angle between the torso and arm? Would the air gap between the magnet and sensor (say 3-10 cm) be too large for it to detect anything or would only the accuracy be lowered significantly?

guthib question

FYI:

These are kind of the end-goals of my research and over the coming weeks I will be trying to find the answers to these questions myself, but I am very keen to hear your opinion! If you for example say this is impossible I might win a lot of time :)

Again giant thank you @olukelo, for suggesting the AS5048 over the KMA210 which could have been troublesome and is perhaps a bit dated.