Forgot your password?
No account? Register one!
March 19, 2012
Product SEN-10537 |
i didn’t see enough noise to make this ‘unusable’ but i did see some strange jumps every once in a while. for example, for one sample, x would increase a lot while z would simultaneously decrease a lot. suspicious…
taking into account what others have already mentioned, i made the following change to the firmware (sorry for pseudo code) and i seem to have eliminated those random jumps.
do the normal ADC_vect
channelChanged = true;
store ADCL and ADCH in a temporary variable
channelChanged = false;
for what it’s worth, here is how i programmed this module using winAVR.
in the source code directory on github, edit the Makefile. I was programming via the built-in serial port, so the options of interest are under Programming Options (avrdude serial bootloader) [line 336] You need to change SERIAL_AVRDUDE and SERIAL_AVRDUDE_CONFIG to match your arduino install directory. no spaces allowed in the path!. You also need to change SERIAL_AVRDUDE_PORT to match the port you are using (it was COM1 for me). Finally, change SERIAL_AVRDUDE_PROGRAMMER from stk500v1 to arduino.
open a command line and navigate to the accelerometer dongle source directory.
No public wish lists :(