soligen2010 / Adafruit_ADS1X15

Driver for TI's ADS1x15: 12 and 16 bit Differential or Single-Ended ADC with PGA and Comparator
Other
61 stars 30 forks source link

no conversion #7

Closed chseiler closed 7 years ago

chseiler commented 7 years ago

i am having troubles using the adc1115 with your library. no matter what i do, i always get a reading of -1 for all channels. can you help me?

soligen2010 commented 7 years ago

Please try the single ended example and see if that works OK, and post the details of what you are doing.

soligen2010 commented 7 years ago

Also please be sure to read all of adafruit's instructuions at https://learn.adafruit.com/adafruit-4-channel-adc-breakouts Make sure your wiring is correct. Be sure to tie the ADDR pin to ground to set the I2C address

chseiler commented 7 years ago

Thanks for your fast replies:

The problem was, that my I2C port on the arduino was broken and I realized it just after I wrote the message. Your library works like a charm on a new arduino due.

All the best Christian

Von: Dennis [mailto:notifications@github.com] Gesendet: Dienstag, 7. November 2017 15:46 An: soligen2010/Adafruit_ADS1X15 Adafruit_ADS1X15@noreply.github.com Cc: Seiler Christian (Helbling Technik) Christian.Seiler@helbling.ch; Author author@noreply.github.com Betreff: Re: [soligen2010/Adafruit_ADS1X15] no conversion (#7)

Also please be sure to read all of adafruit's instructuions at https://learn.adafruit.com/adafruit-4-channel-adc-breakoutshttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.adafruit.com%2Fadafruit-4-channel-adc-breakouts&data=02%7C01%7Cchristian.seiler%40helbling.ch%7C6883211ea41041fe46a508d525ee46c4%7Cbcbab93b0f0d4747b4a4bc57e6753bb4%7C0%7C0%7C636456627677498523&sdata=tdAkUfPwi3qAheppA5fpcvPyRQCq6DZiu7FR1gQOT2w%3D&reserved=0 Make sure your wiring is correct. Be sure to tie the ADDR pin to ground to set the I2C address

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsoligen2010%2FAdafruit_ADS1X15%2Fissues%2F7%23issuecomment-342504124&data=02%7C01%7Cchristian.seiler%40helbling.ch%7C6883211ea41041fe46a508d525ee46c4%7Cbcbab93b0f0d4747b4a4bc57e6753bb4%7C0%7C0%7C636456627677498523&sdata=ZRVQ41vZAhxxeaHH6WynbZqBNmBs8ieXPguLrPSZhBE%3D&reserved=0, or mute the threadhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAf4EJfJ-s_OY1YCRPrnHYvEXF0bTbb4Rks5s0G0rgaJpZM4QUj5e&data=02%7C01%7Cchristian.seiler%40helbling.ch%7C6883211ea41041fe46a508d525ee46c4%7Cbcbab93b0f0d4747b4a4bc57e6753bb4%7C0%7C0%7C636456627677498523&sdata=hSjoV20Ol3dHCWK6S6EbT5jmySUJ9eP06Us%2B5CoMhnY%3D&reserved=0.

soligen2010 commented 7 years ago

Great, glad you have it resolved.