1wire diagnostics

10 replies [Last post]
andy
Offline
United Kingdom
Joined: 17 Mar 2012

All,

I have just been able to get my HAH up and running after all the parts sleeping in their boxes for a week or so.

Anyhow, as I am so new to this (and the forums did not seem to provide an answer I thought I'd enter my first post.

My HAH has the 306 build.

I have my LCD working, my RF module seems to be working wonderfully, and I am controlling 7 BBSB4AW's that had been relegated to the parts draw, and I am also controlling 3 LWRF switches. I have tried both the wall plates (I have quite a few) and the pluging sockets, but currently only have 3 plugin sockets being controlled by the HAH. Will move my others when I feel happy (I'll then have a LWRF wifi-link for sale).

My onboard Ds18b20 seems to be reporting normally, and pachube is being sent the readings.

Now, I built my offboard ds18b20 onto a 3.5mm stereo jack and thought I'd test it, so plugged it in, and after resetting the bus, I get no more unassigned ROMID's. I rebooted HAH and then also did a bus reset, stil nothing.

Then I sat back and thought - did I err by pushing in my 3.5 jack into the connector whilst the HAH was running - did I damage anything?

My onboard is still functioning. 

Also the MB 1wire connector has an 4k7 innplace @ R7, do I need another R on the DQ/Vcc legs on the jack? - I have since tried with both, but still no unassigned ROMID.

I had a quick look at /var/log/* but nothing stands out, infact 'mesages' seems the most verbose logfile.

Can anyone give any tips, or suggest diagnostics. Especially the correlation between the onboard working and the possibility of damage by runtime insertion of the offboard sensor?

btw: I am no engineer (in the electrical sense), although I can solder a little, and have a very basic understanding of how electrons move about - so anything that involves complicated o'scopes and multimeters is a little ahead of me ;).

I'll get a few more ds18b20's in a few days, but in the mean time, can anyone help diagnose my problems?

 

 

 

 

 

 

 

 

 

 

 

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Quick thought

I don't think you should have done any harm by hotplugging the temp sensor, I think it's designed for that.

On the config page of the web gui have you set the number of sensors to 2?

andy
Offline
United Kingdom
Joined: 17 Mar 2012
Config Page

Allan,

 

Tried various GUI sequences, currently sitting like this (with 3.5mm ds18b20 plugged in).

1wire screenshot

regarding hotplug - thats what I thought, but when I thought about it I considered that the 3.5 jack design could cause short, at microphones/headphones often to exhibit that behaviour when plug inserted. I know my elec guitar does not like the amp on when plug is inserted!

--andy

andy
Offline
United Kingdom
Joined: 17 Mar 2012
few photos

Here are a few pics of my HAH assembly - i did have shrinkwrap on cables until I removed it for further checks - just red leccy tape on currently. :(

The 3.5 receptor with jack inserted. (no resistor)

1wire MB connection

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
I'm not really and expert

But for what it's worth here's my reminder description of how I put the sensor into the 3.5mm plug

Temp sensor connection
With flat surface towards front
left pin into very long connector with wings
centre pin into longer of two short connectors with holes
right pin into shorter connector

I fiddled around without soldering until I got it to work I seem to remember and then soldered it in place.

andy
Offline
United Kingdom
Joined: 17 Mar 2012
3.5 jack wiring

Here is my ds18b20. An this is what I think I have:

Pin 1 = GND (collar mount - sheath)

Pin 2 = DQ (inner core [pin])

Pin 3 = Vcc (outer core)

(These seem to match my socket sonnections (braid outer, red = vcc, white=dq) - see prev images 

3.5 jack wiring

My 4K7 was across pin 2/3 when I had it on.

 

--andy

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Sounds like you are doing the right things

My only other issue was that when I closed the case the livebox motherboard pressed agianst the 1wire plug on the HAH PCB and I think that it may have caused problems with the connection. I now make sure that there is as little contact as possible and dont tighten the screw fully, in order to ensure as little pressure as possible.

Sorry I can't be of more help.

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Multimeter would help

Good job on the HAH build. Sounds like you have most stuff going well.

Whilst hotplugging the 3.5mm jack isn't recommended, it's unlikely that anything would be damaged. The fact that your 'on-board' sensor is working is encouraging.

R7 is all that you need. A lower value can be used if your 1-wire bus is going to be a longer run of cable (recommend using Cat5 and RJ45s for longer runs).

What you really need to do is to use a multimeter to check the connections to your 'jack mounted' DS18B20.

If you don't have one, a basic model can be had for a few quid on eBay. Best to get one that has a buzzer for continuity checking ... saves having to look at the display.

Also, checkout the [1-wire] section on your /etc/xap-livebox.ini file. Make sure that you have no corruptions in this area.

Cheers,
Derek.

andy
Offline
United Kingdom
Joined: 17 Mar 2012
Embarrassed but working...

OK, I should have used a multimeter earlier, but did not have one to hand (burried in attic).

So...a little embarrassment after realising my 3.5 socket was not wired up as per my jack, a quick resolder and fingers crossed, and I now have a second sensor working, and checked with a continuity tester. https://pachube.com/feeds/54957

basically, my plugs Dq was set for the jack tip, whereas it shouldhave been the Vcc at tip, so a quick switch was all that was needed. I sure am glad I never foo-barred by 1wire bus or my HAH board. Lesson learned. [Multimeter now in toolbox].

Onto some cron and plugboard stuff for a while, then back to switch 1wire over to cat5 (I have it all over house, but guess I need to be careful what pin-outs I use - will need to reasearch best schematic to use).

thanks everyone - allanayr, rereading your pin assignments and comparring just confirmed what my MM was telling me (I think the wiki could be tweaked to make that a little more newbie proof).

 

--andy

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
wiki tweaked

Brett had also pointed out to me that this needed to be done. 

http://www.dbzoo.com/livebox/assembly?&#wire

Importantly, there is now mention of the tip of the 3.5mm jack being Vcc and the middle segment being DQ.

The other point to note is that most folks who run a 'lot' of sensors on the bus use Cat5 cabling and connectors. The little RJ45 breakout module makes this easy to attach to the HAH PCB. http://www.homeautomationhub.com/content/rj45-breakout-adaptor

Cheers,
Derek.

andy
Offline
United Kingdom
Joined: 17 Mar 2012
Wiki and checkout.

Derek,

 

Wiki reads great - why not link to rj45 connector @ shop in the para about rj45?

(i would have ordered it right away ;) )

... just tried to place shop order, but got a message about orderDescription validation and cannot place order. Have sent you private email with screenshot and my order items :)

 

Having great fun tinkering...

 

my wife groaned when i got the kit (she was the one who relegated the BBSB4AW's to the garage drawer), but she hates waste and so is warming to the reuse i have found for the BBSB's via the cron jobs. I'll have to see if she is onside after a few weeks.

 

--andy

Hardware Info