Ovulation and Bleeding?

I am on day 18 of my cycle and since yesterday morning I have had light spotting. I have gotten the blinking smiley face the past two days so ovulation should be soon but I am wondering why the spotting?