DVC-Viking-Robotics / Robot-Senses

A collection of hardware interfaces specific to sensors
0 stars 0 forks source link

Need to create a encoder class from using magnets and at least 2 hall sensors #1

Open 2bndy5 opened 4 years ago

2bndy5 commented 4 years ago

We have the goods, now let's make something out of them. When you feed a hall sensor voltage, it only produces a current if there is a magnet close to the sensor. The closer the magnet, the better the current. Essentially, a hall sensor is a diode for magnetism. Common usages for hall sensors include detecting the speed (using 1 hall sensor) & direction (using 2 hall sensors) of motors. Thus, we should be able to create an encoder device for each motor in our differential (tank) drivetrain.