2 tests and 2 failures - what am I doing wrong?
June 3, 2009
Firstly - I am fairly new to the Arduino but have experience in C.
I have successfully combined the Arduino Mega with LED's, Thermistors, LDR's ECT and started to look at some bigger things. I first looked at working with servo's, I used a cheap servo that I had lying around that originally came out of a RC toy car (HPI Minizilla). I wired everything up and used the 'sweep' example from the Arduino website to try it out but it wouldn't work - the servo did power up but didn't move. I attached an LED to pin 13 and programmed a 'blink' at the end of every loop to check it was cycling and it was, but I found no reason as to why the servo didn't move.
My second task was to use a Sparkfun LIS3LV02DQ Triple Axis Accelerometer ( http://www.coolcomponents.co.uk/catalog/product_info.php?cPath=36&products_id=135 ) with my Mega so I used the suggested method found here: http://www.nearfuturelaboratory.com/2006/09/22/arduino-and-the-lis3lv02dq-triple-axis-accelerometer/
I soldered and wired up everything perfectly but again - nothing. So this time I used the Serial.println at various stages in the code to detect what was happening. I found that everything works until the Arduino starts to talk to the sensor - at this point the code stops running altogether???
My question is this - have I done something wrong as the examples are written for Duemilanove and not the Mega? If so - what do I need to change?
Or - Am I doing something completley wrong?
Please put me out my misery!
Thanks in advance,