-
Notifications
You must be signed in to change notification settings - Fork 4
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
ZH-06 IV support ? #2
Comments
Hi BigValen, you are right they are very similar: same commands and answers, just 8 extra bytes in the response... My library may be easily adapted to support it.... |
Hi John/BigValen, I've updated the library to support ZH06 (all based on the datasheet you shared). Please, test it since I do not have the new model. I did not create any new methods to set/change the sensor type. The sensor type is defined in the constructor; please, refer to the example for more details. The ZH03B is set by default in case no sensor type is defined in the constructor. Thus, the updated library is 100% backward compatible with its previous release... |
Hi Shaggy, is been trying to use the SENSOR_ZH06, but I've an error checking your example: error: 'SENSOR_ZH06' is not a member of 'SD_ZH03B'... |
Hi Diego,
for trying ZH06 just comment the line 13 and uncomment the line 16. Should
compile without any error.
Cheers,
Shaggy
…On Fri, Aug 18, 2023 at 10:41 PM DiegoPalo ***@***.***> wrote:
Hi Shaggy, is been trying to use the SENSOR_ZH06, but I've an error
checking your example: error: 'SENSOR_ZH06' is not a member of 'SD_ZH03B'...
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIUOQIMXVIBWQC5EBOXG6FDXV7APJANCNFSM43FUL7JA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It seems that Winsen are now shipping ZH06 if you try buy ZH03 devices. The spec sheet is pretty similar. Only difference I can see is that the message is 32 bytes long (with lots of reserved fields) instead of 24. I have a half-made patch to add ZH06 support to the library. It'd default to ZH-03 until you call "SetModel".
I'd rather get it working, before submitting a PR...but neither device I have emits anything yet. Not quite sure what's going on. Would it make sense to submit ZH06 support, once I have it working What's the best way to ?
ZH06-IV Laser Dust Module Manual Ver1.2.pdf
The text was updated successfully, but these errors were encountered: