Okay, I'm trying to solve this and have been both reading post after post and wiki entry after entry and I'm nowhere still.
Here's the thing. The Stalker (most versions) have two Grove connectors: 1 x I2C and 1 on D7/8. This is great because it means you really shouldn't need a Grove shield if your project only has one or two Grove devices, like mine does.
On the I2C I have a Barometer. It was plug-and-play. The data came in, everything was perfect. Until I went to attach the DHT11 on the D7/8 Grove connector... which failed, or at least returns no useful data.
It comes down to the PIN
The DHT test and lib uses A) which is the address of the A0 connector on a Grove shield, not the analog pin A0. The DHT11 is digital, but like all Arduino bases you can access an analog pin as a digital one by using its digital pin #. For which there seems to be zero documentation and it's down to trial and error.
So, what I'm looking for is an answer as to how one uses the two built in Grove connectors on a Stalker without issues. I've got one (the barometer) working and I'd like be able to get dew-point / humidity from the DHT11 at the same time, optimally with no additional shields.
Ideas? Anyone?
The code I'm using is bog standard stuff. No funny business here.
Statistics : Posted by byronjbignell • on Sat Jan 03, 2015 5:33 pm • Replies 8 • Views 372
Here's the thing. The Stalker (most versions) have two Grove connectors: 1 x I2C and 1 on D7/8. This is great because it means you really shouldn't need a Grove shield if your project only has one or two Grove devices, like mine does.
On the I2C I have a Barometer. It was plug-and-play. The data came in, everything was perfect. Until I went to attach the DHT11 on the D7/8 Grove connector... which failed, or at least returns no useful data.
It comes down to the PIN
The DHT test and lib uses A) which is the address of the A0 connector on a Grove shield, not the analog pin A0. The DHT11 is digital, but like all Arduino bases you can access an analog pin as a digital one by using its digital pin #. For which there seems to be zero documentation and it's down to trial and error.
So, what I'm looking for is an answer as to how one uses the two built in Grove connectors on a Stalker without issues. I've got one (the barometer) working and I'd like be able to get dew-point / humidity from the DHT11 at the same time, optimally with no additional shields.
Ideas? Anyone?
The code I'm using is bog standard stuff. No funny business here.
Statistics : Posted by byronjbignell • on Sat Jan 03, 2015 5:33 pm • Replies 8 • Views 372