SparkFun Forums 

Where electronics enthusiasts find answers.

By sbonkosk
#200222
I'm starting to learn about I2C, and as I understand it there needs to be a master involved in the chain to provide the clock signal.

I wanted to know, can this bluetooth module be used as a master device?

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

My thought is to connect other sensors to it and transmit the data to a phone, but that would mean this would need to be a I2C master device, right?
By jremington
#200223
In this case the Bluetooth is a slave and I2C (instead of the UART) is used by a processor to send and receive Bluetooth transmissions.

You also need a processor to read a sensor, format and send the data to the Bluetooth module.
By sbonkosk
#200229
jremington wrote: Mon Sep 03, 2018 1:24 pm In this case the Bluetooth is a slave and I2C (instead of the UART) is used by a processor to send and receive Bluetooth transmissions.

You also need a processor to read a sensor, format and send the data to the Bluetooth module.
Got it, thank you! So it doesn't seem like there's any options for a bluetooth board like this that are a I2C master device, everything I see either doesn't support I2C or its a slave like this one. It would be great to find a board that didnt require a processor to function and instead can be used by itself with sensors, and have the phone basically act as the processor. I figure there has to be some, where could I find something like that?
By jremington
#200234
I figure there has to be some
Why? Processors are dirt cheap. Even a six pin PIC10F200 processor can do everything that is required to handle a typical dumb sensor, for $0.31.

So why should the sensor be smart? Furthermore, if your design requirements change, standard processors are reprogrammable in place, using mature, standard, freely available development software.

Perhaps you are looking in the wrong place. There are bluetooth modules with built in Arduino compatible processors, for example.
By n1ist
#200246
You can always use a SOC that has both a radio and Bluetooth (nRF52832, EFR32 or ESP32 comes to mind) but that will be much more work than a small micro that acts as an i2c master.
/mike