But I'm trying to figure out first why my pull up voltage is 1.4V instead of 3.3V, even when the sensor is not connected.
My guess is that your voltmeter is causing a voltage drop in the resistor because it has a low input resistance. My guess is that you are using an analog multimeter to check the voltage.But I'm trying to figure out first why my pull up voltage is 1.4V instead of 3.3V, even when the sensor is not connected.
I'm using an oscilloscope to see the signal, and it's between 1.4 and 0V. Which is wrong. Without the sensor connected I should see 3.3V at the microcontroller input as it is connected to the 10K pull up resistor.My guess is that your voltmeter is causing a voltage drop in the resistor because it has a low input resistance. My guess is that you are using an analog multimeter to check the voltage.
I haven't covered the detector completely. How do you recommend to cover it?He said he is not using the same components! 10K!
@Xavier Pacheco Paulino did you cover the detector completely?
Max.
Just place your thumb over it!!I haven't covered the detector completely. How do you recommend to cover it?
I'm sorry if I haven't said the issue clearly. The low voltage appears without the sensor connected. It's not the sensor fault then. It's another issue I have to look into now.Not only may ambient light be a cause of the lower voltage, it may well be that the black is also reflecting a fair amount of light. So try it with a non-reflective material right against the sensor package and see what the voltage is with no light at all reflected.It may be that you need to put the reflective material in those ribs, so that there is nothing to reflect between them.
That depends entirely on the value of the load resistor, and if that is indeed 10K, the drop is one volt per hundred micro amps. AND, if any reflected light is hitting the phototransistor then 200 microamps is fairly reasonable. Hence my suggestion of putting the reflective material on the web sections. And my comments that shiny black is a fair reflector. I have done the photo sensor thing a few times, and I have seen some problems. Shiny black is one of them, especially with IR. I didn't pay attention to what wavelength the sensor used, often they are IR.I would measure both sides of the 10K pull up resistor. Curious as to if the LED Emitter is somehow pulling down your 3.3 volt supply. Assuming you are measuring the Vout terminal with a high impedance voltmeter I can see no way a 10 K pull up would measure 3.3V on one side and 1.4 V on the other side which is your Vout.
Ron
I agree but he clearly states:That depends entirely on the value of the load resistor, and if that is indeed 10K, the drop is one volt per hundred micro amps. AND, if any reflected light is hitting the phototransistor then 200 microamps is fairly reasonable. Hence my suggestion of putting the reflective material on the web sections. And my comments that shiny black is a fair reflector. I have done the photo sensor thing a few times, and I have seen some problems. Shiny black is one of them, especially with IR. I didn't pay attention to what wavelength the sensor used, often they are IR.
So my read is he has a 10K resistor hanging out there on 3.3 Volts measuring 1.4 Volts at his Vout. Leaves me wondering? There is no sensor in the circuit so we eliminate that. Beats the heck out of me.I'm sorry if I haven't said the issue clearly. The low voltage appears without the sensor connected. It's not the sensor fault then. It's another issue I have to look into now.
Uh Bill, he solved it.OK, if there is not much current flowing into the 10Megohm input of the scope used for measuring, then either the resistor value is way off, like perhaps 10 meg not ten K, or the scope DC calibration is way off, which is quite possible. Or perhaps the power supply connection is not quite correct. I don't recall any mention of what sort of power supply is involved. A very logical next step is to measure the voltage at the supply end of the resistor and see what it is. That is a very simple thing to do, and it may provide an interesting explanation. So I am asking
Xavier Pacheco Paulino Thread Starter to use the same setup and measure the voltage at both ends of thet 10K ohm resistor, and let us know what it is.