Author Options:

Any PIC Experts out there? Answered

Can somebody help? I have a few PIC16F628, ISD2532 sound chips and 4-digit seven segment LED displays with MM5450 chips from some old laser-gaming boards that I’d like to do something with but have got completely baffled by the data sheets and the complications of PIC programming. Basically, what I’d like to do is create a ‘dummy bomb’ as a present for my local gaming field along the lines of:- • Have a hex keypad enter an ‘unlock code’. Display and save that code • Use the hex keypad to input the time to start counting down from (Minutes & Seconds). Display and lock in that time • Have a button start to ‘arm’ the bomb and start decrementing the time and display it • When the timer reaches 00.00 then ‘fire’ the sound effect in the MM5450 and have an output go low for triggering something else • The device can be ‘defused’ by entering the correct code (equal to that previously stored) or by cutting the ‘correct’ wire – other wires triggering the device. It would seem to me that the ‘wire cutting’ scenario could be accomplished by using tied inputs – one changing state defuses, the others trigger the device. In an ideal world, the device would have 2 operating modes – timer and non-timer, the non-timer mode allowing for the device to be triggered by trip-wire, breaking an IR beam, a ‘hit’ from a gaming gun, etc. In a perfect world, it could also send a 56Khz IR data stream to ‘kill’ all the gaming guns within range but I don’t know the coding for that data stream and it may be in the realms of fantasy anyway… I don’t have a PIC programmer yet but they don’t seem difficult to build or hard to find – only having a laptop means USB though and that does limit things… I can do all the wiring and packaging but is there somebody who could help me out with the programming and/or general advice? Thanks Duncan