measurements with Hall Sensor SAR ADC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
HaHE_2860291
Level 1
Level 1
5 likes given First like received First like given

Hey dear specialists,

my project is defined as follow:

requirements:

1) Measure brushless rotor (north south pole´s gauss) and showing  +-value on LCD

2) would be fine that LCD can offset to zero at the beginning

3) platinum version --storage max values.....

technical details

Hall sensor ist feeded with 5V and deliver about 2,3V if there is no influens with magnetic field.

with 1600 gauss magnet there is a range of 0.5V to 4.1V.

the sensor give 1,3mVolt per gauss

what happen until now

Hall_PSOC_V4.PNG

set LCD to zero is working with potentiometer, but if value goes under zero LCD show a positive value 65535 of a 16 bit code.

My question so far:

1) is there a nice hardware solution to fulfill my requirements, hence im too stupid for this 

SAR decription on page 8 shows a lot of "single ended result formats", which I´m not able to match in my tons of versions on this project

2) software solution

- meaning-

read start value of Hall sensor -storage it in a register or variable then subtract it from the measurement-

very best regards and thanks in advance

Harry

sorry my electronics are 30 years ago and i never played with micro controller, but i HAVE  FUN with this small things, which are smarter than ME

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You can get both versions to work correctly:

The issue is the LCD_PrintNumber() API which only prints unsigned ints. You will nwwd to write the polarity first (+,space or -) when negative change the sign and then use LCD_PrintNumber() with the adjusted value.

Happy coding

Bob

PS: Where in Germany are you located? I live near Bremen.

View solution in original post

3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You can get both versions to work correctly:

The issue is the LCD_PrintNumber() API which only prints unsigned ints. You will nwwd to write the polarity first (+,space or -) when negative change the sign and then use LCD_PrintNumber() with the adjusted value.

Happy coding

Bob

PS: Where in Germany are you located? I live near Bremen.

thanks Bob I guess it but I wasnt sure because I am a big NOOB

i have to frustrate you, because I am from VIENNA  

is there a community in Germany?

SERVUS

Harry

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

No frustration at all. Wien is such a beautiful town, I love it!

Bob

0 Likes