Dear all, my name is Kumpee, from Thailand. I am trying to build a simple GPS-aided INS using Arduino MEGA 2560, one 3-axis ADXL335 (3.3V), two of ADXRS (5V) and one MLX90609 (5V).
However, I got unstabled values as shown in the image. The upper part were the data from ADXL335 while the bottom were from the gryoscopes. I put them on my desktop so their output should be flat.
I tried to add delay(10) or delayMicroseconds(...) after each of analogRead but I got the similar results.
Could you please help me? ...Also, sorry for my English.
I've removed the GPS receiver (SUP500F) from the board and those noises were disappeared. I don't know the reason. Anyway, I have to use the GPS receiver. So, how to prevent those noises if I have to connect the GPS receiver to the board again?
Try connecting the GPS with longer wires. If the problem comes back the GPS is probably creating noise on the power line. I'm not that familiar with noise reduction on power lines but I would guess that a combination of inductors and capacitors would filter out the noise.
The onboard 3.3V supply on the Arduino cannot provide much current, only 50mA I think - usually this is enough for a sensor, but its certainly insufficient for a GPS receiver and sensors together - this causes the voltage to dip as the GPS receiver does its work.