View unanswered posts | View active topics It is currently Tue Jun 27, 2017 5:46 pm



Reply to topic  [ 6 posts ] 
I2C sendsor connection 
Author Message

Joined: Fri Aug 03, 2012 11:39 am
Posts: 5
Location: Ulm, Germany
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


Mon Aug 20, 2012 10:04 am
Profile
Site Admin

Joined: Thu Aug 02, 2012 11:36 am
Posts: 166
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.


Mon Aug 20, 2012 11:34 am
Profile WWW

Joined: Fri Aug 03, 2012 11:39 am
Posts: 5
Location: Ulm, Germany
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


Tue Aug 21, 2012 11:56 am
Profile

Joined: Thu Oct 18, 2012 6:00 am
Posts: 8
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


Wed Nov 14, 2012 12:52 am
Profile

Joined: Thu Oct 18, 2012 6:00 am
Posts: 8
For anyone else wondering, attached is the example from BlueGiga for the humidity sensor.

Chris


Attachments:
humidity.zip [93.72 KiB]
Downloaded 1092 times
Thu Nov 15, 2012 5:52 pm
Profile

Joined: Wed Dec 19, 2012 11:50 pm
Posts: 1
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.


Tue Jan 08, 2013 12:22 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.