Skip to main content

Here's what a VPN can't protect you from (but you need to use it)

The abbreviation " VPN " has slowly become established among average Internet users, which is certainly good, but the problem is that people have started to see VPN as the ultimate solution to all problems.

What is and how does the proximity sensor in phones work?

What is and how does the proximity sensor in phones work?

The proximity sensor is found in almost all smartphones and has several uses.

He is in charge, among other things, of disabling touches on the screen and turning it off during a call. It was the main application of this sensor in the beginning, and today it is used in many ways. For example, newer phones have an auto-dial option when you hold the phone to your ear while the contact is open, or while reading a message. Many applications use this sensor, e.g. push-up applications where the sensor has the role of counting push-ups by putting the phone under your head and when you do the push-up you get closer to the sensor and it registers it and increases the number by one. Some applications use this sensor to register if the phone is in your pocket and thus prevent accidental unlocking of the phone.

What is and how does the proximity sensor in phones work?

There are many examples, but you are probably wondering how it works?

It is very simple: the proximity sensor emits infrared light (IR - infrared) which is reflected from the object and returned to the photodiode. If no object is nearby, infrared light cannot be reflected and the photodiode does not receive any signal.

However, the infrared beam differs in the color of the surface from which it is reflected, so mistakes were made earlier and the screen was turned on during the conversation. A test was performed with a white, gray, and black surface and the photodiode did not receive a signal when the beam was supposed to bounce off the black surface. This was a problem for those with black hair.

What is and how does the proximity sensor in phones work?

This problem was soon solved by making an "all in one" package of VCNL4020  sensors where IR, photodiode, and ambient light sensor work together.

The light sensor is also present in almost all smartphones and serves to detect ambient light, ie. light reaching the sensor in different conditions. You are probably familiar with the fact that when you turn on the option of automatic adjustment of the screen brightness, the brightness decreases when you go inside and increases when you go outside. This is controlled by this sensor.

The light sensor

Combined with it, the IR and photodiode work perfectly and there are no more errors. The photodiode successfully detects black objects, ie all objects that approach.

That would be the basic principle of the proximity sensor in smartphones. And if you have a phone like this, you can find these sensors somewhere next to the speakers on the front of the phone. When the room is dark, you can see how this sensor lights up when it is active.

Various apps test the sensors on your phone, and one of them is an app for Android devices called Sensor Box you can download it from this link  https://play.google.com/store/apps/details?id=imoblife.androidsensorbox

When you open the app, select Proximity Sensor and test by bringing your hand closer to this sensor.

Izvor: thecodeartist.blogspot.com, Smartphone Proximity Sensing By Jim Toal

Comments

Popular this month

New Google mobile internet saving application - Datally

I wrote an article on how to save internet traffic on an Android device and I suggested the Onavo Extend and Opera Max apps because they were the most popular back then. Meanwhile, Opera Max has been discontinued and Onavo has been completely redesigned and is now a VPN application with the option to save internet traffic. Their compression technology is probably now used by Facebook in its application because they bought Onavo - link . Google has decided to seize the opportunity and "push" with a new application called " Datally ".

SOPA and PIPA are slowly losing support, the protest yielded results

Controversial U.S. anti-piracy laws, known by the acronyms SOPA and PIPA lost the support of eight members of Congress after major protests by the Internet community. Support was denied, among others, by Marco Rubio of Florida, a rising star of the Republican Party, and his party colleague Roy Blunt of Missouri - who were among the signatories of the bills.

How to change IMEI number on Android phone?

IMEI is an abbreviation of "international mobile equipment identity" and each mobile phone should have a unique IMEI number. You cannot change this number with the operator, but you can temporarily change it on your device. It allows the operator to accurately identify your device and thus enable/disable network services. Also, you can use the possibility of changing the IMEI number, at least for a short time, if you know exactly what you want, but I leave those ideas to you because this is an educational article.

Twitter is celebrating its sixth birthday

Exactly six years ago, one of the founders of Twitter posted his first tweet - " just setting up my twttr ". Although the popularity of this service was modest in the first few years, today Twitter has over 500 million users who send tweets, and messages 140 characters long.

Google AI game recognizes and learns what you draw!

Artificial intelligence (AI) is quite popular nowadays and is being used more and more intensively. Google has, I can say, the most developed so far and is available to end-users (at least one part). We had a chance to see how it is integrated into the new Google Assistant that has replaced Google Now.