I've seen a few videos on how hoppers can output a signal with a comparitor, but i don't quite know how. People have been stealing out of my chests and egging my basement, so i've decided to make a secret room. I want it to be if you throw an iron ingot into a hopper, the piston will move and the iron will spit back out under where the room is. I have a lot of experience with redstone, but i have a very hard time understanding comparitors. Can someone help me with this contraption?
From my basic understanding of comparitors (just guess work while trying to understand how a auto-chicken farm that I found on YouTube works) I believe a comparitor outputs a constant signal from it if there's an item in the block it's pointed to. In the case of the chicken farm I saw, when an egg went through the hopper into a dispenser, the comparitor sent a signal from the dispenser and looped it to fire the egg out. I made a rough design of it to try and help. Though I'm really bad with piston/piston doors so I can't do that, and my redstone is kinda messy. The thing with the comparitor part, it sends out what seems to me like 2 pulses, so a T Flip-Flop wouldn't work. But with that setup, when you throw an item into the hopper, it'll dispense it out at the bottom. I'm just unsure how to connect the dispenser/comparitor section to the pistons. Sorry if I'm not much help, I'm really bad with redstone (and making it compact) XD
Here's the comparitor/dispenser part
And somehow you'd have to connect it to this (or change the piston part in general)
EDIT: I'm willing to try and help with anything else you may need. The Minecraft wiki has a nice explanation on comparitors though, if you haven't checked it out yet. Probably much more help than I can be XD
Thanks.
-Antperson
Here's the comparitor/dispenser part
And somehow you'd have to connect it to this (or change the piston part in general)
EDIT: I'm willing to try and help with anything else you may need. The Minecraft wiki has a nice explanation on comparitors though, if you haven't checked it out yet. Probably much more help than I can be XD