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

W3231 how to replace 10K thermistor with 100K #1

Open
Yendrzei opened this issue Aug 23, 2024 · 2 comments
Open

W3231 how to replace 10K thermistor with 100K #1

Yendrzei opened this issue Aug 23, 2024 · 2 comments

Comments

@Yendrzei
Copy link

Hello,

is there possibility to reprogram W3231 model to use 100K NTC? I see only firmware for W3230 and I'm not sure if it's compatible with W3231. Looking on the description I suppose editing adc.c file should be sufficient.

IMG_3830

@Yendrzei Yendrzei changed the title W3231 W3231 how to replace 10K thermistor with 100K Aug 23, 2024
@rtek1000
Copy link
Owner

rtek1000 commented Sep 1, 2024

Hi, sorry but this repository only has codes for STM8S003F3P6. This W3230 module is listed but just for information, as mentioned it is not an STM8 microcontroller.

Since the code was made for the STM8S003F3P6 with only 8kB of Flash, then your W3231 module, which seems to use a CMS8S6990N with 16kB of Flash, can be programmed based on the STM8S003F3P6 code, but it is necessary to use the tools specific to the CMS8S6990N, and I am unaware of them.

You can see more details (CMS8S6990N) on this website: https://www.mcu.com.cn/en/Products/84

Apparently the pinout of the CMS8S6990N is similar to the pinout of the STM8S003F3P6, but the STM8S003F3P6 needs the capacitor on the VCAP pin (pin 8), check if pin 8 of the CMS8S6990N is free (And which pin is the analog input of the sensor), maybe it will be possible to exchange the CMS8S6990N for a STM8S003F3P6. With a STM8S003F3P6 it will be easier and faster to make modifications.

CMS8S6990N:
CMS8S6990N

STM8S003F3P6:
STM8S003F3P6

@rtek1000
Copy link
Owner

rtek1000 commented Sep 1, 2024

Note that pin 4 (NRST) of the STM8S003F3P6 is the RESET pin, it must also be free. And pin 18 is the programming pin (SWIM), it may be necessary to place a resistor in series, if this pin is being used as an input, to be able to program via STlink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants