Bobby123
Posts: 6
Joined: Fri Nov 29, 2019 8:15 pm

Sharp dust sensor

Thu Sep 16, 2021 12:13 pm

I am busy connecting a sharp gp2y1026au0f through a mcp3008 ADC to a pi zero. I have copied the Arduino wiring diagram. Left with a wire that goes to pin 12 digital input on the Arduino. Where does that wire go on the PI? One ground wire, power, analogue and digital.

dbrion06
Posts: 681
Joined: Tue May 28, 2019 11:57 am

Re: Sharp dust sensor

Thu Sep 16, 2021 12:29 pm

I am very uneasy with your question and Mighty Google lent me to https://github-wiki-see.page/m/sharpsen ... ust-Sensor.
Sharp GP2Y1026AU0F is a digital UART s
MCP23008 is an analog to digital converter, and it is very likely useless... (may be there is an analogue output, but not for 26)...
There is a wire, for 26 , to drive LED (a PWM?)

Bobby123
Posts: 6
Joined: Fri Nov 29, 2019 8:15 pm

Re: Sharp dust sensor

Fri Sep 17, 2021 1:56 am

Thanks. All the other documents, interfacing stuff I read showed 4 wires left over after soldering on the resistor....not sure why this one doesn't show the eleconic items. That must mean I don't need to add them?

Bobby123
Posts: 6
Joined: Fri Nov 29, 2019 8:15 pm

Re: Sharp dust sensor

Fri Sep 17, 2021 2:26 am

After rechecking the URL's for interfacing between pi and sharp dust sensor. 100% certain I can't find documents on where to connect the wire that toggles the LED on and Off. It connects to the digital input for Arduino. The link you posted doesn't show where the other electronic components go. Or is it as simple as 5V, gnd and analogue signal only. I can ignore the other 3 wires? Any guidance will be appreciated. ADC is working 100%.

ame
Posts: 3729
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Sharp dust sensor

Fri Sep 17, 2021 6:22 am

According to the data sheet the gp2y1026au0f has a UART (serial interface).

http://www.socle-tech.com/doc/IC%20Chan ... CATION.pdf

There are 6 pins on the connector. Two pins are for power (5V and GND), two are for serial data (Tx, Rx), and two are not connected.

The serial output is 2400 baud at 5V, so you will need a level shifter before connecting it to a Pi input.

There is no need for an ADC for this sensor.

Bobby123
Posts: 6
Joined: Fri Nov 29, 2019 8:15 pm

Re: Sharp dust sensor

Fri Sep 17, 2021 7:38 am

I understand now. Thanks. Will keep you posted on progress.

Bobby123
Posts: 6
Joined: Fri Nov 29, 2019 8:15 pm

Re: Sharp dust sensor

Mon Sep 20, 2021 10:18 am

I feel so stupid. Been so looking at Arduino wiring. Thank you and sorry for the stupid question. Thanks for direction.

Return to “Interfacing (DSI, CSI, I2C, etc.)”