im currently trying to interface with an existing device.
For whatever reason I can only find digital signals switching between about 1,8V and 0V.
I´ll have to convert those signals into ones from 0v to 5V
I thought I could simply use NPN PN2222A Transistor in the configuration as shown in my schematic.
(Note that I´m only using the analog pin for debuging purposes, I intend to use a digital one)
The transistor is switching like its supposed to, when I feed GND into the Base I get 0V at A0 as expected.
When I feed 1.8V into the base I only get about 1.2V at A0. I expected it to give me like 4.8V which would be enough to trigger the digitalRead. As of now I actually lowered my signal level instead of lifting it up to 5V.
I´ve played around with all kinds of different values for the pulldown and base resistors but to no avail.
I must have something wrong with my schematic or have some basic misunderstanding about how transistors work.
What am I missing here folks?