Issues with atmega32 chip.

Also posted at:
https://stackoverflow.com/questions/49639049
If you're going to do that then please be considerate enough to add links to the other places you cross posted. This will let us avoid wasting time due to duplicate effort and also help others who have the same questions and find your post to discover all the relevant information. When you post links please always use the chain links icon on the toolbar to make them clickable.

Device signature = 0x000000 usually indicates a wiring problem. You should have a 0.1 uF decoupling capacitor on the power lines of the chip. You should also do a Tools > Burn Bootloader before Sketch > Upload using Programmer. The reason is this will set the fuses of the microcontroller according to the board you have selected. Note that if you set fuses for an external clock source and you have no external clock source then you will "brick" your ATmega32 until you connect a clock source to it.