![]() Examining the board – many sensors bought for Raspberry Pi projects arrive mounted on a simple integrated circuit, this is often labelled with hints on how to connect itĭigital output pin on a sensor (GND and VCC also need to be connected to the Pi).Reading the datasheet of device – even the most basic sensors typically have a datasheet describing their characteristics and how to connect them.If you’re not sure on the sensor’s output, try the following: ![]() Unless the manufacturer explicitly states this is ok, it might cause problems with readings depending on in the internals of the sensor. While it should be possible to connect multiple outputs from a single sensor to the Raspberry Pi, I don’t recommend doing it. SPI and I2C are more advanced communication protocols that allow two way communication with the sensor device (you can send it commands from your code, as well as read back data). For more detail and alternative pins that you can use, check out the pin diagram here. GPIO pin numbering does not match the physical numbering on the Raspberry Pi board. Raspberry Pi GPIO digital input pins (for connecting sensors) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |