-2

enter image description here

I got it from my old phone (redmi 3s prime) and was wondering if I could connect it to an Arduino or a raspberry pi ,since I don't know what type of communication protocol it uses.

New contributor
Isanham is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • 1
    yes, you can definitely connect it to the Arduino ... whether you can get useful data from it is another question – jsotola Jan 14 at 2:49
  • If you can a) find the right connector for it, b) find the pinout of that connector, and c) find the communication protocol it uses then yes, you can connect it. Can you use it? Probably not, not without d) understanding how the sensor itself works. For all that you would need a datasheet. Without that datasheet you have absolutely zero chance. – Majenko Jan 14 at 10:15
0

If you want to connect any new chip to any other chip (in this case the microcontroller of the Arduino), the first way to go is the datasheet of that new chip. Chips, that you can buy in a shop, mostly have some kind of product number/ID written on them. Then you can google for it and read in the datasheet, how it needs to be connected and used.

It is different with most parts, that are used in highly integrated and complex devices like a smartphone. These parts are mostly custom made. They often have no writing on them and there is no datasheet for them available (since they were made by the manufacturing company solemly for the manufacturer of the smartphone or for any of the rather small number of customers, that such companies have). With no documentation, your only way to use this sensor would be to reverse engineer it. This can be a very very difficult and complex task, which needs rather professional equipment and very high knowledge. As you are asking this here, I guess, that you don't have such a knowledge (such people normally don't ask such questions, as they already know about the complexity). I myself also cannot state to have this level of knowledge.

Unfortunately you are stuck with throwing the sensor away. It's not worth the hassle of trying to use it.

Your Answer

Isanham is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.