PSoC and key fob | Cypress Semiconductor
PSoC and key fob
Ive been playing around with my 2 button key fob and receiver, and i thought wouldnt it be great to interface it to my Psoc 1.
conected to my psoc are 2 ir beam breakers i made, they currently work with a simple bit of code. I was wanting to make a simple alarm. it shoud be like this. system on> wait till armed (button 1 of key fob) > armed> do alarm stuff (already done). button 2 of the fob should disarm the alarm whether the alarm was activated or just to disable it even if it wasnt activated.
so do i need to declare something like:
while buttonarm is not pressed, dont do anything, if it is arm alarm activated
do alarm stuff, have this done to monitor ir beam breakers
if the alarm goes off for any reason and buttondisarm is pressed, disable alarm output
im 100% sure on how to implement the keyfob
any help is always greatly appreciated.