My Reef-Pi build thread

Orphek OR3 reef aquarium LED bar
OP
OP
dmolavi

dmolavi

Well-Known Member
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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
 
www.dinkinsaquaticgardens.com
www.dinkinsaquaticgardens.com
OP
OP
dmolavi

dmolavi

Well-Known Member
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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:
AquaCave Logo Banner
Corals.com
OP
OP
dmolavi

dmolavi

Well-Known Member
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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
Review score
+0 /0 /-0
View Badges
Joined
Mar 26, 2016
Messages
1,693
Reaction score
3,034
Review score
+0 /0 /-0
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.

View attachment 985616

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

dmolavi

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

I need to rewire on the protoboard, don't I? Power from the TRS to the power rail, jumper to 2 separate 'rows', one for each sensor, right? Can the data lines all be on the same 'row'?
 
CLICK TO VIEW
OP
OP
dmolavi

dmolavi

Well-Known Member
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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
Review score
+0 /0 /-0
View Badges
Joined
Mar 26, 2016
Messages
1,693
Reaction score
3,034
Review score
+0 /0 /-0
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
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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
 
www.dinkinsaquaticgardens.com
OP
OP
dmolavi

dmolavi

Well-Known Member
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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
Review score
+0 /0 /-0
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
643
Review score
+0 /0 /-0
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/
 

Polyp polynomial: How many heads do you start with when buying zoas?

  • One head is enough to get started.

    Votes: 27 10.6%
  • 2 to 4 heads.

    Votes: 145 57.1%
  • 5 heads or more.

    Votes: 65 25.6%
  • Full colony.

    Votes: 10 3.9%
  • Other.

    Votes: 7 2.8%
Reef Kinetics
Back
Top