Grove temperature sensor on Beaglebone Black

57 views
Skip to first unread message

Siddharth Amaravadi

unread,
Sep 14, 2016, 6:45:30 AM9/14/16
to BeagleBoard
Hello,

I've connected a Grove temperature sensor to my BBB. When I try to detect it using i2cdetect, I don't see my sensor connected. Can you please help, following are some details

I2C Connection Details:
SIG -> P9_19
NC  -> P9_20

root@beaglebone:/# uname -a
Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Li                                                     nux
root@beaglebone:/# clear
root@beaglebone:/# i2cdetect -l
i2c-0   i2c             OMAP I2C adapter                        I2C adapter
i2c-1   i2c             OMAP I2C adapter                        I2C adapter
root@beaglebone:/# i2cdetect -r 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: UU -- -- -- -- -- -- --
root@beaglebone:/# i2cdetect -r 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Please let me know if you need any further details

Jason Kridner

unread,
Sep 14, 2016, 8:25:36 AM9/14/16
to beagl...@googlegroups.com


On Sep 14, 2016, at 12:22 AM, Siddharth Amaravadi <siddharth...@gmail.com> wrote:

Hello,

I've connected a Grove temperature sensor to my BBB. When I try to detect it using i2cdetect, I don't see my sensor connected. Can you please help, following are some details

I2C Connection Details:
SIG -> P9_19
NC  -> P9_20

P9_19 should be connected to SCL and P9_20 should be connected to SDA. 

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/ebb07353-c6f5-4aea-85d1-e425606e9119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Siddharth Amaravadi

unread,
Sep 14, 2016, 5:13:57 PM9/14/16
to BeagleBoard

Thank you for the response, but the pins are named as SIG and NC on the board. These are the pins that I connected to the P9_19 and P9_20 respectively
SIG -> P9_19
NC  -> P9_20
The sensor related information can be found at http://wiki.seeedstudio.com/wiki/Grove_-_Temperature_Sensor_V1.2 

Robert Nelson

unread,
Sep 14, 2016, 5:26:46 PM9/14/16
to Beagle Board, siddharth...@gmail.com
On Wed, Sep 14, 2016 at 3:41 PM, Siddharth Amaravadi <siddharth...@gmail.com> wrote:

Thank you for the response, but the pins are named as SIG and NC on the board. These are the pins that I connected to the P9_19 and P9_20 respectively
SIG -> P9_19
NC  -> P9_20
The sensor related information can be found at http://wiki.seeedstudio.com/wiki/Grove_-_Temperature_Sensor_V1.2 

That senor out put's analog data... It's not i2c, spi, or usart...

and don't even think about wiring it to the adc on the bbg, it's got too much voltage 0-5...

Regards,

--
Robert Nelson
https://rcn-ee.com/

Robert Nelson

unread,
Sep 14, 2016, 5:40:48 PM9/14/16
to Siddharth Amaravadi, Beagle Board


On Wed, Sep 14, 2016 at 4:34 PM, Siddharth Amaravadi <siddharth...@gmail.com> wrote:
Robert, thank you once again, just a small correction I'm using a Beaglebone Black. When I tried referring to the officialpage of seeed studio I found this

So i connected the Temperature Sensor to the I2C bus.

Please correct me if I'm wrong and let me know any other inputs which can solve my problem.

Yeah i saw that picture too, that's so mis-leading..

That "pin" on that board, must have an adc-pinmux option.. or it's the wrong stock picture..

Regards,

Robert Nelson

unread,
Sep 14, 2016, 5:43:18 PM9/14/16
to Siddharth Amaravadi, Beagle Board
> Yeah i saw that picture too, that's so mis-leading..
>
> That "pin" on that board, must have an adc-pinmux option.. or it's the wrong
> stock picture..

in all my demo's i usually use this temperature sensor:

https://www.seeedstudio.com/Grove---Temperature%26Humidity-Sensor-%28High-Accuracy-%26-Mini%29-p-1921.html

Then it's just:

echo si7005 0x40 > /sys/bus/i2c/devices/i2c-1/new_device

Robert Nelson

unread,
Sep 14, 2016, 7:55:19 PM9/14/16
to Beagle Board, Siddharth Amaravadi
On Wed, Sep 14, 2016 at 5:50 PM, Siddharth Amaravadi
<siddharth...@gmail.com> wrote:
> Oh I was totally misled by it. So, do you advise me to connect the SIG and
> NC pins to the analog pins?
>
> If yes can you provide me some guide as in how to go with that.

You'll need a voltage divider..

As the adc on the bone can only handle 1.8V

Siddharth Amaravadi

unread,
Sep 14, 2016, 7:56:37 PM9/14/16
to Jason Kridner, Beagle Board
Can I use the setup mentioned in this link https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/adc to connecct the temperature sensor to ADC of my BBB?

Is there any other setup that you'd suggest?

Thanks
Siddharth

On Thu, Sep 15, 2016 at 4:33 AM, Jason Kridner <jkri...@gmail.com> wrote:
Unless you use a voltage divider. 


Regards,

--
Robert Nelson
https://rcn-ee.com/

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYijDoSwkoyiB5UW%2Bbx2xsiHUtqv-tAGf%3DYQA8cZdL4N7w%40mail.gmail.com.

Siddharth Amaravadi

unread,
Sep 14, 2016, 7:56:52 PM9/14/16
to Robert Nelson, Beagle Board
Robert, thank you once again, just a small correction I'm using a Beaglebone Black. When I tried referring to the officialpage of seeed studio I found this

So i connected the Temperature Sensor to the I2C bus.

Please correct me if I'm wrong and let me know any other inputs which can solve my problem.

Thanks
Siddharth

Jason Kridner

unread,
Sep 14, 2016, 7:56:52 PM9/14/16
to beagl...@googlegroups.com, siddharth...@gmail.com


On Sep 14, 2016, at 5:24 PM, Robert Nelson <robert...@gmail.com> wrote:

Unless you use a voltage divider. 


Regards,

--
Robert Nelson
https://rcn-ee.com/

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Stephane Charette

unread,
Sep 14, 2016, 8:08:30 PM9/14/16
to BeagleBoard
I have done some work with that sensor on a BBG:  https://www.ccoderun.ca/sg++/api/classSG_1_1TemperatureSensor.html#details


The problem is the numbers I was retrieving didn't make sense, and I haven't gone back to it since.  Shortly after I moved on, I discovered that all the reference information for that sensor assumes 5v, and only 3.3v is available through the ADC.  But my memory is fuzzy, and I'm a newbie at this stuff, so double check.

Stéphane

Dennis Lee Bieber

unread,
Sep 15, 2016, 7:06:36 AM9/15/16
to beagl...@googlegroups.com
On Thu, 15 Sep 2016 03:04:14 +0530, Siddharth Amaravadi
<siddharth...@gmail.com> declaimed the
following:

>Robert, thank you once again, just a small correction I'm using a
>Beaglebone Black. When I tried referring to the officialpage of seeed
>studio I found this
>http://wiki.seeedstudio.com/images/thumb/8/8e/Grove_Temperature_Sensor_Hw_connect.jpg/600px-Grove_Temperature_Sensor_Hw_connect.jpg
>
>So i connected the Temperature Sensor to the I2C bus.
>
>Please correct me if I'm wrong and let me know any other inputs which can
>solve my problem.
>
Based on the image, that red board is an Arduino compatible card. As I
recall, the Arduino multiplexes some lines.

https://camo.githubusercontent.com/0174ab1436903eb06dfea280a83c389460637054/68747470733a2f2f7261776769746875622e636f6d2f426f756e692f41726475696e6f2d50696e6f75742f6d61737465722f41726475696e6f253230556e6f253230523325323050696e6f75742e706e67

Note that SDA/SCL are on the same pins as Analog (ADC) A4 and A5. The Grove
image merely identifies which connector is available for I2C /IF/ you need
I2C, but otherwise is available as ADC.

--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Siddharth Amaravadi

unread,
Sep 15, 2016, 7:26:07 AM9/15/16
to Beagle Board, Robert Nelson, Jason Kridner
Thank You guys for all the help. I resolved my issue.

Thank You Jason for suggesting me the voltage divider.

Robert, thank you so very much for every thing. You helped me figure out the issue that it wasn't I2C and it can be read only through ADC and then the voltage divider.



--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/7XuXGJjPftQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b279f8b1-6997-4f3f-b3e1-06e5cfd4e4f0%40googlegroups.com.

Siddharth Amaravadi

unread,
Sep 15, 2016, 1:54:15 PM9/15/16
to Beagle Board
Thank you for the information Dennis. Along with the image the program that he wrote to read the data from the sensor was using I2C, but the sensor wasn't compatible with I2C and hence I got confused it.

THank you for the info about the arduino.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/7XuXGJjPftQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.

Jason Kridner

unread,
Sep 20, 2016, 3:37:43 PM9/20/16
to Beagle Board
There is an I2C Grove ADC module. That's generally how they expect you to use the analog modules with SeeedStudio BeagleBone Green.

To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages