It's time to upgrade our 12V electric fence charger! Today we're adding a new Victron monitoring system and a Shelly remote relay so we can keep tabs on our perimeter fence and turn it on and off from our phones. All inside a customized Milwaukee Packout battery box.
Thanks to Juan from @BeginningfromthisMorning for helping us wire the switch relay!
We have an affiliate partnership with some of the links above, and may receive compensation when items are sold. This helps support our family, and we only recommend products we truly love.
Hi, I'm Ashley. I'm Jonathan. We are Tiny Shiny Home and today we are taking a nerdy detour
to fix something on the homestead that's been driving us crazy. We're finally going to set
up a way to be able to turn our electric fence on and off remotely. Okay, let's talk about the
perimeter fence around our property. This is one of the first projects we did when we moved here
on the homestead because we live in free-range country. Yes, the cows have free range. It is
our job legally to keep them out and we found out really quick that if you want to protect any of
the stuff that you own you should build a fence. Yeah, so we reached out to our friend Moses who
really suggested this timeless fence to us. It's a nine strand high tensile electric fence that
runs on solar. Yeah, it has a really unique fence charger. It uses a tiny solar panel and a regular
12 volt marine battery to send thousands of volts coursing down the fence line every second.
Since it's DC based that means it has one positive and one negative output and then we just have to
jumper all the positive and negatives together. You alternate strands so that when you touch two
of them close together you get shocked. Which Jet demonstrated here in this video. Ada, you're
supposed to touch this one. Hold on this. Hold on this. Hold on this. Wait, do you get shocked?
How? Never gets old. Never gets old, does it? I could watch it every day and still laugh. Over and over and over again.
So this fence has worked great as our perimeter to keep the cows out and predators except for some
random dogs which is a whole other story but we still have had a few issues. The first is that we
had this random haboob storm come through and it ripped the solar panel off. It still worked but
it must have pulled something kind of loose somewhere because ever since occasionally if
that wire from the panel into the charger gets like bumped just right it stops charging the battery
and then we end up with a dead battery and then we end up with a non-energized perimeter electric
fence which is no good. Because the charger is all the way down here in this remote area of our
property we don't ever know if the battery is dead. So the first goal of this project is actually to
be able to remotely monitor the battery voltage and set up notifications so that if it does start
dropping we know and we can take care of it. Yeah. Also we need to take a look at that wire and see
if we can fix it too but both of those things would be good. Second while we're at it we need a way
to remotely turn this on and off. There have been way too many times when we're all the way on the
other side of the seven acres we're not near one of our gates we need to get through the fence to
deal with something whether it's an emergency. Usually it's an emergency. We can't right unless we want to get
shocked that means we have to walk all the way back down here hit the button all the way back
oh the cat's in the tree. We gotta walk all the way back and it's just a huge pain. Yeah. So setting up a
way to do this with an app on our phone should make this easier and now that we have a wi-fi mesh
that covers the whole seven acres this is finally possible. Also this box is incredibly embarrassing
it's one of the first things I threw together. Don't look too closely we're rebuilding it.
Let's get started. Yum yum. Oh my gosh don't do it.
Buddy go save him. Save him. Oh no. Oh he got it. He's good. Okay here's the high level plan.
We'll use a heavy duty toolbox to store the battery in and to mount everything else to.
Since we already have quite a few Victron systems on the property we're going to build out another
small one with a GX device that will report back to our VRM for monitoring and alarm notifications.
This Milwaukee packout is surprisingly affordable compared to other large battery boxes well built
and waterproof. It will need some venting though. Switching the fence on and off will be tricky.
While Victron's GX devices do have relays built in the actual interface to do this isn't very
user-friendly for everyone else in the family. So we'll need to use a different relay with better
smartphone integration that will allow us to bypass the switch on the fence charger.
We'll get into this later. All right we call it a reinforcements. We've got Juan here because as we
got into the remote switching part of it we realized we're gonna have to take this thing
apart and do some soldering. I don't do that. Not yet. Not yet. He's gonna help us figure this out
so let's see what we got. This is a very interesting little box. We talked earlier it's got a solar
panel and then it's got a transformer inside. Essentially you've got your positive and negative
wires going to the fence. You got to touch the two of them which I'm not gonna do to get shocked
because that's how you complete the circuit. You become the circuit right? But that also means you
don't have to ground it which is a huge problem out here for most traditional electric fences.
They just can't get the ground right. So anyway this is the box that Ashley built. She doesn't
want to talk about it. We're gonna tear it apart and we're gonna redo it because it's just sitting
on cinder blocks and there's all kinds of bugs inside there. Yeah? Yep. Yep. Okay so let's uh let's take
this thing apart and see what we got. Oh buddy spider city. Um see there is a waterproof box in here
but still it's a mess. We gotta do this better. We gotta make it better. We gotta make it better.
We'll disconnect the battery first and we'll get the battery out and then we'll start it. All right we're
gonna need the drill because we had to assemble this weird. It was very like we needed it right
then so we're gonna undo it all. Ready? We mounted this. Yeah see I was I knew there was a huge hole
somewhere for those. Oh there's a big black one. There's a big one. There's a big one. Right this way.
There.
Obviously that old battery box isn't going to work anymore so Ashley's going to get started
modifying the pack out while Juan and I focus on trying to get the relay
into the fence charger. The problem with this box is the battery was going to be all rocky because
this little thing is higher than this one so it's just not even. So one buys one facing that way and
one push this way to where when it's in here it has very little rock. Genius. Oh nice. So we're
That's a big hole.
It's a little uneven and that makes me angry so don't look at it close. Do you think you need to
put a screw in it? I think it wouldn't hurt to put one on top bottom. Okay let's talk about how we're
controlling the fence charger. The first problem is just with the way that it works. It gets its
power from a 12 volt battery but uses a transformer inside to jump it up to about 5,000 volts and send
that power down the fence line. So we can't just interrupt the flow at the fence line itself. There's
not a lot of affordable relays on the market that'll handle 5,000 volts. Second we want something
that will integrate with multiple smartphones so that Ashley, Adelaide, or any of the kids can pick
up a smartphone here on the property, have a button to tap, it's easy to turn the fence off. This led
us to the Shelly ecosystem. The Shelly plus one has wi-fi and bluetooth and a relay all combined
into this tiny little box. And a powerful easy to use app that integrates deeply into the functioning
widgets for iOS. Now we still have to figure out a way to bypass the switch before it transforms
to 5,000 volts and that's why Juan's here. So that's off. Aren't you so big? Yeah you don't have to be six pounds.
And good. Simple switch. All right so we're doing some quick tests. We've powered the Shelly. Yep.
So you're powering it with these. No with these to the battery. Oh yep. Okay and then these are
this is going to beep when you turn it on. Okay we've gone through the setup process.
We have added the device into the Shelly app. We're going to call it
what perimeter fence? Yeah fence or yeah perimeter fence. Because we don't have other fences in the future.
That's true. Perimeter fence. We now are connected. We have a power button so we're going to click it and
see what it does. That's not very exciting. So now we just have to interrupt the power supply
to that switch. Correct. Instead of these coming out of here they're going to go into the positive
which is this. So they're not going to go straight to the battery? No they'll just go in here. Okay.
And so that way we'll keep everything in here. That's why I said why don't we just keep it in
here. It might be easier. We'll put some Wegos inside there. 100%. So we'll separate them out. Yeah.
All right so the way we've wired this Shelly up is we've used Wegos and we've got power coming in
here to the 12 volt and the line which is how you do the 12 volt configuration. And then from the
switch we have wired that into the switch here. This is a toggle on toggle off switch. And then on
this side is the actual switching that turns it on and off. And so that comes from the negative on
this side to this little board here as the output. And so what this allows you to do is use it with
the switch through here or through the app. So that's it. So now we'll clean it all up. We just
wanted to make sure it was working and the way we thought it would work. Now we'll make it neat.
So we did find the source of our sketchy solar charging. Usually your diodes are inside your
panel like in this little box right here. Usually when you buy a solar panel it just comes in and
you don't have to think about it. I guess they couldn't fit the diode inside there so it was
in line. And I guess when it ripped it's broken right here. So you can kind of see it's a little
wobbly. So what was happening was I was moving the wire around and it would like connect and it would
start working again. So we're just going to rewire this with a new diode. Hopefully it'll be a little
more solid. Do they need to be weatherproof like the way he did? Yep. Okay so we'll cut this open
and that will allow us to see which direction it was going. You see the little line at the top?
Uh-huh yeah. Yeah so if you look right on the end the wire just broke off of it. We'll put heat shrink
on that and then we'll put heat shrink over the whole thing.
Bailey's come grab these.
Just in case. This was our solution for waterproofing this after we couldn't use it
after it ripped off the first time. Which is funny because the holes are actually fine. What ripped
was the frame of the solar panel. So we've put it on this side now. We're gonna redo it.
I think we can either do two tiny holes because that is like the perfect size. I could do one
Is it level? Yeah it's pretty good. This is what we call measuring.
Still works. Got all the the Shelly relay stuff set up. We got this all put back together. We
remounted the solar panel back to this and then we mounted this to here and pulled all the wires
through. So now we're going to start connecting all the Victron stuff so that we can also remotely
monitor the battery voltage and we're going to hopefully hook it up so we can turn on this fan
when it's too hot outside. In order to monitor the system we need two basic Victron components.
The first is smart shunt and so this is going to connect to the negative side of the battery. It's
going to tell you what the voltage is. Then the second is some sort of GX device. In the past we
have used the global link 520 because it's cell based because at the time we didn't have wi-fi
but now that we have wi-fi we can go a little simpler and cheaper and just use the servo and
I actually went with the servo sgx which is like the cheaper little brother version of the main
servo gx because we didn't need all that functionality in there. So this is what's
going to connect the wi-fi to the internet and then that'll allow us to monitor it.
Monitor it? Allow us to monitor it. I like monitor. Monitor! We have connected everything.
We've configured the vrm. We've even set it up to where I can turn the fan on and off with the vrm
if I want to. Small problem with the fan we'll talk about later. Quick note we skipped over this
part a bit but if you'd like to see how we build these remotely monitored Victron systems we have
a full video and wiring guide that you can go check out to learn all the details. So our next
step is number one we're going to take this put it out in the sun make sure that our new diode
is working properly then we're going to take it back down to the fence hook it up and make
sure that we're still hitting at the same voltage and that we can control it from our phones.
Plug in it should still click. Oh it's heavy. You should have got the one on rollers.
Not gonna move it that much. Okay I think we're all right it's just the way we wired
the relay the Shelly relay means that it won't ever directly run off of solar.
We could rewire it if we need to but it's working we just it took us a minute to figure it out.
Okay down to the fence hook it back up. Look at that. Perfect. It's like we did it on purpose.
That looks a lot better huh? Yeah it's like a little robot. Okay so we'll turn it on manually
first. It's working. Then in our packout we have a fence tester. Whose idea was that?
That was your idea. It was a good idea. Oh yeah. Genius. We've got
4,000
4,600 volts. So the next test is can we turn it off with our app?
Wait. There it goes. Just takes a second. And if we want we can turn the fan up.
Listen to it. Ready? Earlier we talked about the usability of relay switching via software
on your phone. Here's what that actually looks like and why the difference is important.
Our Victron GX device which we're using to control the fan has two relays built in and
can be accessed through the VRM and this little control icon. You tap the relay and it will turn
on. Now I know that Victron is working on a big update to how this dashboard works and this will
probably get easier to access in the future but for now it's just really fiddly and no one else
is interested in going into this app and trying to find this tiny little button. The Shelly app
is actually really powerful and honestly a little bit confusing. It's very deep. It can do a bunch
of stuff but the important thing is that it has support for widgets on iOS. This means that I can
create a widget and put it anywhere on the home screen that has an actual functioning button you
can tap. It even has the indicators. There's a blue ring around it when it's on and when you turn it
off that turns to gray so that you can visually check it. Make sure that it's on and there's a
little time stamp up in the corner where you can tap that and make sure that it's refreshed and
it's up to date before you just assume that it's off when maybe it updated 15 minutes ago. So you
can see why for a larger family like ours going with the Shelly and having that widget integration
and the easy button access just made more sense. No one is interested in logging into the Victron
remote management portal seeing all the battery and solar information and finding a tiny little
button. This works much better for us. All right so we still have a few things to work through because
I forgot about some stuff when I was planning but this is a good spot for stopping today because we
have a working fence charger and it's getting late. I want to make sure the perimeter is safe tonight.
Okay so we have a problem. The first problem was is that the vent fan I got for this is definitely
too powerful. It uses like 10-15 watts with this tiny little solar panel this battery is never
going to get charged back up if we use the fan. Which at first I thought was like well maybe it's
not a big deal maybe I just don't need the fan we just won't use it. But you know what I forgot about
when I was planning is I forgot about the Servo GX and the SmartShunt both drawing small amounts
of power. They must be drawing just enough to where this solar panel can't fill the battery
back up every day. Like it's close but it's just like it's losing voltage a little bit every day.
So phase two we're going to change our plan a little bit and we're going to add another solar
panel to this system. That way this tiny panel isn't having to power it and make sure it's charged
back up because obviously it's just not big enough. So I could have done this like super cheap
there's a few different ways I could have done it but since I already am doing Victron stuff I just
got like the smallest charge controller you can get so that I can plug it into the servo and keep
track of that solar input. But we are going to have to figure out a way to mount a solar panel
to the top of this. You know me I always get a little bigger than I need so I got a 50 watt solar
panel. I got a mounting bracket that I think will let us mount to the top of this and we've got a
few fuses and breakers and stuff since we are changing the way that we're charging this now. So
that's what we're doing today phase two making sure that this thing always stays charged up
no matter what we've got inside using it. Of course first problem I get all this out and
I go to start connecting this to the solar panel. They didn't include the bolts which is not helpful
at all. I think I found something that'll work though fingers crossed let's see how it goes.
Trying to get these holes to line up with a flat part of this so that I can get a nice solid
attachment point to the top of this. I'm going to try flipping these brackets because right now
this L bracket points in and it's putting me like into here and I want to get to out here so I'm
going to flip these around so that this part sticks out and see if that gets me closer.
Well that was a journey however I finally got it to work nice and solid I can still open the lid
to get into stuff if I need to. I've sealed it up everywhere that I possibly could so we shouldn't
have any water leakage. So that's first step now we have to put the gear in to be able to use the
solar panel and to charge it. What we did is we brought our positive and negative wire in from
that new solar panel into a 10 amp breaker and then out of that we go into the charge controller.
From the charge controller the positive goes through a 20 amp ANL fuse and then the negative
goes over to the load side of the shunt. Then I just set up a few settings on the charge controller
make sure it's set for charging lead-acid batteries and that's pretty much it. All the
rest of the stuff stays the same we just needed to connect the new positive and negative to the
battery so we're going to close this lid up. I will say having to mount this stuff here we did
lose our little tray so I'm just going to put this over here for now not as cool but that's okay.
There's already a black widow in there.
Ready? There you go now it won't ever run out of juice. With that friends we have yet another
small Victron system on our property that will help make sure our perimeter fence always stays
electrified and finally let us turn it on and off from anywhere we want. Yep 2024 has been our year
for making sure all the annoyances on the homestead are gone. So this along with adding our
automatic gate opener to our property, more solar panels to our system, a mini split for our
airstream, and wi-fi mesh that covers the property has made such a difference in our day-to-day lives.
It's the little things right? It really is it makes a big difference but anyway thank you so
much for watching we hope that you'll stick around subscribe so you can see the next
adventure on our tiny shiny homestead. We'll see you then.