Go to advanced search

by meekamoo
Mon Nov 30, 2015 6:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

Re: Atlas pH + EC IC's via I2C

Whoa - never doubt the power of a full cold-restart! I unplugged the Pi before going to bed - switched on and now everything is working. I have both devices discovered in $ i2cdetect and they both respond to i2c commands. pi@raspberrypi ~/phi2c $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: --...
by meekamoo
Fri Nov 27, 2015 3:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

Re: Atlas pH + EC IC's via I2C

Does the same sensor do serial as well as I2C? In the blurb the I2C sensors were labelled SDA/SCL whereas the one on your breadboard seem to be labelled RX/TX (as for the serial sensors). Some breadboard power/ground rails are not continuous, they may be broken into 3 segments. Yes, it shares the s...
by meekamoo
Fri Nov 27, 2015 2:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

Re: Atlas pH + EC IC's via I2C

So I unplugged it all, and re-seated everything from scratch.

Still nudda :(

Image
http://i.imgur.com/3fJ0PJO.jpg

GND+PWR must be working because both devices are flashing LED's
SDA to both (labelled) TX pins
SCL to both (labelled) RX pins

Hmmm.
by meekamoo
Fri Nov 27, 2015 1:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

Re: Atlas pH + EC IC's via I2C

Yeah that seems to work alright:

Code: Select all

pi@raspberrypi ~ $ for m in r w 0 1 2 3 4 5; do echo $m; pigs m 3 $m mg 3;done
r
0
w
1
0
4
1
5
2
6
3
7
4
3
5
2
The pins seem to be in the correct mode now, yet i2cdetect is still giving nothing back.
by meekamoo
Fri Nov 27, 2015 1:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

Re: Atlas pH + EC IC's via I2C

If can't think of a reason for a mode change to fail. Either a pretty drastic hardware fail on that GPIO or some software is running in the background setting the GPIO as an input. You got it there! Found a cronjob running an old DHT temp sensor which was changing the pin mode. 50% Success! pi@rasp...
by meekamoo
Fri Nov 27, 2015 1:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

Re: Atlas pH + EC IC's via I2C

Sure. Yeah I'm rather stumped why modechanging isn't working either. pi@raspberrypi ~/bin $ pigs mg 3 0 First removed the sda/scl wires, then: pi@raspberrypi ~/bin $ ./gpiotest.sh This program checks the Pi's (user) gpios. The program reads and writes all the gpios. Make sure NOTHING is connected to...
by meekamoo
Fri Nov 27, 2015 12:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [solved] Atlas pH + EC IC's via I2C
Replies: 12
Views: 6250

[solved] Atlas pH + EC IC's via I2C

Having the weirdest problem that I just cannot seem to debug on my own. I'm trying to access the Atlas Scientific ph + electrical conductivity sensor IC's via I2C on a Pi2 B+ and am having no luck. https://www.atlas-scientific.com/product_pages/kits/ph-kit.html https://www.atlas-scientific.com/produ...

Go to advanced search