Electronic – arduino – How to use a Raspberry Pi Pin(3.3V) to reset a ATMEGA328(5V)

arduinoavrraspberry pi

I have a ATMEGA328(AVR) connected to a Raspberry Pi(RPI) via serial using a level shifter.

The AVR has the Arduino Bootloader installed and I would like to program it via serial.

What would be the best way to connect the AVR reset pin to the RPI GPIO pin 4?

(Keep in mind that the AVR reset pin has a 5V pull-up resistor connected to it.)

Best Answer

Microchip has a great PDF with simple solutions for converting between 3.3V and 5V, see Tip#7 in http://ww1.microchip.com/downloads/en/DeviceDoc/chapter%208.pdf

enter image description here