Rotary encoders external pullup

Discuss x0x construction and related issues

Moderators: altitude, adafruit_support_bill, adafruit, phono, hamburgers

Please be positive and constructive with your questions and comments.
Locked
User avatar
djsf
 
Posts: 4
Joined: Mon Jan 21, 2019 4:51 am

Rotary encoders external pullup

Post by djsf »

I've almostly completed building my x0xb0x, everything but the VCF works. After building the digital part and programming the MCU (firmware/x0xb0x.hex from CVS repo, hfuse=0x99, lfuse=0xEE), the sequencer behave strangely switching from mode to mode. Spent several hours reprogramming firmware/playing with fuse settings/trying external oscillator for the MCU, then checked rotary encoders with the ohmmeter.... OMFG!!! Open switch resistance was about 40kOhm! Definitely too low for Atmega pullup (20-50k) to be effective. Then I connected 4 5k pullup resistors to MCU pins 34-37, and now both encoders work ok!

Original Grayhill 25LB22-H encoders are used.

User avatar
antto
 
Posts: 1636
Joined: Thu Apr 15, 2010 3:21 pm

Re: Rotary encoders external pullup

Post by antto »

btw, you'd want to program the bootloader onto the chip
then use the bootloader with a computer to program the firmware
it's also possible to make a "combined" .hex containing both the bootloader and a firmware, and flash it at one go, but that's tricky
i'd suggest you flash the bootloader

Locked
Please be positive and constructive with your questions and comments.

Return to “Making x0x”