paolol61 wrote: ↑
Wed Jun 27, 2018 7:40 am
Hi thanks for reply , but still the question is where I can connect a second sensor??
I will use the MCP3008 as per the project but can I connect both signal to the pin 7 or I need to use a separate pin ??
So the MCP3008 will connect to the following pins
VDD (Pin 16) wire this to 3.3V
VREF (Pin 15) wire this to 3.3V
AGND (Pin 14) wire this to ground
CLK (Pin 13) wire this to GPIO11 (Pin 23/SCLK)
DOUT (Pin 12) wire this to GPIO9 (Pin 21/MISO)
DIN (Pin 11) wire this to GPIO10 (Pin 19/MOSI)
CS (Pin 10) wire this to GPIO8 (Pin 24/CE0)
DGND (Pin 9) wire this to GROUND
you will then connect the analogue output of the sensor to one of the analouge input pins on the MCP3008, you will need to make sure the output of the sensor is limited to a maximum of 3v, so if the output is 0 to 5v then you will need to use a potential divider to reduce the voltage.