Skip to content
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

ds18b20 support via removing the led #6

Open
wired-dev opened this issue Jan 23, 2023 · 3 comments
Open

ds18b20 support via removing the led #6

wired-dev opened this issue Jan 23, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@wired-dev
Copy link

could i get some help implementing this. it would be for the 4k version. ty

https://www.analog.com/media/en/technical-documentation/data-sheets/ds18b20.pdf

@mightymos mightymos added the enhancement New feature or request label Jan 23, 2023
@mightymos
Copy link
Owner

Hi, I have used this sensor previously but do not have one available right now.
Also adding support for serial or one wire communication would need to be done in such a way that it was not compiled in by default to keep the default hex file under 1KB.

Or maybe the makefile can produce two hex versions including one for 4KB flash code size.

I would like to help eventually but you might have to try yourself and possibly submit a pull request.

The HAL for these STC microcontrollers does contain a driver for this sensor:
https://github.com/area-8051/uni-STC/tree/main/drivers/DS18B20

I haven't thought through what circuit modifications might be required, if any.

@wired-dev
Copy link
Author

wired-dev commented Jan 23, 2023

looks like might need to add some resistance in between R1 and P3_1, then attach the 1wire bus to P3_1 and it should work. Current resistor is 2.2k or so recommended pullup is 4.7k

@wired-dev
Copy link
Author

https://github.com/pilight/pilight/blob/master/libs/pilight/protocols/433.92/auriol.c could use this protocol for it; could do battery low at same time

@mightymos mightymos added the help wanted Extra attention is needed label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants