That AZdelivery esp board, the instructions from that guy/company are truly awful, maybe better if you can read German cos of the link sent to me.
It doesn't matter, as there's tons of data on-line, almost all in English.
Thank goodness I got my pickit2 working again with gcbasic.
So I programmed the pic for output and it works. 8 pin IC, no caps, no resistors, internal osc. Wired straight to input of MOSFET board.
I really wouldn't suggest messing with the 12C508's (OTP and
VERY low spec.) - if you want an 8 pin (and they are handy little devices) there are plenty of more modern 8 pin PIC's with lot's more facilities, and easily reprogrammable. The 12F1840 and 16F18313 are a couple of my favourites. You might be limited by the PK2 though, in which case the 12F675 is still vastly superior to the 12C508.
However, 8 pin devices are poor for development (as they don't have many pins, making ICSP difficult), so it's common to use a slightly larger device for development (such as an 18/20 pin PIC, or there are even some 14 pin ones), and then moving to the 8 pin once you've got everything working. I usually socket 8 pin PIC's, so I can program them externally.
Now to program interrupt based input from the sound board, let the pic 16F628 count the numbers of times the input goes low every couple secs and after a certain count, triggers the MOSFET and blows the horn.
The 16F628 is another rather 'antique' device (which I used in my tutorials years ago), you might consider something like the 16F1827/1847 for a more modern higher spec. replacement.
However, you do need to bear in mind the limitations of the PicKit2, which doesn't support many modern devices.
If anyone knows how I can program that esp board, like really knows how I pick it from the list of DEV boards in any ide, I would be grateful.
Thanks for everything.
Use the Arduino IDE - if you check here it takes you through it all nice and simply:
Learn how to install the ESP8266 board add-on in Arduino IDE in less than 1 minute. This guides works in any operating system: Windows PC, Mac OS X, and Linux.
The D1 mini you've ordered is my personal favourite for ESP8266 boards