DC motor stuck on HIGH

Hi,

I am trying to control a DC motor using an IR receiver/remote. My circuit and code seem to work in theory
(i.e. virtually), but when I upload it to the Arduino and try it out my DC motor gets stuck on HIGH (once the motor is set to HIGH the IR receiver no longer seems to check for new incoming signals, so I cannot turn the motor back off again - it just keeps running).

I have attached my code and a virtual version of my circuit and was wondering if anyone has any ideas?

Thanks

IRcontrolDC.ino (662 Bytes)

do you see confirmation that you received the downButton value from the remote?