You are not logged in.

Top-rated users
1

Disco_Stu

(140)

2

mew

(134)

3

puLse2D

(111)

4

Nibbler

(80)

5

Killertamagotchi

(66)

6

Okami

(63)

7

Even

(59)

8

xfx9500

(53)

latest achievements

Visit our website ten times.

juxan (Jun 8th 2024, 12:05am)

Dear visitor, welcome to Pmod.de. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "ShinyRayquaza" started this thread

Posts: 78

Reputation modifier: 6

  • Send private message
750

1

Tuesday, January 26th 2010, 11:36am

PSX/GC Analogstick im N64 Controller

Wer mal sowas bauen möchte sollte mal hier nachschauen:
http://nfggames.com/forum2/index.php?topic=3574.msg24566#msg24566
[img width=300]http://shinyrayquaza.bplaced.net/filemanager/grafik/banner.png[/img]Games Never Die! < http://gamesneverdie.de.be/ >

theGamer

Professional

(11)

Posts: 398

Reputation modifier: 1

  • Send private message

2

Tuesday, January 26th 2010, 12:15pm

Re: PSX/GC Analogstick im N64 Controller

Hi,
das ist alles schön aber der kerl ladet die Firmware vom PIC nicht hoch.
Also die vom Microcontroller
**** COMMODORE 64 BASIC V2 ****
64K RAM SYSTEM 38911 BASIC BYTES FREE
FOLLOW @deniz_koekden on Twitter... @deniz_koekden
Ready.



  • "ShinyRayquaza" started this thread

Posts: 78

Reputation modifier: 6

  • Send private message
750

3

Tuesday, January 26th 2010, 12:33pm

Re: PSX/GC Analogstick im N64 Controller

Im Codeblock ist sein Code

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
$regfile = "m8def.dat"

'8MHz = highest internal frequency of the ATMega8
$crystal = 8000000

'configuring the ADC, its resolution is 10bit per channel
Config Adc = Single , Prescaler = Auto , Reference = Avcc
Start Adc

'pins for the output of the X-axis
Config Portb.1 = Output
Config Portb.2 = Output

'pins for the output of the y-axis
Config Portb.3 = Output
Config Portb.4 = Output

'variables in which the 10bit value of the ADC will be stored
Dim X As Integer , Y As Integer

'init X axis. the value is divided by 2 because otherwise it's too big
X = Getadc(1)
Shift X , Right , 2 , Signed

'init Y-axis
Y = Getadc(2)
Shift Y , Right , 2 , Signed

'variables to store the old X and Y values for comparison in the next round
Dim Oldx As Integer , Oldy As Integer
Oldx = X
Oldy = Y

'rotating the xwheel and ywheel bytes 1 step to the left or the right is the
'same as turning the optical wheels in the N64 stick 1 step clockwise or
'counter-clockwise.
'by fixating on two bits of these bytes (let's say xwheel.0 and xwheel.1) and
'then rotating the byte 1 step to the left or the right, you'll get the new
'gray code on the these two bits (e.g. xwheel.0=A , xwheel.1=B)
Dim Xwheel As Byte , Ywheel As Byte
Xwheel = &B11001100
Ywheel = &B11001100

Dim I As Byte

'in these two variables we're storing the number of steps we have to process for each axis
Dim Xsteps As Integer , Ysteps As Integer



'main loop:
'-------------
Do

'get and store X-value; resolution/2
X = Getadc(1)
Shift X , Right , 2 , Signed

'get and store X-value; resolution/2
Y = Getadc(2)
Shift Y , Right , 2 , Signed

'calculate the number of steps we have to process
Xsteps = X
Xsteps = Xsteps - Oldx
Ysteps = Y
Ysteps = Ysteps - Oldy


'stay in while-loop until all steps of the X- and Y-axis are processed
While Xsteps <> 0 Or Ysteps <> 0

   'steps of the x-axis
   If Xsteps > 0 Then
      Rotate Xwheel , Left , 1
      Xsteps = Xsteps - 1
   Elseif Xsteps < 0 Then
      Rotate Xwheel , Right , 1
      Xsteps = Xsteps + 1
   End If

   'steps of the y-axis
   If Ysteps > 0 Then
      Rotate Ywheel , Right , 1
      Ysteps = Ysteps - 1
   Elseif Ysteps < 0 Then
      Rotate Ywheel , Left , 1
      Ysteps = Ysteps + 1
   End If

   'write the new gray codes for both axis in I
   I.1 = Xwheel.1
   I.2 = Xwheel.2
   I.3 = Ywheel.1
   I.4 = Ywheel.2
   '...and then write I to port B
   Portb = I

   'we have to wait a little bit for processing the next steps because otherwise
   'it would be too fast and the IC in the N64 controller would skip some steps
   Waitus 10

Wend

'store the values of both axis for comparison in the next round
Oldx = X
Oldy = Y

Loop
End


Und unter seinem Beitrag ist auch der Download

http://nfggames.com/forum2/index.php?action=dlattach;topic=3574.0;attach=532
[img width=300]http://shinyrayquaza.bplaced.net/filemanager/grafik/banner.png[/img]Games Never Die! < http://gamesneverdie.de.be/ >

Bammel

Administrator

(27)

Posts: 3,460

Reputation modifier: 13

  • Send private message

4

Tuesday, January 26th 2010, 2:19pm

Re: PSX/GC Analogstick im N64 Controller

GEIL das ist ja mit nem ATmega!
und dann noch in BASCOM programmiert!

theGamer

Professional

(11)

Posts: 398

Reputation modifier: 1

  • Send private message

5

Tuesday, January 26th 2010, 3:35pm

Re: PSX/GC Analogstick im N64 Controller

Hi,
oha das hab ich noch nicht gesehen :D
**** COMMODORE 64 BASIC V2 ****
64K RAM SYSTEM 38911 BASIC BYTES FREE
FOLLOW @deniz_koekden on Twitter... @deniz_koekden
Ready.



bx61

Professional

(10)

Posts: 694

Reputation modifier: 7

  • Send private message

6

Tuesday, January 26th 2010, 3:56pm

Re: PSX/GC Analogstick im N64 Controller

Ich hatte das schonmal gesehen aber dann gab es die codes nicht zu haben.

Disco_Stu

Administrator

(140)

Posts: 5,912

Reputation modifier: 22

  • Send private message

7

Tuesday, January 26th 2010, 10:50pm

Re: PSX/GC Analogstick im N64 Controller

hatte sowas auch mal angefangen ^_^
Disco_Stu has attached the following image:
  • IMG_1218.jpg

Donking2000

Pmod Elite User

(10)

Posts: 2,426

Reputation modifier: 12

  • Send private message
750

8

Wednesday, January 27th 2010, 7:47am

Re: PSX/GC Analogstick im N64 Controller

Sieht doch schon gut aus =).
Ich habe mal ein PS Controller so umgebaut, das der Analogstick links war und das Steuerkreuz wo der Stick war.
Hatte auch hier einen Thread, den ich grad nicht finde :-D
Gruß
[size=large]Donking2000[/size]

:peach: :luigi: :mario:

:mod:

Bammel

Administrator

(27)

Posts: 3,460

Reputation modifier: 13

  • Send private message

9

Wednesday, January 27th 2010, 10:43am

Re: PSX/GC Analogstick im N64 Controller

wieviel volt kommt an dem pad an? 3,3?

Disco_Stu

Administrator

(140)

Posts: 5,912

Reputation modifier: 22

  • Send private message

10

Wednesday, January 27th 2010, 5:31pm

Re: PSX/GC Analogstick im N64 Controller

jepp, vcc=3,3V

11

Wednesday, January 27th 2010, 5:38pm

Re: PSX/GC Analogstick im N64 Controller

kann mir wer helfen weis wer ob der Willem EPROM Programmer Version. PCB50 von www.sivava.com kompatibel ist zu dem ATmega 8L-8PU oder ATmega 8-16PU ist bzw mit dem MCS 51 / AVR + PLCC44 Adapter Version.2 kompatibel ist?

den die beiden Controler bekommt man bei ebay.de schon für 1,35€
und die Version mit dem NGC Analogstick scheint ja einfacher zu nachmachen als die Version mit dem PS Analogstick ^^

theGamer

Professional

(11)

Posts: 398

Reputation modifier: 1

  • Send private message

12

Wednesday, January 27th 2010, 6:38pm

Re: PSX/GC Analogstick im N64 Controller

Hi,
also ich hab mir extra zum Programmer noch den das Evaluationsboard von Pollin gekauft das geht 1A
sogar mit ISP und JTAG!
PS 8Mega schon bestellt
**** COMMODORE 64 BASIC V2 ****
64K RAM SYSTEM 38911 BASIC BYTES FREE
FOLLOW @deniz_koekden on Twitter... @deniz_koekden
Ready.



Bammel

Administrator

(27)

Posts: 3,460

Reputation modifier: 13

  • Send private message

13

Wednesday, January 27th 2010, 7:30pm

Re: PSX/GC Analogstick im N64 Controller

bei myavr.de gibt es gute programmierer. ansonsten ist so eine programmierer wenn man einen parallel port hat kein problen sind meines wissens nach nur ein paar widerstände.

ich wollte das ganze eigentlich heute mal testen. aber musst mein notebook demontieren. udn dnan hatte ich da nur probleme mit. aber nun läuft er 1A.
morgen werde ich das ganze mal aufbauen.

14

Wednesday, January 27th 2010, 7:43pm

Re: PSX/GC Analogstick im N64 Controller

also geht das mit dem Programmer den ich z.B. habe ?_?
weil ein N64 Analogstick der hin ist habe ich ja und den kann ich ja nehmen die NGC Sticks bekommst man ja relative günstig ^^

Bammel

Administrator

(27)

Posts: 3,460

Reputation modifier: 13

  • Send private message

15

Wednesday, January 27th 2010, 9:52pm

Re: PSX/GC Analogstick im N64 Controller

zur not kannst auch nen nunchuk stick nehmen bekommst ja den nunchuk schon für 17Euronen beim mediamarkt.

Disco_Stu

Administrator

(140)

Posts: 5,912

Reputation modifier: 22

  • Send private message

16

Thursday, January 28th 2010, 8:42am

Re: PSX/GC Analogstick im N64 Controller

währ eh mal ein schönes Projekt: N64 Controller, oben hochglanz weiß, unten matt weiß und dazu dann nen Wii Analog stick ;-)

Bammel

Administrator

(27)

Posts: 3,460

Reputation modifier: 13

  • Send private message

17

Thursday, January 28th 2010, 10:52am

Re: PSX/GC Analogstick im N64 Controller

jaaa das würde zu nem Wii64 mod passen :D

18

Thursday, January 28th 2010, 11:56am

Re: PSX/GC Analogstick im N64 Controller

ach ne Idee aber nen Gamecube Controller von nem Dritthersteller bekommt man ja schon für 7€ ^^

hmm aber kann wer sagen ob der Programmer den in hab den Amtel Controller beschreiben kann ? Weil zum einen Farblich passt ja der NGC stick gut zum Gehäuse des N64 Pad und das erneuern ist ja auch dann einfache ^^

Bammel

Administrator

(27)

Posts: 3,460

Reputation modifier: 13

  • Send private message

19

Thursday, January 28th 2010, 11:59am

Re: PSX/GC Analogstick im N64 Controller

sry jungs ich kann mich nicht durchringen meinen nunchuk-stick zu opfern. wobei der perfekt reinpassen würde sogar der µC hätte noch platz wenn man ihn in smd nimmt.

ich würde auchnoch empfehlen einen 100n kondensator dich an den zweiten GND und VCC pins anzuschließne gerade weil hier der AD-Wandler genutzt wird.

@thegamer: hast du die L variante bestellt? diese läuft nämlich bei 3,3V besser

20

Thursday, January 28th 2010, 12:09pm

Re: PSX/GC Analogstick im N64 Controller

die L Variante reicht dafür ja auch der schlägt ja auch nur mit 8Hz der andere hat doppelt so viel was man aber dafür nicht wirklich benötigt ^^

Personal Box

Lexikonmoderator

MarcoEagleEye

Administratoren

Disco_Stu

James

Bammel

Super Moderatoren

Lemi