fromScratchEd / ShrimpKey_rev2

Other
3 stars 2 forks source link

Make all available pins available as inputs #1

Closed sdmeijer closed 10 years ago

sdmeijer commented 11 years ago

Although at previous testing some pins had strange behavior, we should try to get all pins (except 2 for V-USB and 1 for LED) available.

cefn commented 11 years ago

Explored by pull #22 but fix to be verified in the real world ( @sdmeijer experienced previous problems with some of these pins, so we may need to verify and troubleshoot in detail)

sdmeijer commented 11 years ago

Did some testing on other pins. Used pin 2,4 and 5 for V-USB and pin 13 for LED. Tried pin 3, 6-12, A0-A5.

When adding pin A3 and/or A4 the keys associated to these pins will sometimes be triggered automatically. So pins 3, 6-12, A0-A2 & A5 work perfectly together. Making a total of 12 available pins (atm).

sdmeijer commented 11 years ago

See issue #13: I've added pin 5 to the list of available pins and this one also works. Total count = 13. According to my testresults on A3 and A4, I think this is the highest possible no. of pins.

Will test it on another Shrimp to be sure...

sdmeijer commented 11 years ago

Tested it again. Found a short circuit on my testboard (I made testboard with all the 22M resistors and connectors) and that short circuit is in the connectors for A3 and A4. Rewired (and ommitted this 2 connectors) and now everything works.

So... Pins 3, 5-12, A0-A5 are all available. 15 pins in total!!! (2 & 4 = V-USB, 13 = LED)

cefn commented 11 years ago

Yay, I thought there must have been just a temporary problem here, I couldn't figure why any pins wouldn't be able to run as digital inputs for this application. Great success!

sdmeijer commented 10 years ago

See #23, when USBaspLoader works, then we lose 1 pin, but get 2 pins extra!

sdmeijer commented 10 years ago

Yes, 16 pins available for input!! 0, 1, 3, 4, 5, 8, 9, 10, 11, 12 and analog pins A0, A1, A2, A3, A4, A5 (numbered as 14, 15, 16, 17, 18, 19).

sdmeijer commented 10 years ago

See #23, it's possible to free up two more pins.

So, maybe 17 pins is possible.