Previous in Forum: Finding a Hidden cams   Next in Forum: Quantum Theory
Close
Close
Close
2 comments
Rate Comments: Nested
Member

Join Date: Oct 2007
Posts: 7

Joystick Interfacing With Micro-Controller

10/23/2007 6:09 AM

hello,

i am final year student. i want to interface microcontroller 89c51 with joystick. can anyone suggest me how joystick can be connected with 89c51?

with regards,

vijay kanse.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 11119
Good Answers: 918
#1

Re: joystick interfacing with microcontrller 89c51

10/23/2007 8:02 AM

Final year at what?

I would suggest you look at the data sheet.

http://www.atmel.com/dyn/resources/prod_documents/doc0265.pdf

Reading that tells me (first page) that the Atmel part lacks analog to digital inputs. I am assuming you are trying to interface an analog joystick, which is essentially two analog pots (typically 100K Ohms). So how did you plan to read an analog signal with digital inputs?

The truth is, you can if you use the PWM output, but this part doesn't have one of those, either!

In fact, the first page states not to use this part for new designs. That means it is at the end of its life!

Why not use something from Microchip that has analog inputs and make life easier rather than trying to put a square block into a round hole? I would have a long talk with your instructor and try to map out a better plan for your project. This chip is not a good fit and your instructor should be able to help you find a better way to do this.

Register to Reply
Anonymous Poster
#2
In reply to #1

Re: joystick interfacing with microcontrller 89c51

10/23/2007 11:28 PM

hello,

first,thank you very much for giving a vey useful reply.

i have seen the link you have mentioned.first, let me clear my project idea.i am going to control two stepper motors.i have not decided yet to use a digital joystick or analog one.

if i want to use a digital joystick then how can i implement it? is it going to be easy?can you give me some detail about digital joystick interfacing with 89c51?because i went to search for that and i didn't got any useful information from that.

about analog joystick i am going to use the idea of the following link.in that instead of PC joystick port ,microcontroller port will be used.

http://www.epanorama.net/documents/joystick/pc_circuits.html#atari_pc_converter

Regarding microchip i talked to my instructor i have to use that chip only because of the availiblity.also let me know which are the microchips that has analog inputs.

with thanks and regards,
vijay kanse

Register to Reply
Register to Reply 2 comments

Previous in Forum: Finding a Hidden cams   Next in Forum: Quantum Theory

Advertisement