I have a hard time using ADCs (ADS1115) with linear hall sensors (49E, 3503) as they output voltage from 0.8v to 4.2v depending on magnetic flux.
Furthermore, useful linear area of this spectrum is maybe from 1.5v to 3.5v
Is there something i'm missing? Can i "remap" voltage before reading it in ADC to have full resolution range in-between 1.5-3.5v? It should never be negative and never above VCC.
I'm thinking about using op-amps, but i'm too unfamiliar with those to come up with solution.
Another problem i'm having is hall sensor output is too noisy - o-scope measures 40mv p-p with all power filtering and shortest leads - this is way above ADS1115's resolution
Sorry, i didn't realize the schematic is needed. Right now hall sensor is sitting on a breadboard with VCC,GND connected and i'm reading voltage from output pin with oscilloscope.
Seriously, put it ALL inside a steel container to eliminate stray magnetic fields and see if the "noise" goes away. Seems like you have, at least, a floating lead, somewhere.
My flat doesn't have grounding, this causes some noise issues overall So, everything is floating around mains voltage.
But this is a battle i can't win, but maybe there is a known way to filter and adjust output of hall sensor
All right, antispam downed my post for a while, i stumbled upon this blog post , which explained op-amp usage in similar situation
I fired up Falstad's circuit simulator and it is almost what i need - except output voltage could potentionally go below zero or above 5V - is there a way to clamp signal? Maybe mighty op-amps could do that too?
Regarding my original post and random schematics - i don't really think this is relevant talk, when i try to figure out something fundamental and independant of particular usage case. Maybe i'm in a wrong category?
Anyway, i'll try op-amps on breadboard and get back to this topic again
That means even more RF is floating around inducing signals into your wiring. Try adding shielding and bypass capacitors to the power connection of every device. Bypass to the devices' local ground connection.
Look at the noise level from main voltage line (5V from nano board). You can change voltage regulator to low noise, or make low noise supply.
I am using low noise regulator to increase noise, and temperature stability.