# Is there a more efficient way to wire a row of pistons?

I want to create two sets of two adjacent pistons with a two block gap between them for a melon farm. It seems as though I'm using a prodigious amount of redstone for each section. This is my first redstone circuit, but is there a better way?

-

## Yes, there a quite a few ways.

Come with me on an adventure in redstone optimization!

You can place Redstone Repeaters behind each of the pistons as shown below. This will direct the input into the piston and prevent those annoying loops that usually don't accomplish anything. This will take up much less space, but uses a total of 18 redstone dust.

A more redstone efficient design would be this. It uses only 11 redstone dust. Other players not required. This method works because a piston can be powered by an adjacent powered block.

This design (courtesy of Tristan) uses a minimalistic 7 redstone. The lever powers both the block that it occupies and the block it attaches to. The hole on the right is required to keep the signals going to the two pistons separate.

Finally, this uses a measly 4 redstone. Since you're powering 4 pistons, I think 4 redstone is likely as low as you're going to get.

## Science!

-
This is using 18 redstone, mine uses 13 (or so). Yours is more space efficient. I was more interested in minimizing redstone usage. – John Feb 11 '12 at 5:45
@John - I see. I was going for minimal space. Yours uses 16 and mine uses 18 when you factor in repeaters. I think this is a minimal difference compared to the amount of space saved. Minimal redstone design incoming. – user9983 Feb 11 '12 at 6:04
I feel like I was integral to the creation of this solution. – StrixVaria Feb 11 '12 at 6:18
I just stood around and watched because I know nothing of redstone... – Fluttershy Feb 11 '12 at 6:21
This method works because a piston can be powered by an adjacent powered block. it does?! – tombull89 Feb 11 '12 at 16:51

If you put redstone repeaters facing the piston you can put redstone along the reapeters and it will work! There are other ways but this is the best way.My piston setup.

-

The easiest way I've found to power pistons is to place a block behind it on the same level and lay redstone on top of that block.

This way you can do it with 5 redstone:

Which can be easily extended to include more pistons. Which seems relevant as you're talking about sets and sections. Though the lever in the middle is probably not the most convenient place to put it, but it is most efficient in redstone usage.

If you have the lever on the beginning you can put 4x2 pistons with 14 redstone, adding another 4x2 to this costs another 14 redstone + 1 redstone and repeater to connect them. Which you can theoretically extended infinitely:

-

I found this way uses the least amount of redstone and is a compact design. I could have even gone down to 9 redstone, not including redstone for pistons, by moving the switch.

-

You can use repeaters to power multiple aligned pistons quickly and easily, like so:

You can craft repeaters like so:

---------
|   |
t | r | t  t = redstone torch
s | s | s  r = redstone dust
---------  s = stone block

Note that repeaters introduce a tiny delay to your circuit, but unless you need absolute speed, this system works fine.

-
Squash the pig!!!!! – MrMC May 19 '12 at 8:25