Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Greenhouse tutorial(No Light and humidity)
Greenhouse tutorial [message #1708450] Wed, 16 September 2015 15:35 Go to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
Dear fellow developers,

I followed the tutorial:
http://iot.eclipse.org/java/tutorial/

Instead of the
4 pin Female Jumper to Grove 4 pin Conversion Cable,

I have One Grove Connection wire.
dexterindustries as vendor

Is this the reason that i don't receive humidity and light data with the greenhouse tutorial.

Re: Greenhouse tutorial [message #1708502 is a reply to message #1708450] Thu, 17 September 2015 08:21 Go to previous messageGo to next message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 201
Registered: July 2009
Location: Toulouse, France
Senior Member

Hi,

I am not sure I understand what you mean by "One Grove Connection wire"  could you maybe post a picture?
Also, can you make sure you've followed the instructions at https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c to enable i2c (the tutorial had stale instructions, that I just updated).


Re: Greenhouse tutorial [message #1708894 is a reply to message #1708502] Tue, 22 September 2015 10:09 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
No Message Body
Re: Greenhouse tutorial [message #1708897 is a reply to message #1708894] Tue, 22 September 2015 10:15 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
Thank you for your reply Benjamin. I posted a Picture above. I will make sure that the instructions are followed and then try the greenhouse app again. I will update you with the result.
Re: Greenhouse tutorial [message #1709052 is a reply to message #1708897] Wed, 23 September 2015 14:48 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
Followed the instructions still same result Sad
Re: Greenhouse tutorial [message #1709184 is a reply to message #1709052] Thu, 24 September 2015 16:39 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

Can you please post the results of this command:

sudo i2cdetect -y 1


If you are using an older version of the Raspberry Pi, try this command:

sudo i2cdetect -y 0


Thanks,
--Dave
Re: Greenhouse tutorial [message #1709707 is a reply to message #1709184] Wed, 30 September 2015 13:46 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
pi@raspberrypi ~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Re: Greenhouse tutorial [message #1709729 is a reply to message #1709707] Wed, 30 September 2015 14:49 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

The Raspberry Pi does not detect anything attached to the I2C bus. Can you try attaching the sensor directly to the RPi headers, and not through the Grove Pi shield?

Thanks,
--Dave
Re: Greenhouse tutorial [message #1710000 is a reply to message #1709729] Fri, 02 October 2015 14:31 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
Hi Dave,
Thanks for helping me out. At the moment I don't have the necessary cable to attach the sensor directly to the RPi headers. Is there another way to let the raspberrypi receive the sensor data?
Re: Greenhouse tutorial [message #1710277 is a reply to message #1710000] Mon, 05 October 2015 16:30 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

I do not not much about the GrovePi shield, but it appears it communicates with the Raspberry Pi over I2C. It should enumerate on the bus as device 0x04. Since you are not getting anything, I would verify the shield itself is working. I found this tutorial [2] which should help verify that the shield is working.

[1] http://www.dexterindustries.com/GrovePi/engineering/software-architecture/
[2] http://www.dexterindustries.com/GrovePi/get-started-with-the-grovepi/setting-software/

Thanks,
--Dave
Re: Greenhouse tutorial [message #1710693 is a reply to message #1710277] Thu, 08 October 2015 12:50 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
Hi David,

I looked at the links you send me. without any sensors the raspberry pi detects the grovepi shield.

when I attached the sensors and turned on the raspberrypi i got same results with only ---.
To give you an idea of my current setup I attached a picture. You can clearly see that the cables are attached to i2c bus.
  • Attachment: command.jpg
    (Size: 119.80KB, Downloaded 188 times)
  • Attachment: IMG_5378.JPG
    (Size: 1.38MB, Downloaded 245 times)

[Updated on: Thu, 08 October 2015 12:51]

Report message to a moderator

Re: Greenhouse tutorial [message #1710694 is a reply to message #1710693] Thu, 08 October 2015 12:54 Go to previous messageGo to next message
sou mou is currently offline sou mouFriend
Messages: 8
Registered: September 2015
Junior Member
I also tested the sensors by executing python script they both work (using the grovepi guide). I attached sensors to Serial (architecture).

[Updated on: Thu, 08 October 2015 12:56]

Report message to a moderator

Re: Greenhouse tutorial [message #1710850 is a reply to message #1710694] Fri, 09 October 2015 17:29 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

The attachment command.jpg is not the same as before, it is showing 04 as expected. The issue is that the Grove Pi shield enumerates as an I2C device (0x04). The python scripts are somehow routing all communications through this single device. The greenhouse demo is expecting the sensors to be directly connected to the I2C bus and GPIO pins. In order for this to work, you will need to edit the greenhouse demo code to communicate in a fashion similar to the Python scripts.

Thanks,
--Dave
Previous Topic:$EDC reply mechanism is flawed?
Next Topic:How to add Modbus plugin.
Goto Forum:
  


Current Time: Fri Apr 19 21:04:31 GMT 2024

Powered by FUDForum. Page generated in 0.04064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top