michaelcheng1991 / Golf-Training-Aid-

Using sensors to create a golfer-friendly teaching device
0 stars 0 forks source link

Solutions #12

Open michaelcheng1991 opened 9 years ago

michaelcheng1991 commented 9 years ago

Log Data using Array!

Edit***** use EEPROM such as the 24LC256 at chapter 21 of tronixstuff.com tutorial also use a real-time clock IC (such as the DS 1307)to track the duration

Edit 2 ***** why would you use the internal EEPROM? for situations where data that is unique to a situation needs a more permanent home. for example, sotring the unique serial number and manufacturing date of a commercial Arduino-based project - a function of the sketch could display the serial number of an LCD, or the data could be read by uploading a 'service sketch'. or you may need to count certain events and not allow the user to reset them - such as an odometer or operation cycle-counter

michaelcheng1991 commented 9 years ago

Using LSM9DS0 to log data including acc/angular speed seperately

https://github.com/sparkfun/SparkFun_LSM9DS0_Arduino_Library/blob/V_1.0.1/examples/SparkFun_LSM9DS0_Simple/SparkFun_LSM9DS0_Simple.ino

This Arduino sketch is a demo of the simple side of the SFE_LSM9DS0 library. It'll demo the following:

michaelcheng1991 commented 9 years ago

what to do when all I2C has the same register address http://forum.arduino.cc/index.php?topic=76204.0

The BMP085 looks to be a single address device. http://www.bosch-sensortec.com/content/language1/downloads/BST-BMP085-DS000-05.pdf

You need a part/board like this http://www.dsscircuits.com/i2c-multiplexer.html Each PCA9544A can select between 4 parts, and the PCA9544As further can be assigned 1 of 8 addresses, allowing up to 32 BMP085s to be arrayed together.

Don't forget pullup resistors on the SCL/SDA lines. Data sheet says you also use XCLR to set one part silent while you talk to the other. So each PCA9544A can then talk to 8 parts, and you would only need three (for up to 24 BMP085s). Need 3 IO lines to select which PCA9544A, 2 IO lines to select which of 4, and 1 IO more for XCLR. And the SCL/SDA lines.

Are you going to have each one on a circuit card so you can spread them out and have a way to attach power, gnd, SCL, SDA, XLCR lines, decoupling cap, and pullup resistors?

michaelcheng1991 commented 9 years ago

so the IMU does not have I2C communication port https://trandi.wordpress.com/2011/01/03/razor-9dof-imu-i2c-to-arduino/

michaelcheng1991 commented 9 years ago

using 2 serial ports on Arduino MEGA (I am not sure if this is the right solution )

https://www.arduino.cc/en/Tutorial/TwoPortReceive

michaelcheng1991 commented 9 years ago

LOG DATA -- using SMD module http://forum.arduino.cc/index.php?topic=240981.0

michaelcheng1991 commented 9 years ago

About logging data by connecting 3 IMU -> teensy 3.1 -> uSD

https://forum.pjrc.com/threads/27170-Logging-data-of-three-LSM9DS0-Sensors-with-SDFat-h-crap-data

michaelcheng1991 commented 9 years ago

THIS WILL DO IT (MULTIPLE IMU TO ONE ARDUINO) hardwire SCL and MUX the SDA https://forum.pjrc.com/threads/27035-Teensy-3-1-with-CD74HC4067-I2C-usage