Arduino

From: Chris (CHRISSS)10 Dec 2015 13:10
To: ANT_THOMAS 491 of 542
Not sure if I posted this before but http://www.gammon.com.au/power is very helpful for power saving.
From: ANT_THOMAS10 Dec 2015 13:22
To: Chris (CHRISSS) 492 of 542
I have seen that before, but forgot about it!
From: Chris (CHRISSS)12 Dec 2015 02:56
To: ALL493 of 542
Soldered up another board with a Li-Ion battery now. It's powering up but not sending the temps for some reason. I'll have to try and fix it tomorrow.
From: graphitone12 Dec 2015 09:32
To: Chris (CHRISSS) 494 of 542
What's it all going to do in the end?
From: Chris (CHRISSS)12 Dec 2015 10:25
To: graphitone 495 of 542
/Exciting stuff/... display a graph.

Screenshot attached of the current one doing its job in my living room. With other bits for turning my water and heating on.
From: ANT_THOMAS12 Dec 2015 18:43
To: ALL496 of 542
Finally got round to changing my loft door over to reed switch from hall effect sensors. Open and close switches to prevent closing too far or opening too much and killing the motor/winder.

Whilst I was doing it I killed the original arduino, lovely smell of something electronic going pop. I had stupidly soldered the nano directly to the board meaning I couldn't swap it out easily. Tried to unsolder it but it wasn't budging. Ended up making a new board and added female socket headers so I can swap it out and reprogram without disconnecting the whole board.

EDITED: 12 Dec 2015 18:56 by ANT_THOMAS
From: graphitone12 Dec 2015 20:57
To: Chris (CHRISSS) 497 of 542
 (bounce)
From: Chris (CHRISSS)12 Dec 2015 23:47
To: ANT_THOMAS 498 of 542
Nice work :) What do you use to activate the door? I think you did say. I've realised it's not goot soldering some parts in just in case they need changing. In fact the reason my temp sensor didn't work last night was because the actual temperature sensor on the board has stopped working.

It's made me make some changes to the software though. Before I was manually inputting the DS18B20 address before flashing, I had to reflash if I wanted to change the sensor. Now it finds the address automatically and lights the LEDs if it can't find one.

I've also changed the sensor interval to 5 minutes from 1 so should save 5 times less data now. Too many points on my graph I think.
From: Chris (CHRISSS)12 Dec 2015 23:49
To: Chris (CHRISSS) 499 of 542
So I finally have 2 working sensors. Have to decide where to put this one and also change the software on the Pi so it can show data from more than just one sensor.
From: Chris (CHRISSS)12 Dec 2015 23:57
To: Chris (CHRISSS) 500 of 542
My two boards side by side.
From: koswix13 Dec 2015 11:58
To: Chris (CHRISSS) 501 of 542
Does the heat from the electronics impact your readings at all?
From: ANT_THOMAS13 Dec 2015 12:10
To: Chris (CHRISSS) 502 of 542
Are you buying the wire specifically for this? Looks quite thick.

I've just been using some solid core CAT6 I have spare.
From: Chris (CHRISSS)13 Dec 2015 13:49
To: koswix 503 of 542
Not sure, doubt it though. It's only running for a few seconds every 5 minutes. The rest of the time it's sleeping and oly using microamps of power. The temp sensor is sticking up above the board too, or I could replace it with a sensor on a long cable to see of it's any different t.
From: Chris (CHRISSS)13 Dec 2015 13:50
To: ANT_THOMAS 504 of 542
It's cable I've ripped out of an old PSU. Too chunky, need to find something smaller and easier to use.
From: graphitone13 Dec 2015 15:12
To: Chris (CHRISSS) 505 of 542
I've an idea. You could try some spare pieces of CAT6 cable you may have lying around...

 
From: Chris (CHRISSS)13 Dec 2015 15:40
To: graphitone 506 of 542
Will Cat5 do? Don't think I have any Cat6.
From: koswix13 Dec 2015 15:47
To: Chris (CHRISSS) 507 of 542
Probably fine then.
From: Chris (CHRISSS)20 Dec 2015 00:31
To: ALL508 of 542
Yay! Finally have my 2 sensors working properly. I started having problems with my AA powered sensor after making my Li-Ion powered sensor. It just wasn't detecting the DS18B20 probe and I couldn't work out why.

I finally worked out it was the timing of the OneWire library with the AA sensor running at 4MHz. I had to adjust the timings of the library, cut them in half, and now it works. Yay :) The Li-Ion sensor is fine running at 8MHz due to the higher voltage so no problems with that.

Now time to modify my RPi code to show both sets of data.
From: Chris (CHRISSS)20 Dec 2015 01:40
To: ALL509 of 542
Well that was more work that I was expecting. Thought I could just copy and pâté the code and change the ID to 1. Nope. SQL error. It's made me tidy up the code a bit and easier to add new data sets to it now.
From: Chris (CHRISSS)20 Dec 2015 09:16
To: ALL510 of 542
For a few hours and now it's stopped working again. Grr. Need some more 18650 holders.