Im following this website using a different sensor and my output is too low for the GPIO so i don't know whether it effects anything as the program could not work.Can a raspberry pi accept input data if the input voltage is 42 mv when is required is 3.3v?So is it too low that it does not detect any input from the sensor?
-
What sensor outputs data at 0.042volts? What is the input voltage? What is this sensor? :)Piotr Kula– Piotr Kula2014年02月20日 12:29:01 +00:00Commented Feb 20, 2014 at 12:29
-
Following which website? For sure if 0V is low and 3V is high, then 0.04V is low, the same as 0V!francis– francis2014年02月20日 13:12:14 +00:00Commented Feb 20, 2014 at 13:12
-
You'd need something like 2.6V to trigger a HIGH.Gerben– Gerben2014年02月20日 19:31:08 +00:00Commented Feb 20, 2014 at 19:31
-
2Is the 42 mV a logic high for this sensor? If so, what is a logic low? Does the thing have an open collector output? In that case, you just need a pull-up resistor to 3.3 volts to get a proper high level. More details on the sensor are required.Peter Bennett– Peter Bennett2014年02月20日 19:52:59 +00:00Commented Feb 20, 2014 at 19:52
2 Answers 2
To elaborate a little bit and provide a possible solution to the issue - you could use a transistor with the collector attached to the 3v3 outlet of the Pi, the emitter attached to your sensing GPIO and the base attached to your sensor. That way, the sensor will trigger the transistor 'on' with 0.042V, allowing current to flow from the 3v3 to the GPIO and producing the desired result
-
-
2Depends on what transistor you usenagyben– nagyben2014年02月20日 13:23:17 +00:00Commented Feb 20, 2014 at 13:23
-
@exantas: you are suggesting an emitter follower - an emitter follower has the emitter about 0.7 volts below the base, so won't help here. I think the OP has to tell us what the sensor is before anyone can give useful advice.Peter Bennett– Peter Bennett2014年02月20日 19:48:01 +00:00Commented Feb 20, 2014 at 19:48
-
Is the 42 mV a logic high for this sensor? If so, what is a logic low? Does the thing have an open collector output? In that case, you just need a pull-up resistor to 3.3 volts to get a proper high level. More details on the sensor are required.Peter Bennett– Peter Bennett2014年02月20日 19:50:30 +00:00Commented Feb 20, 2014 at 19:50
Are we talking about digital input here? Then, 42 mV don't count as a high.
-
Ya its digital input thnx.Milla Kurtney– Milla Kurtney2014年02月20日 08:38:57 +00:00Commented Feb 20, 2014 at 8:38
-
1See specs. here: mosaic-industries.com/embedded-systems/microcontroller-projects/…ssavec– ssavec2014年02月20日 09:38:27 +00:00Commented Feb 20, 2014 at 9:38
-
42 mV counts as a high if the designer says it does. The question is not about whether or not the device is sending a signal, but how to configure the Pi to properly interpret that signal.cjs– cjs2017年04月07日 00:40:03 +00:00Commented Apr 7, 2017 at 0:40