Support for DS2450 1-wire device

Give it a try, it costs you nothing !
ulli
Posts: 47
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 8 times
Been thanked: 2 times

Support for DS2450 1-wire device

Post by ulli »

As there is already support for DS18B20 temperature sensor, is it possible to also support the DS2450 4-channel AD-converter/output? This device is perfectly well suited to control light effects in my electric railroad.
The light at the end of the tunnel has been switched off for energy saving reasons.
User avatar
cicciocb
Site Admin
Posts: 2057
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1357 times
Contact:

Re: Support for DS2450 1-wire device

Post by cicciocb »

Where do you buy these devices?
ulli
Posts: 47
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 8 times
Been thanked: 2 times

Re: Support for DS2450 1-wire device

Post by ulli »

Sorry for the noise.
I believed they are a 1 EUR device, but they are f...ing expensive.
So no other way than finding a different solution.
Is it eventually possible to offer some native 1-wire support? in that case I'd reconsider my old idea of making my own 4- or 5-way output expander using a 12F629 PIC. Basically I want a tiny output device with as little cabling as possible (thus 1-wire).
The light at the end of the tunnel has been switched off for energy saving reasons.
ulli
Posts: 47
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 8 times
Been thanked: 2 times

Re: Support for DS2450 1-wire device

Post by ulli »

Some googling convinced me to fall back to good old I2C (PCF8574)
The light at the end of the tunnel has been switched off for energy saving reasons.
lyizb
Posts: 101
Joined: Fri Feb 12, 2021 8:23 pm
Has thanked: 43 times
Been thanked: 25 times

Re: Support for DS2450 1-wire device

Post by lyizb »

How would a PCF8574 or PCF8575 substitute for a "4-channel AD-converter"?

Regarding digital expansion, what are you expanding from? If an ESP8266, then the ESP32 S2Mini https://www.aliexpress.us/item/3256805971378303.html provides a considerable expansion for $2.05 while being able to be used with D1Mini PCBs.
User avatar
cicciocb
Site Admin
Posts: 2057
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1357 times
Contact:

Re: Support for DS2450 1-wire device

Post by cicciocb »

For the I2C there are a lot of possibilities, for both DAC and ADC.
ulli
Posts: 47
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 8 times
Been thanked: 2 times

Re: Support for DS2450 1-wire device

Post by ulli »

Hi cicciocb and lyizb,

thanks for your hints. i don't need an A/D converter at all. I wanted to "misuse" them as digital outputs,
Using 1-wire makes cabling a bit easier.

I now ordered a few PCF8574 boards from China, falling back to I2C.
The light at the end of the tunnel has been switched off for energy saving reasons.
User avatar
cicciocb
Site Admin
Posts: 2057
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1357 times
Contact:

Re: Support for DS2450 1-wire device

Post by cicciocb »

For one wire you could use ws2812 hacked
ulli
Posts: 47
Joined: Tue Feb 09, 2021 9:48 am
Location: Monschau, Germany
Has thanked: 8 times
Been thanked: 2 times

Re: Support for DS2450 1-wire device

Post by ulli »

I don't really understand.
It uses 1 wire for data transmission, which is fine.
It uses a simple protocol supported by Annex, which is fine, too.
BUT how do I get at the output lines? LEDs and controller are integrated, no way to contact something.
Or do you have a solution that I don't see?
The light at the end of the tunnel has been switched off for energy saving reasons.
waldli
Posts: 14
Joined: Sat Sep 02, 2023 7:46 am
Has thanked: 1 time
Been thanked: 1 time

Re: Support for DS2450 1-wire device

Post by waldli »

Hello Ulli, you get the ws2811 as a single IC
where you can connect the individual diodes yourself.

Waldemar
Post Reply