Dr. Michael Kroll's Mobile Computing Forum
http://forum.mkroll.mobi/

I2C sendsor connection
http://forum.mkroll.mobi/viewtopic.php?f=7&t=434
Page 1 of 1

Author:  Armin [ Mon Aug 20, 2012 10:04 am ]
Post subject:  I2C sendsor connection

Hello Folks,

I was connecting a Gyroscope and an Accelerometer via i2c to the BLE112 modul. I got all data from the Sensors i needed, but i didnt got them in the right speed. The clockfrequency is limited to 20kHz which limits my listeningfrequence to 10-12 Hz for 6 values with each 2 byte length plus the 3-4 calling bytes and the 3-4 answering bytes. This is far too less for a motion analyses. Because of that i changed my sensors to UART Sensors.

I was using the https://www.sparkfun.com/products/10121 for the i2c connection
and now i am using the http://www.shop.robotikhardware.de/shop ... cts_id=221 for UART.

If you have some questions to the i2c and UART connectoin please ask... Maybe i can help...

Armin

Author:  mkroll [ Mon Aug 20, 2012 11:34 am ]
Post subject:  Re: I2C sendsor connection

Hi Armin,
I was thinking of using the SPI to UART bridge in one of my projects, so use SPI instead of I2C or UART directly
I ordered this boards from spark fun:

https://www.sparkfun.com/products/9981

But I have not yet written a line of code to communicate with this board.


I will soon try to access the SHT15 and SHT21 as I mentioned in the forum post earlier.

Cheers,
Michael.

Author:  Armin [ Tue Aug 21, 2012 11:56 am ]
Post subject:  Re: I2C sendsor connection

Hello michael,

i was also thinking about this way of trying to connect my sensor this way. But in my case i think the CHR-6d sensor is much better. I can broadcast it and just wait for the data. With the memcpy function i collect the data in two buffers(double buffer mode) und write them to the GATT when the buffer is full. It seems very easy, but it was a lot of "try and error" work until i got to this point. Now i try to write my own BLEGUI application. I try with Visual studio my first steps in C#. Its cool work but it seems an endless reading in the documentations form bluegiga.

Bye

Armin

Author:  ChrisG [ Wed Nov 14, 2012 12:52 am ]
Post subject:  Re: I2C sendsor connection

Armin-

Is your I2C code available anywhere? I'm attempting to interface a BMP085 pressure sensor and don't want to recreate too many solved problems if I can help it.


Cheers-
Chris

Author:  ChrisG [ Thu Nov 15, 2012 5:52 pm ]
Post subject:  Re: I2C sendsor connection

For anyone else wondering, attached is the example from BlueGiga for the humidity sensor.

Chris

Attachments:
humidity.zip [93.72 KiB]
Downloaded 1238 times

Author:  SJoshi [ Tue Jan 08, 2013 12:22 am ]
Post subject:  Re: I2C sendsor connection

Hey all,

I've already posted something like this in the comments here:http://www.mkroll.mobi/?p=261, but I thought I should also put it here to formalize everything.

I’ve made a post about using the BLE112′s I2C functionality here: http://sureshjoshi.com/development/ble1 ... o-use-i2c/

In addition, I've spoken with some of the BlueGiga people, and apparently the BLE113 should be coming out in Q1 and it will support hardware I2C.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/