I think I've got a pretty good template for him to work from, complete and everything, never thought it was worth anything since I've seen the same type of thing all over the internet.
BUT, I'VE ALREADY BUILT A COUPLE OF THEM FOR A FRIEND AS A BIRTHDAY PRESENT ABOUT A YEAR AGO! NOT QUITE THE SAME, SINGLE-SHOT, 5 SHOT, CONTINUOUS, OFF, AND...NOT ONLY THAT, BUT EVENTUALLY, ONCE I SAW THAT THE GUY WAS ACTUALLY WORKING TOWARDS LEARNING HOW PBP WORKS, I WOULD HAVE UPLOADED THE WHOLE SHEBANG, THE WHOLE LOT, SCHEMATICs FOR THE NEW AND THE OLD CONTROLLER, PBP SOURCE CODE FOR THE 12F683, HEX FILEs, AND MAYBE, JUST MAYBE, SINCE IT'S THE HOLIDAY SEASON AND ALL, I MIGHT HAVE SENT THE GUY A FINISHED, PROGRAMMED PIC AND A FEW PICTURES OF THE FINISHED PRODUCT.
But, you know what...(and sorry there 'thm ov3rkill', but you've got DT to thank for this), skip it. Not gonna do it.
Go ban yourself for awhile! Better yet...Put it to another vote like you did last year.
But I will give the original poster a suggestion on the one question...
With some creative hardware, you might be able to get away with it. You could leave the pin floating, use one switch to pull it low thru a high value resistor, use the other switch to pull it high thru another high value resistor. There's an app note around somewhere that describes how to do that sort of thing.Ill try to get this code to work one question was if the same pin can read the low coming from the trigger and rapidfire on the same pin..
Another option is to plug the switches into an A/D input and use a couple of resistors as a voltage divider. One switch pulls the input down to, say 1v, the other switch pulls the input down to 2v, both switches 3v, or something to that effect.
But since you've got unused pins, easier just to read two pins with one switch each, than read two switches on one pin.
Bookmarks