ondrej1024 / foxg20

Collection of tools for the ACME Systems FoxG20 board
GNU General Public License v2.0
6 stars 2 forks source link

hints to test the module #1

Open gandalfk7 opened 9 years ago

gandalfk7 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 https://github.com/ondrej1024/foxg20/issues/1#issuecomment-68278222.

ondrej1024 commented 9 years ago

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

ondrej1024 commented 9 years ago

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

gandalfk7 commented 9 years ago

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 https://github.com/ondrej1024/foxg20/issues/1#issuecomment-84331874.