<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><span></span></div><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="ltr"></div><div dir="ltr"><div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);">You can pull the open drain output to 3.3V even though the sensor is powered from 5V.  </span><span style="background-color: rgba(255, 255, 255, 0);">I believe 3.3V is also available in the RPi connector.  The RPi has internal pull-ups that you can enable in a per pin basis but these may or may not be strong enough depending on your frequency requirements.</span></div><div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></div><div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);">Good luck!</span></div><div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);">Carl</span></div></div><div dir="ltr"><br>On Jul 11, 2019, at 11:31 AM, Clayton Timmons via DPRGlist <<a href="mailto:dprglist@lists.dprg.org">dprglist@lists.dprg.org</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div><br></div>I'm helping a solar car team with telemetry.   Using a Raspberry Pi with touchscreen on the car's dashboard to display data, log it, and push to the cloud.  Thanks for help from DPRGlist,  James LeRoy pointed me to <a href="http://io.adafruit.com">io.adafruit.com</a> which was very helpful.  We had the example up and running in just a few minutes.  We have a cellular WiFi hotspot with dual antennas on the car.<div><br></div><div>We are in the last few days of work before the multi-day race event.   The last big crunch trying to get everything working.   We've added a rotation sensor on the drivetrain and hope to get distance and speed from it.    </div><div><br></div><div>There was one issue connecting the rotation sensor to the Raspberry Pi.   The rotation sensor is an open collector type device which pulls down to ground when the magnet is sensed.   The rotation sensor works from 4-12v.   We decided to run it off 5v which is available on the Raspberry Pi connector.</div><div>The output of the rotation sensor is normally about 4.7v and the GPIO on the Raspberry Pi is 3.3v  not 5v tolerant.     I was hoping a simple resistor divider could do the trick to interface the sensor to the Raspberry Pi GPIO.   It seemed like the loading of the resistor divider was pulling down the sensor output quite a bit. </div><div><br></div><div><br></div><div>Any recommendations for a really simple circuit to interface the 5v open collector sensor to the Raspberry Pi GPIO?</div><div><br></div><div>Thanks,</div><div><br></div><div>-Clay Timmons-</div><div><br><div><div><br></div></div></div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>DPRGlist mailing list</span><br><span><a href="mailto:DPRGlist@lists.dprg.org">DPRGlist@lists.dprg.org</a></span><br><span><a href="http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org">http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org</a></span><br></div></blockquote></div></body></html>