Using Flowcode to pgm an atari style joystick
Re: Using Flowcode to pgm an atari style joystick
I can't find the chios. Would either of these work.
anufacturer:
AVAGO TECHNOLOGIES
Newark Part Number:
19M9315
Manufacturer Part No:
ACPL-844-300E
RoHS Compliance : Yes
Description
• Optocoupler
• No. of Channels:4
• Isolation Voltage:5000Vrms
• Optocoupler Output Type:Phototransistor
• Input Current Max:50mA
• Package/Case:16-DIP
• No. of Pins:16
• Operating Temperature Range:-30°C to +100°C
• RoHS Compliant: Yes
AVAGO TECHNOLOGIES
Order Code:
1634758
Manufacturer Part No:
ACPL-247-500E
RoHS : Yes
Description
• OPTOCOUPLER, QUAD, SMD, DC I/P
• Channels, No. of:4
• Voltage, Isolation:3000V rms
• Output Type:Transistor
• Current, Input:5mA
• Voltage, Output Max:80V
• Case Style:SOIC-16
• Temperature, Operating Range:-55°C to +110°C
• Time, Fall:3µs
• Time, Rise:2µs
• Ratio, CTR Min:100%
Jeff
anufacturer:
AVAGO TECHNOLOGIES
Newark Part Number:
19M9315
Manufacturer Part No:
ACPL-844-300E
RoHS Compliance : Yes
Description
• Optocoupler
• No. of Channels:4
• Isolation Voltage:5000Vrms
• Optocoupler Output Type:Phototransistor
• Input Current Max:50mA
• Package/Case:16-DIP
• No. of Pins:16
• Operating Temperature Range:-30°C to +100°C
• RoHS Compliant: Yes
AVAGO TECHNOLOGIES
Order Code:
1634758
Manufacturer Part No:
ACPL-247-500E
RoHS : Yes
Description
• OPTOCOUPLER, QUAD, SMD, DC I/P
• Channels, No. of:4
• Voltage, Isolation:3000V rms
• Output Type:Transistor
• Current, Input:5mA
• Voltage, Output Max:80V
• Case Style:SOIC-16
• Temperature, Operating Range:-55°C to +110°C
• Time, Fall:3µs
• Time, Rise:2µs
• Ratio, CTR Min:100%
Jeff
Re: Using Flowcode to pgm an atari style joystick
I fotnd one of the optos. I need somebody to confirm the specs so I knoy it will work.
ISOCOM
Newark Part Number:
40P0290
Manufacturer Part No:
ISP321-4X
RoHS Compliance : Yes
Description
• OPTOCOUPLER, DIP-16, QUAD, TR. O/P
• Channels, No. of:4
• Voltage, Isolation:5300V rms
• Output Type:Phototransistor
• Current, Input:10mA
• Voltage, Output Max:80V
• Case Style:DIP-16
• Temperature, Operating Range:-30°C to +100°C
• RoHS Compliant: Yes
Jeff
ISOCOM
Newark Part Number:
40P0290
Manufacturer Part No:
ISP321-4X
RoHS Compliance : Yes
Description
• OPTOCOUPLER, DIP-16, QUAD, TR. O/P
• Channels, No. of:4
• Voltage, Isolation:5300V rms
• Output Type:Phototransistor
• Current, Input:10mA
• Voltage, Output Max:80V
• Case Style:DIP-16
• Temperature, Operating Range:-30°C to +100°C
• RoHS Compliant: Yes
Jeff
Re: Using Flowcode to pgm an atari style joystick
Could someone please review this wiring diagram and tell me why it doesn't work.
Problem 1 On the encoder side of the optocupler power goes to terminal but does not pass through to the ground when a signal is present. No signal is picked up and sent to the encoder.
Problem 2 On the signal/ joystick side of the optocoupler any signal from the joystick (up, down left,right) will send a signal to the optocoupler at all the positions. We can't differentiate between signals. Is this a grounding issue? All grounds from the optocoupler are going back to the ground wire from the joystick and the ground from the multiprogrammer board.
Problem 1 On the encoder side of the optocupler power goes to terminal but does not pass through to the ground when a signal is present. No signal is picked up and sent to the encoder.
Problem 2 On the signal/ joystick side of the optocoupler any signal from the joystick (up, down left,right) will send a signal to the optocoupler at all the positions. We can't differentiate between signals. Is this a grounding issue? All grounds from the optocoupler are going back to the ground wire from the joystick and the ground from the multiprogrammer board.
- Attachments
-
- Optocoupler output circuit
- opt%003F_2.gif (93.21 KiB) Viewed 9331 times
Re: Using Flowcode to pgm an atari style joystick
i'm having trouble getting input from my digital atari 2600 compatible control into my PIC chip. I have tried setting up an e-block proto board two different ways. When set up the first way (as seen at the top of the ipeg) each position on the stick gives the same signal to each slot on the screw terminal.-no signal differentiation. Signal is picked up by PIC and is passed to the output with no signal differentiate. When set-up the second way (as seem on the bottom of the jpeg) each position on the stick gives a different signal to the screw terminal, but no signals go through the PIC.
Does anybody here have any idea of what is going on and how I can fix it?
Thanks ,
Jeff
Does anybody here have any idea of what is going on and how I can fix it?
Thanks ,
Jeff
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Using Flowcode to pgm an atari style joystick
Hello
It is a little hard to work out what could be going wrong here as we only see a small portion of the schematic.
Here is a schematic showing a PIC and a PS2 controller
http://www.curiousinventor.com/guides/ps2
And here is another good looking guide.
http://www.gamesx.com/controldata/psxcont/psxcont.htm
Neither seem to be using opto isolators, diodes or resistors between the controller and the chip in their design.
It is a little hard to work out what could be going wrong here as we only see a small portion of the schematic.
Here is a schematic showing a PIC and a PS2 controller
http://www.curiousinventor.com/guides/ps2
And here is another good looking guide.
http://www.gamesx.com/controldata/psxcont/psxcont.htm
Neither seem to be using opto isolators, diodes or resistors between the controller and the chip in their design.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Using Flowcode to pgm an atari style joystick
I'm not planning on connecting the PIC directly to the Playstation 2. I want to connect to a special keyboard encoder that allows me to use it on either a PC or most previous and current game consols including the PS2. So, I need something on PIC out to act as physical switches to be seem by the encoder. The issue I need help with is getting the PIC on the multi programer to recognize five different switches from the atari 2600 digital joystick. I can only get the PIC to read one unique switch. All of the others are seem as the same switch.
Jeff
Jeff
Re: Using Flowcode to pgm an atari style joystick
I'm trying to connect an Atari 2600 compatible digital joystick to a MatrixMultimedia PICmicro MCU Multiprogrammer and Development board EB006-00-5 through a EB002 Screw terminal Board. I'm using a PIC 16F877A-I/P on the board. I found a project that uses a PIC to make a video game that uses two Atari joysticks for player inputs called PIC Pong I made this circuit on a standard breadboard omitting player two and video output. Then I connect it to the screw terminal. When I test the set up with a multimeter I do get a drop when I push the stick in every direction or press the fire button. When set up like PONGSCH.GIF (as seen on the joytoPIC.ipeg) each position on the stick gives the same signal to each slot on the screw terminal.-no signal differentiation. Signal is picked up by PIC and is passed to the output with no signal differentiate. When set-up the second way (as seem on the bottom of the joytoPIC.jpeg) each position on the stick gives a different signal to the screw terminal, but no signals go through the PIC.
Does anybody here have any idea of what is going on and how I can fix it?
Thanks Jeff
Does anybody here have any idea of what is going on and how I can fix it?
Thanks Jeff
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Using Flowcode to pgm an atari style joystick
Hello
The PIC can detect two kinds of signals. Digital and Analogue.
Digital signals can be represented as a voltage. On a standard 5V PIC a voltage over around 2.5V represents a logic 1. Anything below this should be represented by a logic 0 but there is a bit of a no mans area in the middle that should be avoided.
Analogue signals require the PIC to have an onboard A to D converted and then have special analogue capable pins. The analogue pins are read by performing a routine to sample the data (eg in Flowcode you would use the ADC component to do this). The voltage is converted into a 8-bit or 10-bit signal depending on your device and the routines you call in Flowcode. An 8-bit number would have 0 representing 0V and 255 representing 5V.
This should help you to get to the bottom of why the voltages are changing but not the signals going into the PIC device.
Also note that the screw terminal board has 220R resistors on each input therefore your 1K resistors may not be needed.
As a final suggestion if you are using breadboard to prototype your circuit then please be aware that often the power lines have a break in them half way which will need to be linked across. This may be stating the obvious but it has cought me out before.
The PIC can detect two kinds of signals. Digital and Analogue.
Digital signals can be represented as a voltage. On a standard 5V PIC a voltage over around 2.5V represents a logic 1. Anything below this should be represented by a logic 0 but there is a bit of a no mans area in the middle that should be avoided.
Analogue signals require the PIC to have an onboard A to D converted and then have special analogue capable pins. The analogue pins are read by performing a routine to sample the data (eg in Flowcode you would use the ADC component to do this). The voltage is converted into a 8-bit or 10-bit signal depending on your device and the routines you call in Flowcode. An 8-bit number would have 0 representing 0V and 255 representing 5V.
This should help you to get to the bottom of why the voltages are changing but not the signals going into the PIC device.
Also note that the screw terminal board has 220R resistors on each input therefore your 1K resistors may not be needed.
As a final suggestion if you are using breadboard to prototype your circuit then please be aware that often the power lines have a break in them half way which will need to be linked across. This may be stating the obvious but it has cought me out before.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Using Flowcode to pgm an atari style joystick
I'm not able to differentiate between each digital inputs. I even tried using individual inputs thinking the digital joystick might be the issue. No luck. Is there a schematic of a matrix multimedia project using a screw terminal I can look at to see where my mistake was made?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Using Flowcode to pgm an atari style joystick
Hello
The schematic for the EB002 terminals board is available in the datasheet in the datasheet section of our website.
You could try moving those 100K pull up resistors to be pull downs instead?
Are the keys multiplexed? this could exaplain why you are having problems differentiating the signals.
The schematic for the EB002 terminals board is available in the datasheet in the datasheet section of our website.
You could try moving those 100K pull up resistors to be pull downs instead?
Are the keys multiplexed? this could exaplain why you are having problems differentiating the signals.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: Using Flowcode to pgm an atari style joystick
I tried setting up the switches going into the screw terminal with 10k pull-down resistors.(monotoscrew.jpg) I get separate signals, but they don't appear to be going into the PIC. Is 10k too much resistance for the screw terminal?
- Attachments
-
- monotoscrew.jpg (65.33 KiB) Viewed 9067 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Using Flowcode to pgm an atari style joystick
Hello
I see you have 220K resistors are these the resistors on the screw terminal board? If so then they are 220R resistors. Otherwise of 220K is correct to your design then I suggest you remove them.
The 10K pull down resistors should be fine to give you a logic 0 or 1 when the switch is pressed.
How are you reading the switches? It might be easy if you simply read the entire port connected to the screw terminal E-Block and then output the entire byte to a port connected to a LED E-Block.
I see you have 220K resistors are these the resistors on the screw terminal board? If so then they are 220R resistors. Otherwise of 220K is correct to your design then I suggest you remove them.
The 10K pull down resistors should be fine to give you a logic 0 or 1 when the switch is pressed.
How are you reading the switches? It might be easy if you simply read the entire port connected to the screw terminal E-Block and then output the entire byte to a port connected to a LED E-Block.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel