Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Had a very good weekend learning and would like to share information for any newbies like me picking things up. First up I've bought the book and would highly recommend it for newbies, I hope my future questions are a little more 'professional', and I've updated this thread as a result of reading the book! (1) The TMP102 temperature sensor is very voltage dependent I found it works best from pin 40 of the mbed and needs a stable supply voltage. As soon as my portable 4xAA rechargeable batteries went on discharge the sensors stopped working. I guess my rover project needs a good 6v sealed lead acid battery! At the moment I'm using a mains power supply set at 5.8v dc. (2) I now have all three sensors, distance, temperature and direction on the same I2C bus, again the book helped mainly because of the voltage supply requirements between the SRF08 (5.8v) and the other devices (3.3v from pin 40). (3) The EM-406 GPS indoors just needs time to locate satellites but outside I've found it rock solid after about 30secs. Use %f to display the full data.(Just need to work out how to translate the raw information) (4) Next up or me is the ITG-3200 Gyro board and ADXL345 Accelerometer with a lot of help from Aaron Berks page (and the book!) before I assemble things and use my Magnevation board. I'm particularly interested in using the PID algorithms for motion accuracy and stability. Here's some of my test code so far, hope it helps other newbies.