A precise linear magnetic position sensor using LInterp

Virtualise a non-linear sensor into a single linear function using the LInterp PROGMEM array generator

Aug 19, 2022

3776 views

0 respects

Components and supplies

1

Neodymium magnet, 6mm diameter x 2mm

1

Hall-effect magnetic sensor UGN3503

1

Arduino UNO

Tools and machines

1

Mastech MS8217 Autorange Digital Multimeter

Project description

Code

LInterp.h

h

Arduino C-compiler pre-processor script to generate interpolation / translation / lookup arrays in PROGMEM

LInMagSens.ino

arduino

Demo Arduino script for LInMagSens.h - A linear virtualising function for a non-linear magnetic position sensor

LInMagSens.ino

arduino

Demo Arduino script for LInMagSens.h - A linear virtualising function for a non-linear magnetic position sensor

LInterp.h

h

Arduino C-compiler pre-processor script to generate interpolation / translation / lookup arrays in PROGMEM

LInMagSens.h

h

LInterp function header to virtualise a non-linear magnetic position sensor as a linear function call

Downloadable files

UGN3503 Hall-effect magnetic flux sensor

A magnetic flux sensor connected to an Arduino board analog input

UGN3503 Hall-effect magnetic flux sensor

UGN3503 Hall-effect magnetic flux sensor

A magnetic flux sensor connected to an Arduino board analog input

UGN3503 Hall-effect magnetic flux sensor

Comments

Only logged in users can leave comments

dxb_

0 Followers

0 Projects

Table of contents

Intro

0

0