-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not probe / connect with SPS30. #7
Comments
HI
The fan will not turn on until you start measurement. The error is very basic.. it does not get a response from the SPS30
How did you connect all the 5 wires?
What interface did you select in the sketch for the SPS30?
Regards,
Paul
Van: Yuki Machida <notifications@github.com>
Verzonden: woensdag 27 november 2019 14:12
Aan: paulvha/sps30 <sps30@noreply.github.com>
CC: Subscribed <subscribed@noreply.github.com>
Onderwerp: [paulvha/sps30] could not probe / connect with SPS30. (#7)
Hi,
Does the fan turn on no matter what? It was working, and tried to upload new code and now it doesnt work. I hadn't touched code in a while so something may have changed.. I need to debug this. I get:
Trying to connect
could not probe / connect with SPS30.
Program on hold
Should the fan turn on once plugged in, or is it after the mcu communicates with the sps?
I'm tripple checking the rx tx pins. I'm setting Serial1 and defining RX TX as I'm using an ESP32.
On pin 17 16.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F7%3Femail_source%3Dnotifications%26email_token%3DAD2GBPDC2JHRDRHM7W5DK73QVZW3NA5CNFSM4JSGTDP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H4NBVOQ&data=02%7C01%7C%7C48bb0fd1805b4fa334a408d7733b7143%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637104571442322473&sdata=3uynL118AO0Lbqf9FLAKZHHUVTSZE9kTmwXi9cfvBuc%3D&reserved=0>, or unsubscribe<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPDX4GI3J2OZ6ETWACLQVZW3NANCNFSM4JSGTDPQ&data=02%7C01%7C%7C48bb0fd1805b4fa334a408d7733b7143%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637104571442332483&sdata=xnHM75QMOgJYEjdQRMTBydWpI1v2ksloZ9vv5z%2BbRo4%3D&reserved=0>.
|
Hi, so I connected
I've tried with SERIALPORT1 and SERIALPORT2 also tried setting the pin rx tx to 0. |
Will try .. but Its a custom board now and yes supplied from 5v usb. |
If it worked before on Serial1 did you change ???
/////////////////////////////////////////////////////////////
/* define RX and TX pin for softserial and Serial1 on ESP32
* can be set to zero if not applicable / needed */
/////////////////////////////////////////////////////////////
#define TX_PIN 26
#define RX_PIN 25
Van: Yuki Machida <notifications@github.com>
Verzonden: woensdag 27 november 2019 15:43
Aan: paulvha/sps30 <sps30@noreply.github.com>
CC: paulvha <paulvha@outlook.com>; Comment <comment@noreply.github.com>
Onderwerp: Re: [paulvha/sps30] could not probe / connect with SPS30. (#7)
Will try .. but Its a custom board now and yes supplied from 5v usb.
It was definitely functioning previous to updating the code just today..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F7%3Femail_source%3Dnotifications%26email_token%3DAD2GBPGRD2HZWFGZHTWBHPTQV2BOBA5CNFSM4JSGTDP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFJW2VY%23issuecomment-559115607&data=02%7C01%7C%7C8f6f3fd962954f0aee9c08d773480e9a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637104625623350743&sdata=0Rwi%2Buvpx4OrGRlMafKdFLVoejatbNUi9qiTCRAjFmc%3D&reserved=0>, or unsubscribe<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPGKBRCFHPNPMR2JRHDQV2BOBANCNFSM4JSGTDPQ&data=02%7C01%7C%7C8f6f3fd962954f0aee9c08d773480e9a%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637104625623360754&sdata=dSLEy3QmnDQQuzzB1vU4XVxUqclm%2BMXqN0EAeDHQ4Hc%3D&reserved=0>.
|
Yes I changed that part. I'll retry it again on a feather huzzah this evening. |
Trying to connect I should be receiving a reply from the sps right? so the communication is not working? |
HI
This is the first step : sending a request for the firmware and indeed should be answered by the SPS30. Often RX and TX are exhanged, just try it (it will not harm 🙂).
If not working still , sent me the sketch and your hardware setup on paulvha@hotmail.com. I will have a look at it.
regards,
Paul
…________________________________
Van: Yuki Machida <notifications@github.com>
Verzonden: woensdag 27 november 2019 17:43
Aan: paulvha/sps30 <sps30@noreply.github.com>
CC: paulvha <paulvha@outlook.com>; Comment <comment@noreply.github.com>
Onderwerp: Re: [paulvha/sps30] could not probe / connect with SPS30. (#7)
Trying to connect
Sending: 0x7E 0x00 0xD0 0x01 0x03 0x2B 0x7E
TimeOut during reading byte 0
I should be receiving a reply from the sps right? so the communication is not working?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F7%3Femail_source%3Dnotifications%26email_token%3DAD2GBPA4U4Q7UYQX4STBBNTQV2PUPA5CNFSM4JSGTDP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFKDB4I%23issuecomment-559165681&data=02%7C01%7C%7C221718bb60114a8dcac008d77358fc82%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637104698331463976&sdata=iBLuL43rtsxyKaEWtanPlt5I049ELqoWUeS1AX65C2w%3D&reserved=0>, or unsubscribe<https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPFLIIYPC5WEKBJULCTQV2PUPANCNFSM4JSGTDPQ&data=02%7C01%7C%7C221718bb60114a8dcac008d77358fc82%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637104698331473988&sdata=Tky2MJEe7%2BLgAemKo2CgpR6GwzlBu9MkYAMG2T8Ovdc%3D&reserved=0>.
|
Thanks, I might order another sensor just incase its that. |
Fixed in version 1.3.7 |
Hi, I'm having the same issue (could not probe/connect with SPS30.). I have tried i2c on ESP8266E and serial on ESP32. Is there a way to test to see if the SPS is damaged or my doggy wiring? |
hi, How did you connect the wiring? regards, |
On ESP8266 (NodeMCU 0.9) I used the Example13_sps30_BasicReadings_any_I2C.ino with D1, D2 pins and pull-up resistor 10K and also tried with 4k7 using external HW-131 Breadboard Power Module 3.3V/5V witch also powers the module, I used the diagram from https://www.14core.com/wp-content/uploads/2019/09/senserion-sps30-particle-sensor-schematics-diagram.jpg. For the serial, I tried on Wemos Lolin32 Lite pin (16,17) and (25,26) (switching the pairs around) without the pull-up resistors. I managed to get some readings once without the pull-up resistors but I was fiddling with the SPS30 power connector (I was using the Arduino-SPS library) but couldn't start it again, I also tested the cables for continuity and V and found no issues. Is there anything more I can try? |
I don't have a NodeMCU 09, but see that D1 is CLOCK, D2 SDA. However on other drawings I see they D1 is SDA and D2 is SCL. Have you tried to switch the SDA /SCL line just for debug? Doing a pull-up to 5V is not a good idea, it should be to 3v3. The SPS30 absulutely needs pull-up to work. regards, |
I don't have experience with I2C. But thins are looking stranger and stranger, I connected the NodeMCU 3.3v and the power supply 3.3V on the same side from which the pull-up resistors are connected... and the library managed to: Detected SPS30. -> Serial number: CE7A73B4FFA7A053 -> Product name: 00080000 -> Can not read version info. Now the StatusCheck() returns false. (ret = sps30.GetStatusReg(&st); Serial.println(ret); witch is 136); If I bypass that ( if (st == 0) return(true);) it showed some readings at the beginning, but now they're showing 0.0. |
hi
THis is progress...
The SPS30 really needs 5V to work on VCC else it is unstable. The I2C pull-up resistors must be to 3v3. I have experienced with other 3V3 boards that input stopped as the voltage was too high (like an internal protection).
Looking at what you got that data is correct and thus SCL and SDA are connected correctly.
I wonder about your 5V on SPS30, can you double check that ?
When you tried serial, did you remove the pull-up resistors ? (next to removing the sense-wire)
regards,
Paul
…________________________________
Van: Silviu ***@***.***>
Verzonden: maandag 5 april 2021 14:22
Aan: paulvha/sps30 ***@***.***>
CC: paulvha ***@***.***>; State change ***@***.***>
Onderwerp: Re: [paulvha/sps30] could not probe / connect with SPS30. (#7)
I don't have experience with I2C. But thins are looking stranger and stranger, I connected the NodeMCU 3.3v and the power supply 3.3V on the same side from which the pull-up resistors are connected... and the library managed to: Detected SPS30. -> Serial number: CE7A73B4FFA7A053 -> Product name: 00080000 -> Can not read version info.
Now the StatusCheck() returns false. (ret = sps30.GetStatusReg(&st); Serial.println(ret); witch is 136);
If I bypass that ( if (st == 0) return(true);) it showed some readings at the beginning, but now they're showing 0.0.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaulvha%2Fsps30%2Fissues%2F7%23issuecomment-813366425&data=04%7C01%7C%7Cb1d4d4158a5542b9380108d8f82d69ef%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637532221222637492%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=D2KebF6b6xA3SXO%2BWmpoFnIqcP%2Ff9xyHAPApzwiKty8%3D&reserved=0>, or unsubscribe<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2GBPHUNNAUI72QF6VR5C3THGTORANCNFSM4JSGTDPQ&data=04%7C01%7C%7Cb1d4d4158a5542b9380108d8f82d69ef%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637532221222637492%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LHhLUztDNsHMoUVjOz7w4L4%2BE%2FQVTksLmK4qGA%2FYfAw%3D&reserved=0>.
|
On the serial, I did remove the pull-up resistors but it didn't work I will work on the I2C for now. Thank you for the support. |
Hi. Was there any definitive solution to this problem? I have SPS30 connected to Serial1 UART on Feather M0 WiFi that has intermittent connection; sometimes it connects, other times it reports "could not probe / connect with SPS30." |
I suspect the power supply, especially as it runs well in standalone. Not sure whether you power from a lipo but if all the sensors en WIFI do "something" at the same time it can draw too much current and cause a voltage drop. Maybe just for debug, use a strong 5V, e.g. from the USB pin if connected for test to SPS30. regards |
Thanks Paul. I also suspected power. I've run it from the USB power and an independent supply with the same intermittent results. Interestingly, it seems to consistently connect to the SPS30 right after connecting the USB and turning on by de-grounding the ENable pin on the Feather's 3.3v regulator (a switch on the Featherwing Terminal block). However, if I just reset the Feather, it won't connect. Even if I turn off and on, it won't work. I have to do the whole magic pass of turning off, disconnecting the USB, reconnecting USB, and turning on to get a successful connection to the SPS30. I'll get an o'scope to sniff the RX/TX but I don't know what I'm looking for. More later... |
maybe the SPS30 enable wire, which switches the protocol between Serial and I2C has some impact. The SPS30 reads this wire at power-up to determine its protocol. When not connected/floating, it uses Serial. Maybe, somehow, it gets confused and moves to I2C due to a voltage drop/spike. |
I figured a workaround. It turns out that the SPS30 needs to restart in order to connect. If it isn't powered down the UART will not respond to a new connection. This I don't know why. |
Hi,
Does the fan turn on no matter what? It was working, and tried to upload new code and now it doesnt work. I hadn't touched code in a while so something may have changed.. I need to debug this. I get:
Trying to connect
could not probe / connect with SPS30.
Program on hold
Should the fan turn on once plugged in, or is it after the mcu communicates with the sps?
I'm tripple checking the rx tx pins. I'm setting Serial1 and defining RX TX as I'm using an ESP32.
On pin 17 16.
The text was updated successfully, but these errors were encountered: