Victron VenusOS Raspberry Pi | 1-Wire DS18B20 Temperature | Installation and Configuration

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
I got a request about a Raspberry Pi and victron Venus s how we can possibly connect a one wire temperature sensor to the Raspberry Pi and have the temperature readout in the vrm console Hey and welcome back to Toby's rescus with Toby here you can see the final product that's how how it will look like at the end I want to show you what I did on caviar though there will be a update coming out soon as the developer mentioned and that means there might be some modification some improvements coming as well we'll connect the hardware which is a one wire with a board and we'll use the setup helper as well and it's pretty straightforward but we have to also do one modification with the putty when you connect and that means we need to adjust one little line and I'll explain it later to you welcome back to Toby series Toby by the way I hope you can see it you can see the pins that's very important and you can see also what we need first we need to connect which is really great you don't need to strip any wires you just need to connect everything and please look at this how we connected we have the plug for ground we have the red for the VCC you have the yellow for the data and you just need to unscrew it with a very very small screwdriver Flathead untighten those screws plug it in tighten it back down I'm not redoing this because that's so straightforward and then I have this jumper cable here which I decided on hey there's the yellow there's a red which have the same color coding like on the other side so that's what I did use yellow and red as well yellow for data red for VCC and I use the orange to match to the black which is crowned and that's what we need right so we have connected this one I hope you made a screenshot look at it and the next one is we need to connect those three jumper cables which come for the board go over here and now I'm pulling up that is so cool and there are so many pictures like this there are so many pictures out there for the Raspberry Pi where they tell you exactly which pin is responsible for what and here you can see it we'll use pin one in this case which is a 3.3 volt so that means we'll use the red jumper cable connected and hopefully yours is empty to the PIN and then what we need next we will use a ground so and here it gets tricky I do have a fan and my fan connects to here pin 4 with 5 volts and to the ground and pin six so I have to use um one two three four five I have to use pin they call it nine it looks like so I have to use pin nine if that is accurate at least here in this graph they call it nine I hope that is correct that's what I'm using and for the crown I will use my orange cable which is as you remember here on this little board black to Orange that's the ground I'm counting it's number one two two five one two three four five so I need to connect it here seems right and then we have the data and the data which is the yellow wire and then we need to use the data and the data is as much as I understood here at least seems to be everything which is green so in here it gets tricky so you can see I don't have the relay board connected at the moment to this Raspberry Pi which means we have to pay attention because that's where it got tricky and also I got confused and I got problems I cannot use the gpio pin 26 as you remember in this video that's one of the pins which which relay boards uses as well as the gpio I think it was 20 and 21 or something like that um so the other side as well and those pins we cannot use because they are already utilized and used by the relay board so keep that in mind because that's why we need to make the configuration change later and that's where there will be possibly a new version of this coming out I'm talking about version 0.5 at the moment of the Venus OS temperature service we need to use a different pin so we'll use pin 4 because it's everything so close so let's do that and that means I'll use the yellow one pin sorry it's called gpio4 but it's also pin 4 for me on the side when I count from the 3.3 Watt so now we have connected everything and that's basically the hardware what we need to do so we could assemble it back together I'm not doing that I just want to start it up and I want to see what's going on and then I'll show you everything else so the two requirements and you can see already I did already um proceed a little bit when you use the setup Helper and you have installed the Raspberry Pi processor temperature package installed or the Raspberry Pi gpio uh uh installer I think it's called package so this only applies to you when you have installed um to set up helper so that means we go into the setup help of the package manager open active packages look at what we have we have of course set up helper cool then we see oh yeah there's a Raspberry Pi temperature but I can see um there's nothing installed there's no installation because I did uninstalled already and Rebooted and I can see the Raspberry Pi gpro setup is also not installed here anymore because I don't have the port connected to it if you have it connected and you have those extra pins those pass-through pins basically you should be able to use it as well I have not tested it yet because I was working with this one but that should be in theory pretty straightforward because that's what a path through is right so the requirement no temperature sensor and for me at the moment also no GPR GPR was setup installed means we need to go back we need to go in to inactive packages and what we're doing we do select the new package and that leads me to link in the description to below for this package the Venus OS temperature service um thanks to record RS for providing this and also thanks for the quick answers and feedback I got from you this package you don't have to download but you have to scroll down a little bit and then you see there are some install instructions with screenshots which is amazing you can open it you can just follow those steps so what does that mean actually so I need to continue with double click new and now we need to use the package and we can type it in here and I think we have to type it in you cannot copy and paste it as much as so make sure make sure you type it correctly without any issues because otherwise it will not work we could find the package I mean it says temperature service then we have the user which is over here then Branch latest okay then we have to click proceed whoop that's what happens we'll go one Higher to the active packages and we should see it's on the bottom nice when we typed everything correct it should be able to find its latest version on the GitHub and there it is nice nice double click open it so you can see it so what I want to do is download seed and then when it's downloaded click install Ed and now we want to do the reboot oh there it is partially why is that so it worked partially what do we see here and therefore we have to refer to the package on the right side enable features in the setup and the Raspberry Pi CPU temperature is enabled as you can see here but the one wire support temperature is located on the data port 26. and now gets tricky when you have gpio installed or have pre-configured anything like that they'd want to use the 26 pin as well which it cannot do because that's where it gets some trouble so that means for me I will I will open my putty I'll connect to my Raspberry Pi perfect and now we have to type in Nano change a file we have to navigate to this path and there when we scroll all the way down there we have to change the comment change one wire temperature sensor on pin 26 and below is the actual pin located to 26 we have to change the DT overlay equals W1 Dash gpio gbo pin equals and then instead of 26 I'm going to type in four because that's where we plugged it in if you're using a different data port please put the number in here Ctrl X then why for saving enter I'll type in reboot you can also navigate into vrm console to reboot all right let's see if we yep oh look at that one-way temp sensor 27 degree which is this one and then we have the Raspberry Pi processor with 55. and let me just try to heat up I don't sell so sorry yep one more degree and 30 perfect and that's all there's too to configure it to connect the hardware so let me go back to the settings let me see if I can install the active packages and I want to go to the Raspberry Pi GPO setup I don't know why I uninstalled it but I'll just install it and see because it should not be uninstalled I'm when I tested I guess I just uninstalled it when I was going back and forth with the developer just to see what's the problem with this and he made me aware of hey you cannot use it with the temperature sensor package which is already installed from the setup Helper and also might be problems this might be might have problems with the GPO um set up here as well and as you remember in this video with the GPO um setup we did we also entered a custom file and we did configure um three different pins which we wanted to use for the Relay board basically and this should now work in theory without any problems let's see if it is true or not oh nice um it's good I guess it still looks like the temperatures here and we have well I no there are my relays here I haven't connected the board that will be one of the next videos because I have need to connect it but I'm happy this works I'm happy to see when I click here on temperature and I can use this temperature width and this package includes the processor temperature as well as this one wire if I want to end in it you can connect additionally I don't know how many Bluetooth um Ruby oop um temperature sensors as well if you like this stuff please um subscribe to the channel like the videos it would help me a lot it helps the channel a lot and I hope to see you next time cheers [Music]
Info
Channel: Tobi's Real Life Skills (with Tobi)
Views: 5,230
Rating: undefined out of 5
Keywords: VenusOS, Victron, Victron Energy, Github, Raspberry Pi, VenusOS Raspberryi Pi, Temp, temperature sensor, DS18B20 1 wire, temp sensor
Id: sVxeejN-d30
Channel Id: undefined
Length: 12min 38sec (758 seconds)
Published: Thu Jun 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.