Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

hints to test the module #1

Open
gandalfk7 opened this issue Dec 27, 2014 · 5 comments
Open

hints to test the module #1

gandalfk7 opened this issue Dec 27, 2014 · 5 comments

Comments

@gandalfk7
Copy link

Hi, I followed the instructions but on my Arietta G25, where should I wire the sensors? I tried on one of the GPIOs but it doesn't seem to work, if I compile the example and then run it giving no GPIO at all:

# ./dhtsensor DHT22
Error reading sensor: TIMEOUT

and if I specify the GPIO the sensor is on the first time:

# ./dhtsensor DHT22 24
Open /sys/class/gpio/gpio24/direction: No such file or directory
Error during setup: OTHER

and if I specify it the second time:

# ./dhtsensor DHT22 24
Unable to export pin=24 (already in use?): Device or resource busy
Error during setup: OTHER

I am willing to make a tutorial "for dummies" on how to use the DHT11/22 with the Arietta and your library as soon as I get it to work.

thank you very much

@ondrej1024
Copy link
Owner

Currently the DHTlib has still some issues when running on the AriettaG25. There has been a discussionon on the Acme Systems mailing list and here is the conclusion so far:
https://groups.google.com/forum/#!msg/acmesystems/p39F6TBngjs/9MEyyWwN-a4J

At the moment you need to use the SPI method with the wiring reported in the post above. This is very reliable and the only drawback is that you cannot use SPI for something else at the same time.
I also need to update the documentation with the wiring schemes. I hope to be able to do that soon.

To use the DHT sensor on any GPIO pin with the GPIO method I need to find time to run some tests with an oscilloscope. There is something strange happening on the AriettaG25 which doesn't happen on the FoxG20 or the Raspberry Pi, where this is working fine.

Ondrej

@gandalfk7
Copy link
Author

thank you very much!

I'll try as soon as possible!

Matteo

On Mon, Dec 29, 2014 at 6:32 PM, Ondrej Wisniewski <notifications@github.com

wrote:

Currently the DHTlib has still some issues when running on the AriettaG25.
There has been a discussionon on the Acme Systems mailing list and here is
the conclusion so far:
https://groups.google.com/forum/#!msg/acmesystems/p39F6TBngjs/9MEyyWwN-a4J

At the moment you need to use the SPI method with the wiring reported in
the post above. This is very reliable and the only drawback is that you
cannot use SPI for something else at the same time.
I also need to update the documentation with the wiring schemes. I hope to
be able to do that soon.

To use the DHT sensor on any GPIO pin with the GPIO method I need to find
time to run some tests with an oscilloscope. There is something strange
happening on the AriettaG25 which doesn't happen on the FoxG20 or the
Raspberry Pi, where this is working fine.

Ondrej


Reply to this email directly or view it on GitHub
#1 (comment).

@ondrej1024
Copy link
Owner

Now I have updated the README with the wiring schemes and some more useful information.
Ondrej

@ondrej1024
Copy link
Owner

Ciao Matteo,
did you get this working on the AriettaG25?
Would be nice to get some feedback.
Ondrej

@gandalfk7
Copy link
Author

Hi,
sorry for not giving you any feedback, it was because I wasn't able to try
the solution yet!
I found out that I had no diodes so I ordered some, the shipping was quite
slow but they finally arrived,
I picked them up and now I don't remember where I put the bag with the
diodes.
So.. I haven't tried yet.

Sorry,
as soon as I am able to try I'll get back to you with the solution!

Matteo

On Sat, Mar 21, 2015 at 1:50 PM, Ondrej Wisniewski <notifications@github.com

wrote:

Ciao Matteo,
did you get this working on the AriettaG25?
Would be nice to get some feedback.
Ondrej


Reply to this email directly or view it on GitHub
#1 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants