hello,
I have a mcu(MSP432e401y) thats interfacing with a rotary encoder(PEC16-4025F-N0024) the encoder is there to only scroll a selection bar depending on rotation direction,and use the momentary switch in the encoder to select on a tft display screen.Iam using the mcu's built in rotary encoder module to read its inputs,the module also has a programmable filter circuit which iam using.The encoder module has drivers that will get the rotation the encoder is spinning in my case a -1 is read when the encoder is rotated CCW and a +1 is read when the encoder is rotated CW.
The problem iam having is the reliability of reading a encoder value, i get a ghost trigger values which say i rotate the encoder CW one click i get +1,-1 per click it also does this when the encoder is rotated CCW expect the values are -1,+1.Iam not sure exactly were to start iam pretty new to interfacing mechanical devices to electronics.I dont know if it would be software related or my hardware circuit also note iam prototyping it on a mps launchpad,and breadboard.So far i have only tried debouncing the piece of code but with no success,i havent changed much on the circuit.Any input is appreciated it thanks
I have a mcu(MSP432e401y) thats interfacing with a rotary encoder(PEC16-4025F-N0024) the encoder is there to only scroll a selection bar depending on rotation direction,and use the momentary switch in the encoder to select on a tft display screen.Iam using the mcu's built in rotary encoder module to read its inputs,the module also has a programmable filter circuit which iam using.The encoder module has drivers that will get the rotation the encoder is spinning in my case a -1 is read when the encoder is rotated CCW and a +1 is read when the encoder is rotated CW.
The problem iam having is the reliability of reading a encoder value, i get a ghost trigger values which say i rotate the encoder CW one click i get +1,-1 per click it also does this when the encoder is rotated CCW expect the values are -1,+1.Iam not sure exactly were to start iam pretty new to interfacing mechanical devices to electronics.I dont know if it would be software related or my hardware circuit also note iam prototyping it on a mps launchpad,and breadboard.So far i have only tried debouncing the piece of code but with no success,i havent changed much on the circuit.Any input is appreciated it thanks