Part Number: MSP430FR5989
Hello everybody!
I would like to ask for some help regarding the ESI module in msp430fr5989.
When I test my code, I use a metal screw as the "rotating disk", mainly so Set_DAC() function can complete. Then I can imitate the rotation with this screw.
However, when I connect my device to the water meter, it doesnt detect its rotation. I have no idea how to solve this problem.
The things I tried:
- I increased the SEPARATION_FACTOR to 10 in Set_DAC() funtion
- After determining the noise level, I tried to increase it
- I tried to move the coils closer to the disc (less than 3-4 mm)
I also noticed that, if the noiselevel is less than 5, Set_DAC() completes without the rotating disc.
I think(only speculation) that the rotating disc is made from aluminum or tin.
I have read section 4.6 in SLAA639.
I am attaching some pictures and my code.
Any help is appreciated.

