Show Posts
Pages: [1]
1  Using Arduino / Storage / Re: SdFat beta with improved write on: June 30, 2013, 02:29:16 pm
This is awesome, it has reduced the write times in my aplication about 18%.
2  Products / Arduino Due / Re: i2cdevlib + MS561101BA + due on: April 23, 2013, 04:41:12 am
You can find the original libary here:
http://www.varesano.net/files/FreeIMU-20121122_1126.zip
It is not form me. I am not at home now, so I can not send you the changed one, but it is mainly replacing the int with int16_t.

Thomas
3  Products / Arduino Due / Re: I2C testing on Due on: April 07, 2013, 04:56:03 am
This thread should answer all your questions:
http://arduino.cc/forum/index.php?topic=132981.0
4  Products / Arduino Due / Re: i2cdevlib + MS561101BA + due on: March 29, 2013, 11:24:03 am
Ok, I still have no success with the i2cdevlib but i manged to use the MS5611 using Flavio Varesano freeimu libary.
After some minor changes the raw reading function of the libary works well on the due.

5  Products / Arduino Due / i2cdevlib + MS561101BA + due on: March 28, 2013, 01:06:59 pm
Hi I try to talk to an MS561101BA on the due.

The newest version of i2devlib works well on the due with HMC5883L MPU6050 and BMP085.
https://github.com/jrowberg/i2cdevlib

For the MS561101BA  I use the library made by Manuel J Guisado using i2devlib, which works just fine on the arduino uno.
https://github.com/mjguisado/i2cdevlib/tree/master/Arduino/MS561101BA

There is no example but this is an minimal one which works on the uno (sensor powered with 3.3V and pullups disabled):
Code:
#include "Wire.h"
#include "I2Cdev.h"
#include "MS561101BA.h"
MS561101BA baro(0x77); // address of the sensor on freeimu 0.4
float pressurem;
float temperaturem;

void setup() {
    Wire.begin();
    Serial.begin(57600);
    baro.initialize();
    Serial.println(baro.testConnection() ? "baro connection successful" : "baro connection failed");
    // this gives false positive value on the due I think due to the problems with wire ?
}

void loop() {
baro.setOverSampleRate(256);
baro.readValues(&pressurem, &temperaturem);
Serial.print(pressurem); Serial.print("\t");
Serial.print(temperaturem); Serial.println("\t");
}

I get no error message while uploading to the due, but it only prints 0 values for temperature and pressure.

Any idea is appreciated.
6  Products / Arduino Due / Re: adafruit gps logger shield - arduino due - SD data logging on: March 05, 2013, 02:21:01 pm
Have a look at this thread:
http://arduino.cc/forum/index.php?topic=135439.0

Since the SPI port is not at the same posiition on the due the shield might not work.

But you do not need the shield. The due has 3.3V operating voltage you could directly connect the SD card to the due spi port.
7  Products / Arduino Due / Re: I2C Repeated Start on: February 17, 2013, 12:57:23 pm
Can you please share your code for the MPU6050?
8  Products / Arduino Due / Re: SdFat for Due posted on: February 09, 2013, 08:33:10 am
Thanks for the libary and the pin maps.

I am a arduino noob and i managed to access the SD on the Due.
I use direct wires to a sd card socket and the following pin connections:
DUESDSPI
MOSICMDDI
MISODAT0DO
SCKCLKSCK
D10CD/DAT3CS
3.3VVDDVDD
GNDVSSVSS
GNDVSS2VSS2

I get this for a cheap 2GB san disk SD
Code:
Free RAM: 62747
Type is FAT16
File size 20MB
Buffer size 32768 bytes
Starting write test.  Please wait up to a minute
Write 3863.25 KB/sec
Maximum latency: 27974 usec, Minimum Latency: 7838 usec, Avg Latency: 8472 usec

Starting read test.  Please wait up to a minute
Read 4255.58 KB/sec
Maximum latency: 11905 usec, Minimum Latency: 7564 usec, Avg Latency: 7698 usec

and this for a 8GB Sandisk extreme Pro 95mb/s:
Code:
Free RAM: 62747
Type is FAT32
File size 20MB
Buffer size 32768 bytes
Starting write test.  Please wait up to a minute
Write 4241.14 KB/sec
Maximum latency: 13791 usec, Minimum Latency: 7635 usec, Avg Latency: 7717 usec

Starting read test.  Please wait up to a minute
Read 4424.19 KB/sec
Maximum latency: 7806 usec, Minimum Latency: 7384 usec, Avg Latency: 7405 usec
Pages: [1]