Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Joystick with your own hands. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Computers

Comments on the article Comments on the article

In this short article, I will try to present the information necessary to understand the principle of operation of a conventional analog joystick connected to a computer game port. A standard game port located on the sound card serves analog signals X1, Y1, X2, Y2 and discrete signals B1, B2, B3, B4. With the help of analog signals, data on the deviation of the joystick handle are transmitted, with the help of discrete signals, data on the pressing of the buttons of the joystick.

Thus, initially the game port was designed to connect two two-button joysticks. But as a rule, one joystick and additional devices are connected.

In this case, the analog axes are distributed as follows:

X1 - moving the handle back and forth (pitch)

Y1 - move the handle left-right (roll)

X2 - pedal movement

Y2 - moving the engine control handle - ORE (traction)

The position of the handle, throttle and pedals is determined using 2-ohm potentiometers: the minimum resistance is the extreme left (upper) position, the maximum is the extreme right (lower) position. In principle, you can use other potentiometers, but then the joystick will have to be accurately calibrated. The buttons are connected to ground. Instead of transmitting data on the position of the throttle, the XXNUMX signal can be used to transmit data on the position of the hut - view switch. This is for analog devices. The so-called digital game devices transmit data on the position of the handle, throttle, pedals, hat and buttons using digital protocols using discrete signals from the game port. The most common game port function extensions and digital interface implementations will be described separately.

Joystick with your own hands. Connector DB15 female, view from the side of the contacts
ContactSignalContactSignal
1
2
3
4
5
6
7
8
+ 5V
B1
X1
GND
GND
Y1
B2
+ 5V
9
10
11
12
13
14
15
+ 5V
B3
X2
GND
Y2
B4
+ 5V

To connect gaming devices, use a DB15 type connector - "mother" on the sound card and "male" on the cable going to the gaming devices. Above is its pinout (DB15 female connector, view from the side of the contacts). Since the game port connector is often combined with the MIDI connector, pins 8, 12, and 15 may have a different purpose. Therefore, it is better to take power and ground from 1 and 9 connector pins. Below is a diagram of the simplest analog game device, consisting of a four-button joystick, ORE and pedals. Instead of variable resistors, optocouplers can be used - an LED and a photoresistor. Such a joystick is called an optical joystick and most players prefer optical joysticks.

Joystick with your own hands. Joystick circuit

Author: Vladimir Klimus; Publication: cxem.net

See other articles Section Computers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

We are afraid of snakes and spiders from birth 26.10.2017

Even small children, who know almost nothing about the world around them, react nervously to pictures of snakes and spiders.

Very, very many of us are afraid of snakes and spiders - albeit not to the point of immediate fainting, but still. However, where does arachnophobia with ophidiophobia (or fear of snakes) come from? Someone believes that we learn to be afraid of spiders and snakes while we grow up, that is, these fears are acquired. Someone, on the contrary, believes that both are innate features of the psyche. On the one hand, it seems that everything is quite simple to find out here: you need to analyze when ophidiophobia and arachnophobia manifest themselves in the process of growing up.

And such experiments were repeatedly carried out: the children were shown images, among which there were pictures with spiders and snakes, and they watched the reaction. If a child noticed a dangerous object faster than something peaceful and harmless, it means that a mental program is already working in him, instructing him to be afraid of these creatures. But such studies usually involve quite large children, so that doubt inevitably arises whether the fear of snakes and spiders is really innate in them, or whether they have already learned it.

Psychologists from the Max Planck Institute for Human Brain and Cognitive Research, the University of Vienna and the University of Uppsala have found a way to solve this mystery. And they solved it simply - with the help of six-month-old babies. At this age, you should not expect from a child that he managed to learn something about spiders and snakes - he has not yet learned the world around him so well. Children were shown pictures of spiders or flowers in one version, or snakes or fish in another, and psychological reactions to the picture were assessed by changes in pupil size. Pupils are known to dilate when aroused, when we experience strong emotions and stress. At pictures of spiders and snakes, children's pupils noticeably dilated; in other words, even very young children can be worried about snakes and spiders.

At the same time, it is known from earlier studies that young children are not afraid of bears, rhinos, or any other potentially dangerous animals. Apparently, the fear of snakes and spiders is "sewn" into our brains by evolution. Obviously, the whole point is that once upon a time the ancestors of people for a very long time lived side by side with such snakes and spiders, which were really worth fearing. As for the larger predators, compared to snakes and spiders, they probably did not annoy the ancient great apes so much and not for so long.

Other interesting news:

▪ Smartphones against poachers

▪ Viltrox AF 35/1.8 Z full frame lens

▪ New LDO stabilizer

▪ 25 inch nanotube TV

▪ Nanoparticles harm crops

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Mobile communications. Article selection

▪ article Electric stoves from improvised means. Tips for the home master

▪ article What are nails made of? Detailed answer

▪ article Thyme Kochi. Legends, cultivation, methods of application

▪ article Electrical insulating materials. Main parameters. Encyclopedia of radio electronics and electrical engineering

▪ article Field-effect transistors of the KP504 series. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:




Comments on the article:

Valery
Please tell me which optocouplers are suitable and how to connect the "hut"?


All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024