Você está na página 1de 10

Gamecube or PSX analog stick in N64 controller

I. Preparations
In order to program the Atmega8 or Attiny24 microcontroller you'll need an ISP programmer for your PC's parallel port, just like this one

It's important that the programmer is S!"2##$compati%le& !hese programmers can %e found on e'ay easily& !he soft(are (e'll %e using is 'ASC)*$A+, %y *CS& A fully$functional demo -ersion .up to 4"' code/ of 'ASC)*$A+, can %e o%tained at http 00(((&mcselec&com0inde1&php2 option3com4content5task3-ie(5id3645Itemid346

II. Setting up BASCOM


Start 'ASC)* and go to 7)ptions8 9 7Programmer8

Select 7S!"2##0S!":## Programmer8 and confirm&

III. Sc ematics !or programming t e microcontroller


!here are 2 different schematics depending on the microcontroller you are going to use Atmega8

Attiny24

;or programming the microcontroller you can also use a %attery& <a-e a look ho( simple and compact the programming circuit for the Attiny24 can %e

,emem%er !he red (ire of the programmer's ri%%on ca%le is al(ays pin 6& In addition on the ISP socket 5 ISP plug there should %e a little arro( indicating pin 6&

I". Programming t e microcontroller


Connect the programming ca%le to the parallel port of your PC and to the ISP socket of your microcontroller& *ake sure you pro-ide po(er to the microcontroller& )ther(ise it can't %e programmed& !he programming ca%le does =)! pro-ide po(er> Start 'ASC)* and open the &%as source code file that fits your microcontroller& Click on the 7Compile8 sym%ol to generate a &he1 file&

After that click on the green 7Program chip8 sym%ol to %ring up the programming (indo(&

<ere you'll find the same green sym%ol again& Push it and the microcontroller (ill %e programmed&

After the microcontroller has %een successfully flashed there is one more thing to do in 'ASC)*& Click on the 7?ock and ;use 'its8 ta% to see a list of programmed and unprogrammed fuse %its& ;or the Attiny24 you ha-e to select 7@i-ide clock %y 8, );;8 and push the 7Arite ;S8 %utton&

Ahen using the Atmega8 your fuse %its should look like this

After that you may close 'ASC)* and unplug the programming ca%le&

". Installing t e microcontroller into #our N64 controller


I assume you'-e already attached your Bamecu%e or PSC analog stick to the stick unit of the =D4 controller& So no( you can finally install the microcontroller& Again, the schematics for the Atmega8 and Attiny24 differ& Atmega8

Attiny24

C Pot and E Pot are the 2 potentiometers of your analog stickF CA, C', EA, E', B=@ 5 +CC can %e o%tained from a connector on the =D4 controller PC'

Eou might ha-e noticed the 7range modifier8 s(itch in the schematics& !his is a%solutely optional& If Pin 6G on the Atmega8 or Pin 6: is dri-en lo( during po(er on, the range of the C$ 5 E$a1is (ill %e slightly higher than usual& !he default range are 6D# steps 0 a1is, the increased range (ill %e 6D8 0 a1is& 6D# steps should %e enough %ut if you need more steps for (hate-er reason you no( kno( (hat to do& Eou can also use the ' %utton of the =D4 controller as range modifier s(itch& Simply attach a (ire to Pin 6H of the C=!$=IS IC&

In that case you'd only need to hold do(n 7'8 (hile turning on your =D4 console to get the e1tended range of 6D8 steps 0 a1is&

"I. $roubles ooting


Problem C$ and E$a1is are s(apped> Solution Simply s(ap the 7C Pot8 5 7E Pot8 (ires&

<elp, up is do(n and do(n is up S(ap the (ires for EA 5 E' or CA 5 C' depending on (hich 0 left is right 5 right is left> a1is is in-erted&

+ersion 6&2 .corrected another error in the Attiny24 programming schematic/ J Kako% Schaefer 2#6# !his guide and the source code files are for personal use only> Ise at o(n risk&

Você também pode gostar