Atmega328p emulating an N64 controller quadrature encoder

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • Arduino Nano GPIO goes through a logic level converter before outputting to the N64 controller's joystick port
    There are 4 pins on the joystick port( original n64 controllers use quadrature encoders ) with 2 pins representing the X axis and the other 2 representing the Y axis.
    If you send pulses to the X axis pins in the form of encoder pulses the controller counts them as steps in one direction. And to stop moving in that direction the controller requires the same # of pulses again but now the phase of them needs to be switched.
    2 Sketches are on Github. One is in Arduino Library code and the other is in AVR baremetal so it can be built in Microchip Studio ( Why did the name change from Atmel Studio to Microchip ? )
    github.com/Bam...

Комментарии • 3

  • @deimoz1001
    @deimoz1001 2 года назад +1

    Saludos, mas tutoriales sobre esto por favor, excelente video

  • @kinetic_code
    @kinetic_code 2 года назад

    Hey! I've just been looking into a similar project, I was wondering if it was possible for you to upload the Arduino sketch, it would be a great learning resource for me and be highly appreciated! If not, no worries, great work!

    • @theengineer9910
      @theengineer9910  2 года назад

      Added a link to github in the description. I wired the controller's D-PAD outputs to the arduino so the DPAD acts as the joystick and since barely any n64 games use the dpad its not a problem.