line follower design with atmega328 and mosfet controlled motors
Problem solved. I just needed to connect a 10k resistor between the reset and vcc pin and one 1uF capacitor between vcc and ground. The other gnd and the avcc pin are not really neccessary to be connected.