Hi everyone.
I’m trying to build a game controller using an roving networks RN-42 bluetooth module, an atmel atmega328p microcontroller and a LPR5150 gyroscope.
The problem i have found it’s that when the controller board (dual layer pcb) it’s steady on a table, the computer recibes constant data from the controller, like if it was being moved. The data shows very little movement (very little variation) on hyperterminal. I’m using the 4x output of the gyro. So this are the tests y carry on once i found myslef with this problem:
First, i tried replacing the gyro just in case. Problem persisted.
Later, I tried giving a dedicated supply source to the RN-42, just in case that the current consumption when transmitting could be the problem. Nothing changed.
I tried getting the gyro away from the BT module via cable extension (about 10 inches of cable were added). The problem persisted.
Then i got the gyro back to place in board, and get the rn-42 away via cable extension (also 10 inches aprox.). Here, altough the problem persisted, it changed its period of time…in another words, it took more time then before to the noise to reappear. (Let’s say.it appears every 2x the time that it appears before). range value of the noise (variation) didn’t changed at all, only time.
So i was thinking that maybe this noise or interference wold be generated between the BT module and the atmega328. I decided then to lower the rn-42 transmitting power via commands. I lower it gradually until i reach the minimum power (-20dbM), but the noise was still there, with no difference in range nor period.
so i decided to ask if anyone of you have seen this kind of situation before, and if knows how to solve this issue.
Getting the BT-module far away from the microcontroller it’s not a solution for me, since the entire board it’s 4 inches lenght, and it seemed after my tests that even 10 inches of distance it’s to little (because the problem was still there, altough “better”).
The reaction that this “noise” generates on my final project it’s that the computer detect continuous movement, and taking sensibility off causes that soft little movements don’t get detected by the computer (loss of accuracy or precision).
Thanks in regards.