My Reef-Pi build thread

OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Got my connectors today. Now just need to find a panel mount BNC for the pH probe...
20190212_211520.jpeg
 
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
@theatrus When using the 1-wire interface for the temp probes, they should show up automatically in the temperature section, correct? How can I troubleshoot why they aren't? Do I need to do anything else to enable them (add as a jack or input or something)?

Edit - i'm only seeing about 1.4 V across VCC on my connector. I'll upload a connection pic in a minute...
 
Last edited:
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
1550707284872.jpg

Both sensors are connected to the VCC, gnd and data from the 1 wire input. Ignore the jumpers.

Basically, data for both sensors are on on row 26, ground is 27, vcc is 28.
 
Last edited:
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Nevermind....3.3 V is there. Tight confines for the multimeter leads...

Wait, that's when no probes are connected. With 1 connected, I see 1.4ish.

Frack, series vs parallel. Grr...
 
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Red VCC
Yellow data
Black gnd

Based on this from the build guide I think it's right:

Assuming the tip of the male audio jack is upward, the longest terminal of the jack represents GND, left terminal represents +Ve and the right terminal represents data.

Did you see my followup re: series v parallel?

I attached a photo of the physical wiring of the 2 sensors to the protoboard as well, above.

20190206_192154.jpeg
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,955
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
Red VCC
Yellow data
Black gnd

Based on this from the build guide I think it's right:

Assuming the tip of the male audio jack is upward, the longest terminal of the jack represents GND, left terminal represents +Ve and the right terminal represents data.

Did you see my followup re: series v parallel?

I attached a photo of the physical wiring of the 2 sensors to the protoboard as well, above.

20190206_192154.jpeg

Missed the follow-up. The pinout looks correct though.
 
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Missed the follow-up. The pinout looks correct though.

@theatrus I rewired so that they aren't in series. I now see 3.3v when probing each VCC/gnd.

But the sensors still aren't showing up in ReefPi. I've double checked the wiring on the sensor side. Still no joy...

Should both sensors be connected to the same data line going to the TRS connector? I have both data lines and the TRS data line in the same 'row' on the protoboard.
 
Last edited:

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,955
Reaction score
3,355
Location
Sacramento, CA area
Rating - 0%
0   0   0
@theatrus I rewired so that they aren't in series. I now see 3.3v when probing each VCC/gnd.

But the sensors still aren't showing up in ReefPi. I've double checked the wiring on the sensor side. Still no joy...

Should both sensors be connected to the same data line going to the TRS connector? I have both data lines and the TRS data line in the same 'row' on the protoboard.

Yes, they share the same data line. Does using one sensor alone work? Can you confirm that you have enabled 1-wire in the /boot/config.txt file (using the pico board example has the 1wire support turned on)?
 
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Yes, they share the same data line. Does using one sensor alone work? Can you confirm that you have enabled 1-wire in the /boot/config.txt file (using the pico board example has the 1wire support turned on)?

No joy on 1 or 2 sensors. I do see this in dmesg:

[ 3.691605] w1-gpio onewire@0: gpio pin 4, external pullup pin -1, parasitic power 0
[ 3.691649] w1_add_master_device: set_pullup requires write_byte or touch_bit, disabling


Something or nothing?

Doing ls /sys/bus/w1/devices/ only lists
w1_bus_master1
 
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Dunno if this helps:

Code:
pi@reefpi:~ $ gpio readall
 +-----+-----+---------+------+---+---Pi 3+--+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 | ALT0 | 1 |  3 || 4  |   |      | 5v      |     |     |
 |   3 |   9 |   SCL.1 | ALT0 | 1 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 0 | IN   | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 1 | IN   | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | ALT5 | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 0 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 0 | IN   | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 |   IN | 0 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 | ALT0 | 0 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+---Pi 3+--+---+------+---------+-----+-----+

Those pin names don't seem to match what's in the Pico board schematic. Don't know if that matters...

Screenshot from 2019-02-22 19-09-37.png
 
Last edited:
OP
OP
dmolavi

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
644
Location
United States
Rating - 0%
0   0   0
Did an rpi-update and now my dmesg shows:
[ 2.715384] Driver for 1-wire Dallas network protocol.
[ 2.722306] gpio-4 (onewire@0): enforced open drain please flag it properly in DT/ACPI DSDT/board file

Still nothing in /sys/bus/w1/devices/
 

Rock solid aquascape: Does the weight of the rocks in your aquascape matter?

  • The weight of the rocks is a key factor.

    Votes: 12 9.0%
  • The weight of the rocks is one of many factors.

    Votes: 46 34.3%
  • The weight of the rocks is a minor factor.

    Votes: 43 32.1%
  • The weight of the rocks is not a factor.

    Votes: 31 23.1%
  • Other.

    Votes: 2 1.5%
Back
Top