Building a DIY Solar Pergola to Power Your Home Off-Grid

My electricity bill kept climbing no matter what I did. I switched lights off and took cold showers, and solar already sat on my roof. Still, I paid through the nose every single month.

The real problem was simple. My roof was full. Two 10 kW inverters and 30 kWh of battery storage sat there with plenty of power to spare. I had nowhere left to put more panels. While I built my garden office, I had wrecked the garden anyway. An ugly patch of ground stared back at me every day.

final image v2 solar pergola

So I decided to think outside the box, literally. I would build a pergola that is also a power station, not a plain lean-to gazebo. Six 500 W panels would sit on a timber pergola, six more on the office roof. A smart gateway would let the whole house run without the grid at all.

This is the full story, in build order: first comes the timber pergola and decking, then both solar arrays. After that, the wiring and the gateway that ties it all together. Last, the day I finally cut the grid and watched the house keep running.

At a Glance

  • Skill level: Advanced. The pergola frame is confident DIY. The gateway and mains wiring need a licensed electrician. This is not a beginner job.
  • Estimated cost: No total is ever mentioned in the video, so there is no figure to quote here.
  • Result: 6 kW of extra off-grid power (3 kW on the pergola, 3 kW on the office roof). The whole house ran for a month without taking any power from the grid.
  • Time: The build was squeezed into spare time over several weeks. The electrical changeover day alone started at 6 a.m.
  • Safety first: A licensed electrician must do the gateway, consumer unit and mains work in this build.

Tools You Will Need

  • Tape measure
  • Laser level
  • Spade for the post holes
  • Saw for the joist cuts
  • Hammer
  • Drill/driver
  • Spirit level
  • Cable rods for fishing cable under the decking
  • Scribe for marking metal
  • Multimeter or voltage tester

Materials You Will Need

  • Timber posts (6) for the pergola frame
  • Timber joists and beams for the frame and roof
  • Tongue-and-groove boards for the roof — a solid base to walk on and mount panels to
  • Decking boards for the seating area under the pergola
  • Cement for the post bases
  • Post rot protector wraps for the buried part of each post
  • Bolts and screws to lock and bolt the frame together
  • 12 solar panels, 500 W each — six for the pergola, six for the office roof
  • Ballasted mounting buckets, brackets and elongation rails for the office roof
  • Doncaster Cables PV Ultra cable — double-insulated solar cable
  • MC4 bungs to keep water out of unused MC4 connections
  • Isolator for the panel string
  • EcoFlow PowerOcean gateway, plus a third inverter (EcoFlow PowerOcean 1) with two MPPT trackers
  • Trunking and containment for the gateway cables
  • Earth rod
  • SWA (steel wire armoured) cable and CW glands for the mains feed
  • Breakers for the consumer unit rewire
  • Comms cable and a terminating resistor for the gateway

Part 1: The Pergola Frame

The timber frame comes first, and it has to be right. Twelve solar panels are about to sit on top of it.

Step 1: Plan the Pergola with a Scale Model

I started with a laser-cut scale model of the pergola, with the panels themselves cut to scale too. The model told me the footprint straight away: roughly 5.2 m (about 17 ft 1 in) long. I marked that out on the lawn with a tape measure and an old broom handle. Then I set the post positions so the posts would oversail by about 200 mm (about 8 in) past the roof edge. I checked the model again before I committed to anything. In fact, posts in the wrong place would have ruined the whole layout.

Step 2: Dig the Post Holes

With the footprint marked out using the broom handle and my laser level, I started digging the first post hole. To begin with, the ground gave up one surprise: an old engraved stone that looked like it had Roman numerals on it. Then it was back to digging. I dug half the first hole myself. Then I handed the spade over for the rest of the holes.

Step 3: Set the Posts with Rot Protectors

I wanted this pergola to last, so each post got a post rot protector wrap around the part that goes in the ground. In an ideal world I would have poured a proper concrete foundation and bolted the posts to it. This was not an ideal world, so the wraps and cement were the plan.

Still, the wraps were slow and fiddly to fit. Honestly, I would use a blowtorch on the post ends next time rather than fight with them again. I marked the height down from the top of each post so they would all finish level, then set up my laser and struck the same height across all of them. One post sat about 10 mm (about 3/8 in) too deep, but the cement in the bottom of the hole brought it up to the right height. Once the first post was in, I installed the other five the same way.

Step 4: Frame the Pergola and Lay the Decking

With all six posts standing, I started framing out. The plan was to lock and bolt the whole frame together. Decking underneath would turn the pergola into somewhere to sit. I bolted the frame up tight and laid the deck boards in as part of the same stage. The seating area and the structure went up together.

Part 2: The Roof and the First Panels

The roof has to do three jobs at once. It must keep the rain off and give me something solid to walk on. It must hold the panels at exactly the right spacing.

Step 5: Cut the Roof Joists for a Fall

A flat roof would hold water, so I gave the pergola roof a slight fall. I cut the back of each joist a little deeper than the front. The joists slot into the top of the frame and hammer home, and the deeper back cut drops the back edge down. I am not a carpenter, and I am the first to say this is probably not the textbook way to do it. It worked, though: the joists went in, and the roof had the gentle slope it needed.

Step 6: Lay the Tongue-and-Groove Roof

I chose tongue-and-groove boards for the roof. They give me a solid base I can walk on and a flat surface to mount the panels to, and they beat open joists on weatherproofing underneath, too. I worked through the night to get the last details of the roof finished, and by the morning the pergola had a proper solid roof, ready for panels.

Step 7: Lay Six 500W Panels on the Pergola

I had spaced the roof joists so they would fall inside the clamping zones of the panels. In the end, the spacing worked out perfectly for installing the panels themselves. I laid six 500 W panels across the pergola roof and clamped them down. Six panels at 500 W each gives me an extra 3 kW of power from this roof alone. The pergola suddenly looked like what it was always meant to be: a garden seat with a power station for a roof.

Step 8: Connect the Pergola String with PV Ultra Cable

I wired the pergola panels together with Doncaster Cables PV Ultra cable. In fact, it is proper double-insulated solar cable inside another double-insulated package. The short legs between the panels only want one cable. I ran a single cable, starting at one end of the string and coming back to the start. So that beat running a pair of cables all the way along.

Part 3: The Second Array on the Office Roof

The pergola gave me 3 kW. The office roof was still bare, and it would give me the other 3 kW. I was not going to drill holes in a rubber roof to do it.

Step 9: Fit the Ballasted Mounts on the Office Roof

I had already fitted my third inverter, an EcoFlow PowerOcean 1, in the office. It comes with two MPPT trackers: one for the pergola string, one for the office roof string. After that, it would AC-couple back to the gateway. For the office roof I used a ballasted system, which weight alone holds down. The mounting brackets bolt to the ballast buckets with elongation rails, and the rails then bolt to the panels. The beauty of it is that I can also adjust the tilt and direction through the year. It goes on very quickly, and it never penetrates my rubber roof.

Step 10: Mount the Panels on the Office Roof

With the ballasted mounts in place, I lifted the second set of six 500 W panels onto the office roof. Then I fixed them to the rails. That is the second 3 kW, and the studio roof now carried its panels. Between the pergola and the office roof, I now had the full extra 6 kW of solar I had planned for.

Part 4: Connect the Strings Safely

This is the part where patience matters more than speed. Solar panels are live whenever there is daylight, so I make every connection dead, dry, and checked.

Step 11: Fish the Cable Under the Decking

The decking was already down, and the cable still had to get underneath it. So I fished it through with cable rods. I should have clipped the cable in place before I laid the decking — that would have been the smarter order. The decking, with all its mitre joints, was not coming back up. The rods got the cable through, but learn from my order of work and clip your cables first.

Step 12: Connect the String in the Isolator and Cap the MC4s

I connected the string up in the isolator first, because we never work live. Even if the sun is not shining, if there is daylight the panels are live. While the MC4 connections were waiting, I kept bungs on them. The bungs stop water getting into the MC4s, which matters because an MC4 is a watertight connection. If water gets trapped inside when you plug it in, it will corrode the connection, destroy it, and can set your house on fire. Keep a pair of bungs in your tool bag and use them any time a connection is not made the same day.

Step 13: Test the String Voltage

Before I went any further, I checked the voltage of the string. Each panel is about 41 volts, so six panels in a string should read about 246 volts, give or take a few percent on a dull day. My meter reading on the day was hard to trust. It showed a much higher figure, which I put down to having the probes the wrong way round. The reading was still in the right ballpark for a live string, and I was happy to carry on.

Part 5: The Gateway and the Grid Cut

This is the heart of the whole project. The panels make the power, but the gateway is what lets the house run without the grid. This is licensed-electrician work, not a weekend DIY job.

Step 14: Mount the EcoFlow Gateway on the Wall

The final piece of the puzzle is the EcoFlow PowerOcean gateway. The first thing I noticed is how solid it feels. Other gateways I have installed have plastic on the front, or nothing at all. The moment you open the door, you are looking at bare copper busbar. This one has a keyed, tooled entry before you reach anything dangerous, so it stays properly protected. I love the marking template on the back of it too: a sticker holds it in place while you drill, so the holes land in exactly the right place every time. The screws a manufacturer sends are usually garbage, so I never use them. The black stainless screws that came with this one were a nice detail, so I used them. I got the gateway up on the wall and made a plan for the wiring.

Step 15: Map the Gateway Connections

Before I wired anything, I mapped out what goes where. Without a gateway, most inverters will not work in a power cut, because they are grid-tied inverters. The gateway takes a feed in from the grid and feeds your loads — in my case, the whole house. It takes all of your inverters back into itself, so you can run off-grid seamlessly during an outage. On this model there is a breaker for a generator. First, I can connect a petrol or diesel generator and even use a two-wire start to fire it up automatically. There are two inverter inputs, a smart port for the house, surge protection, and the grid input. Once I switch the grid off at the gateway, the whole thing should still run.

Step 16: Plan the Trunking and Earth Rod

Next I planned the containment. The earth rod had to go in, and every supply had to come back to this gateway: from the inverters, out to the house, in from the grid. The EV charger would also run off it. My plan was a stick of trunking running down to the ground for the earth rod supply and the grid supply, with a T-piece going up for the inverter supplies, isolators, and the rest. I worked the route out on the wall before I cut anything.

Step 17: Mark the Trunking with a Scribe

For marking metal, I use a scribe instead of a permanent marker. Even a fine-tip marker makes a thick line, and it can rub off. A scribe scratches a fine, precise line into the metal that cannot rub away. I marked the cut line, held the trunking in place, and cut it off cleanly. It is a small tip, but if you have never tried it, it changes how accurately you can mark out metalwork.

Step 18: Rewire the House Consumer Unit

This is the big changeover. It means turning the whole house off, so I had a helper with me to get it done quickly. Inside the house, the two existing inverters each had a mains port and a 5 kW backup port feeding the consumer unit. I pulled out the breakers and isolators that were no longer needed, then took out the old supplies and returns and rerouted everything to the gateway.

The breakers went on the top row. I wired the two inverter supplies into the gateway’s 125 A switch. Lives went to the switch, neutrals to the neutral bar, and earths to the earth bar. The gateway now handles all the smart switching, so the consumer unit itself wires up just like an ordinary one. The house gets a full 100 A uninterruptible supply instead of two separate 5 kW backup feeds. If this were a customer’s house I would have a chart, a schedule, and a labelled diagram. In my own house the plan was in my head, and I would not recommend that.

Step 19: Pull the Comms Cable Through the Loft

The gateway and the inverters have to talk to each other, so I pulled a new comms cable down into my rack. The cable I had tied on snapped in the loft. I had to climb up into the most awkward part of the loft to pull it through by hand, and discovered a wasp nest up there for good measure. It was slow, cramped work, but the cable came through in the end.

Step 20: Wire the Gateway Comms and Terminating Resistor

With the cable through, I wired the comms between the gateway and the two inverters. Next, I put a terminating resistor on the end of the run. I followed the EcoFlow instructions, which were clear and easy to work from. The connections sit tucked away at the back of the gateway, along with the internet connection and the comms out to the other inverters. Once they were in, the gateway could see and control the whole system.

Step 21: Run a New Cable to the Meter Cabinet

Only one thing remained before the changeover: the old mains cable that had been there since before I moved in. I disconnected it from the meter cabinet and ran a new cable from the gateway out to the mains cabinet, with the new run going in between. It was the end of another long day. The actual grid cut would wait for a fresh start.

Step 22: Cut the House SWA Feed and Pull the Main Fuse

An SWA cable feeds my house from a switch fuse in the meter cabinet. That was handy, because I could cut the house feed and put it into the gateway, then run from the gateway back out to the grid. I switched the power off and pulled the main fuse as well, to be safe.

I do not cut corners here: in my opinion you should not pull the main fuse yourself — the metering authority should come out and do it in a risk-controlled way. Inside an SWA cable, the steel wire armouring connects to earth and gives the cable mechanical protection, and how neatly you tidy the armouring off is what makes or breaks the job. I used a CW gland, which has a compression washer inside so it can be used outdoors, and stripped the shrouds back just far enough to bite onto the cone, with no inner cores showing.

Step 23: Terminate the Gateway Terminals

With the cables in, I terminated the gateway. Each terminal carries a number from 1 to 6, with labels at the back, and I double-checked each one against the manual before I made it off. The backup load is the whole house, so the whole house keeps running when the grid goes. Finally, the grid comes in from the switch fuse to the grid terminal. Once I finished that, the gateway came on and I commissioned it.

Step 24: Watch the System for a Month

I did not cut the grid straight away. I run a business from this house, so I could not afford a power cut in the middle of a video call. Instead, I watched the system for a month, on the app on my phone and on the screen on my desk. In fact, that screen shows the house and the garden panels separately. Even heading into April, with some horrendous weather, the system never came close to taking power from the grid. The batteries stayed charged and the house ran on solar. I finally trusted the system enough to take the last step.

Step 25: Cut the Grid

It was time: the battery was at 64%, and the panels were charging more than the house was using. I switched the grid off, and the house just kept running — lights, business, everything — with no flicker and no drama. After months of building, wiring, and watching, my home was running entirely on its own power. That is what the whole pergola was for.

What Can Go Wrong

  • Treating the gateway and mains work as DIY. The pergola frame is a DIY build, but the gateway, consumer unit, and main fuse are licensed-electrician work. Get a professional in for Part 5.
  • Working on a live string. Connect the string in the isolator first, and never work on it live.
  • Leaving MC4 connections open to water. Cap unused MC4s with bungs. Trapped water corrodes the connection and can cause a fire.
  • Laying the decking before the cables. Clip the pergola cables in place before the deck boards go down, or you will be fishing them through with cable rods like I was.
  • Fighting post rot wraps. The wraps are slow and fiddly to fit. Budget real time for them, or plan a different way to protect the buried posts.
  • Cutting the roof with no fall. If the back joists are not cut deeper than the front, water will sit on the roof instead of running off.
  • Skipping the month of monitoring. Do not cut the grid on day one. Watch the system through real weather first and make sure it covers your actual use.
  • Pulling the main fuse yourself. Leave the main fuse to the metering authority, who can remove it in a risk-controlled way.

FAQs

Cost, the gateway, the voltage check, the ballasted roof mounts, and whether going off-grid is worth it. Those are the questions this build gets, answered in order.

What did the solar pergola cost in total?

I never state a total cost for this build in the video, so I am not giving one here. To be honest about the money side: going off-grid may not be the wisest financial choice. In fact, my system is probably not more stable than the grid. I built it to prove it is possible, and for the freedom of not relying on an energy company. Price your own version from the materials list and your local rates before you start.

Do I need a gateway, or can the inverters run the house on their own?

You need the gateway. Most inverters are grid-tied, which means they shut down in a power cut. The EcoFlow gateway takes the grid feed in and feeds your house. It takes all your inverters back into itself, so the house keeps running seamlessly when the grid goes down. In this build it turned two separate 5 kW backup feeds into one full 100 A uninterruptible supply for the whole house.

How many panels do I need for 6 kW?

Twelve panels at 500 W each. Six go on the pergola roof for 3 kW, and six go on the office roof for the other 3 kW. Before this build, I already had two 10 kW inverters and 30 kWh of battery storage, with a full house roof of panels. In the end, the extra 6 kW was what I needed to stop drawing from the grid.

What voltage should a string of six panels read?

Each panel is about 41 volts, so six in a string should read about 246 volts, give or take a few percent depending on how bright it is. If your reading is nowhere near 246 volts, check your connections before you go any further.

Can I put solar panels on a flat rubber roof without drilling holes?

Yes, with a ballasted system. Weight alone holds the mounts down. The brackets bolt to the ballast buckets with elongation rails, and the rails bolt to the panels. Nothing penetrates the rubber roof, and you can still adjust the tilt and direction through the year. That is how I mounted the office roof array in this build.

Watch Full Tutorial: How to Build a Solar Pergola That Powers Your Whole House (Off-Grid)

https://www.youtube.com/watch?v=bOkQEFi55oU

Final Thoughts

The bill I could not control is gone, and so is the wrecked patch of garden. In their place stands a pergola I can sit under, and a house that runs on its own power. The timber work is a satisfying DIY project, while the electrical work is a job for a licensed electrician. The month of watching the system before I cut the grid was the most important step of all. If your roof is full and your bills keep rising, look at the space you already have — the answer might be standing in your garden.

 

0 Shares

Similar Posts

3 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *