question

fenix avatar image
fenix asked

Temperature sensor for outdoor/indoor

Hello

is there a way to connect temperature sensor to the raspeberrypi-venus and have the value display on the VRM portal... or other?

VRMTemperature Sensorremote console
1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

wkirby avatar image wkirby ♦♦ commented ·

I can't remember if I got this working or not, there is some fiddling about to do and I vaguely remember using some sort of ADC as a front end for the temperature sensors.

I'll move this to modifications section, maybe someone else over there has better information than I.

0 Likes 0 ·
3 Answers
nebulight avatar image
nebulight answered ·

The ADC for the Pi supports three tank senders and 2 temp sensors as I believe the driver was taken from the Venus GX. So you could wire them up to the ADC, but it requires modifications to work with the venus. Check out my thread on tank senders and you can look at the schematic for the Venus GX to find the required resistors to get the temp sensor input working:


https://community.victronenergy.com/questions/19608/raspberry-pi-analog-inputs-tank-input.html



You can look at the Venus GX hardware BBB cape here:

https://github.com/victronenergy/venus/wiki/Venus-GX-hw-changelog

However with the Release of the Cerbo GX, that has 4 tank and 4 temp, so maybe we can use all 8 ADC ports in the coming months after the release of the Cerbo.


1576714707091.png (44.0 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jeroend avatar image
jeroend answered ·

Although I had the tank sensors up and running in no time, the temperature sensors appear more problematic for some reason. I can see a voltage on the sensor setup page in the Venus menu but I am not succeeding in actually displaying a temperature. For the tank sensors I omitted the V clamp with the BAT54S and for the temperature sensor I woud like to omit the BAV99 (although I did try with an alternative circuit consisting of 2x 1N4148 diodes) The temperature sensors are the last of the inputs I would like to activate so if anyone can post a 'how-to'.......thanks

3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

laurenceh avatar image laurenceh commented ·

Jeroen

I followed the circuit exactly when I made the analogue input for my Rasberry pi and it worked pretty much straight away, I know you have seen my notes on my project. On the Rasberry pi you need the dbus-adc service installed but it sounds like you have that already if you see a voltage in the Venus menu and its easy to install on 2.60 anyway.

My notes on dbus-adc on Venus OS 2.60 are in this article here. You do need to create the dbus-adc.conf file in 2.60.

https://community.victronenergy.com/questions/61933/whats-happening-with-venus-260-what-did-my-system.html?childToView=61937#comment-61937

I am happy to help but I’m not sure what the problem is you are seeing? I’m using a system with 1.8 v Vref and can tell you the voltages I am seeing in the Venus settings and on the adc inputs if that would help.

0 Likes 0 ·
Show more comments
dunnp avatar image
dunnp answered ·

I got mine working with just the 3 resistors, LM335 & cap. But I got some odd temp readings and had to fiddle with scale and offset values to get sensible measurements. I was flying blind as there’s no explanation on what these actually do (that I can find). Eventually I got fridge and freezer within a few degrees of actual - close enough for my purpose.

Phil

6 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jeroend avatar image jeroend commented ·

Can you perhaps post a picture/photo/diagram on how you had it to work? I tried pretty much every variation I could imagine on the cape schema posted above by @nebulight.

0 Likes 0 ·
dunnp avatar image dunnp jeroend commented ·

Hi JeroenD

Here is how I wired mine...

(Sorry about the crappy sketch).

I am in the process of installing the system in my caravan and it's currently dismantled so can't do any screenshots at the moment.

Phil

0 Likes 0 ·
1601065609390.png (539.5 KiB)
jeroend avatar image jeroend dunnp commented ·

Thanks, thats reassuring to know it should/can work as that’s how I wired it up too. I’ll source other LM335az components to see if it was a bad batch or something.

0 Likes 0 ·
dunnp avatar image dunnp jeroend commented ·

Just noticed my dbus-adc.conf file is slightly different to LaurenceH's ...

(Not sure it that's significant). Be sure there's a line-feed after 'temp 3' - caught me out.

0 Likes 0 ·
1601066498637.png (6.7 KiB)
jeroend avatar image jeroend dunnp commented ·

Linefeed is there.

0 Likes 0 ·
dunnp avatar image dunnp jeroend commented ·

I just rebuilt my system today (after somehow corrupting it during an upgrade to v2.60) and got caught out with an old version of the MCP3208 overlay. Apparently there was a new one around about November 2019. Once I loaded that one, everything worked. Prior to that I couldn’t get any analog inputs. But it sounds like your tank inputs are working so that is unlikely to be the cause for you.

0 Likes 0 ·

Related Resources

Victron temperature sensor disambiguation table - which product supports which sensor


Additional resources still need to be added for this topic

VRM login page

VRM documentation

VRM API documentation

How to change the Owner of a VRM installation