home.social

#1wire — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #1wire, aggregated by home.social.

fetched live
  1. Тип топологии – шина

    Кажется, что топология «звезда» правит в современном мире. Из-за тотальной популярности технологии Ethernet она окружает нас везде: в квартире, в офисе, в доме все выстроено как центральная точка-коммутатор и множество ответвлений на абонентские устройства. Но. Смотрите, что произойдет, как только вы выйдете из квартиры. Вы прикладываете к домофону ключ-«таблетку» — и в этот момент, возможно, пользуетесь шиной 1-Wire, которая по своей топологии буквально шина. Садитесь в машину, поворачиваете ключ — и по всему автомобилю идет сигнал на десятки блоков, висящих на общих парах проводов CAN и LIN. Ни один современный автомобиль без шины не поедет вообще. Вечером вы идете на концерт — и вся светотехника над сценой, сотни приборов, управляется по DMX512, который бегает поверх шинного интерфейса RS-485. Даже показания квартирного теплосчетчика снимаются по M-Bus — специализированной шине для счетчиков. Звезда победила в офисах и дата-центрах. Но стоит выйти за пределы серверной — на завод, в цех, на подстанцию, в автомобиль, за кулисы концертного зала, квартиру — и выясняется, что там до сих пор правит бал старая добрая шина. Два провода, протянутые через весь объект, и десятки устройств, повисших на них параллельно, как белье на веревке. Как же так вышло, в наш век современной и быстрой связи?

    habr.com/ru/companies/beget/ar

    #RS485 #Modbus_RTU #PROFIBUS #CAN #LIN #Ethernet #шина #звезда #1Wire #MBus

  2. Копируем ключ без ключа: умный дубликатор 1-Wire на ассемблере AVR с ручным вводом и контролем CRC

    Здравствуйте, уважаемые хабровчане! И снова новое устройство. И снова древний чип и ассемблер — на радость комментаторам. 😊 Сразу хочу расставить все точки над «i». Да, я знаю, что можно было взять чип поновее или вообще что-то типа Raspberry Pi, прикрутить к нему экран 640х480, подсоединить мышь, клавиатуру, модуль GSM для выхода в глобальную сеть и сохранения ключей на сервере. Да и код можно было написать не на ассемблере, а на Си, Python, Rust, «навайбкодить» или добавить искусственный интеллект. Всё это я прекрасно знаю, так что давайте не будем на это отвлекаться. Данный проект — чистый DIY. Его цель — показать, что можно сделать на довольно старом (не буду говорить «устаревшем») контроллере. Относитесь к этой статье как к видео о выживании в лесу. Знаете, есть такие ролики, где блогер сознательно уходит в тайгу, имея при себе только топор, спички, соль и чистый энтузиазм. Он строит себе жилье, находит пропитание и отлично отдыхает. А ведь мог бы на вертолете долететь до турбазы, выйти из дверей прямо к телевизору, попивать пивко и закусывать шашлыком, глядя на красиво постриженные сосны за окном…

    habr.com/ru/articles/1053762/

    #atmega8 #ассемблер #avr #1wire #ds1990 #wh1602 #копировщик_ключей #diy #электроника #схемотехника

  3. Now that I’ve successfully avoided FPGA-hell (thanks Quentin!) I used my copious free time to slide into GPIO-hell. I don’t have a screen or serial console at the moment on the Rock 4 SE, but whatever magic @armbian is trying to do in the fixup script to get 1Wire configured didn’t work here (see also github.com/MichaIng/DietPi/iss) and turned my GPIO4_D2 into "gpios = <0x8a 0x04 0x00 0xae>;” instead of “gpios = <0x1a 0x1a 0x00>;” that I need. Yay for handwritten DTSs!

    #armbian #rock4se #IoT #1Wire

  4. After 15+ years of #Domiticz home automation software I figured it’s time to try Home Assistant, not really because I need it, more because I can.

    My environment is quite large and complex so it’s going to be a long transition, bare with me

    I’m using MQTT, a lot of Node-red logic, IKEA with gateway, a huge 1-wire network, several bash scripts, several Blocky scripts, Rfxcom with a lot of devices. Many scenarios and time events, ambient controls, and much more.

    For now I have a Docker running HA and a ESPHome connected to the IKEA Gateway and realized that it can’t see the events from IR sensors and that I probably need a Zigbee gateway. Happy to get a nodeMCU showing the temp values from a DS18B20 Dallas on the GPIO pins but sadly realized that to configure each device it needs to be available as a pre built device. Hmmm and a lot of my devices are not yet integrated, this means I will need a 1-wire master for the HA, because I like to leave the Raspberry 1-wire setup as today. Why? Because I have to put too much work into it at every upgrade and the Rpi stability considering SD-cards are not the best. (Even though my last installation has run 4+ years on the same card)

    Well, the slow journey has at least started towards a new environment, let’s see how it progresses

    #1wire #domoticz #homeassistant #automation

  5. Домофон Лидер-М. Как скрестить трубку с ключом и всем проиграть

    Приветствую всех! Когда-то я уже рассказывал про цифровые домофоны и про то, как они работают. Но, как оказалось, их система с перемычками была далеко не единственной. В конце девяностых появилась ещё одна схема, использовавшаяся в малораспространённых питерских домофонах. Чем она была примечательна и почему она так и не получила распространения? Сейчас и узнаем.

    habr.com/ru/companies/timeweb/

    #домофон #ключи #1wire #лидер #блок_питания #dallas #timeweb_статьи

  6. My central heating 1wire thermistor sensors stopped working after a long run of working fine for several months. Could be several things but it's finally time to replace the shonkey burglar alarm wire with proper cat5 twisted pair. Connecting all the thermistors along the wire is such a pain though urgh.

    #homeautomation #1wire

  7. Чужой в модуле Wiren Board: вживляем контроллер Lavritech с LoRaWAN

    Мы разрабатываем модульные контроллеры Lavritech и считаем, что если объединить два хороших устройства, то можно получить решение еще универсальнее и интереснее. Так и сделали: интегрировали контроллер Lavritech в разные Modbus-модули Wiren Board — релейные, аналоговых и дискретных входов, счетчики электроэнергии — из обычного модуля получили ПЛК. В статье подробно расскажем о том, как разрабатывали решение, какие проблемы преодолевали и что получили в итоге.

    habr.com/ru/companies/wirenboa

    #wiren_board #lavritech #esp32 #контроллер #modbus #rs485 #плк #lorawan #1wire #разработка

  8. Температурный датчик NST1002 от компании Novosense

    Датчик заявлен как высокоточный, +/- 0.1 градуса для 0…+85 град. С, в корпусе DFN-2L. Для всего диапазона температур -40 … +150 градусов точность несколько хуже, до +/- 0.5 градуса. У датчика 15-ти битное АЦП, восемь разрядов на градусы и семь на дробную часть, что дает разрешающую способность 1/128 или 0.0078125 градуса. Время преобразования и считывания данных порядка 32-х миллисекунд. Подключается он по шине 1-Wire и имеет два варианта конструктивного исполнения: DFN-2L (1.6 x 0.8 мм) и TO-92S-2L (4.0 x 3.0 mm). Типовая схема подключения показана на Рис.1 и требует 2 ножки микроконтроллера. GPIO1 используется для управления обменом, GPIO2 для считывания данных. Рекомендуемое значение резистора 4.7 кОм @ 3.3 В.

    habr.com/ru/articles/824118/

    #Novosense #NST1002 #1Wire #Temperature_Sensor

  9. It seems Texas Instruments is working on a temperature sensor to replace the DS18B20 💪

    Some interesting features:

    - 1-Wire interface
    - ±0.3°C (maximum) from –20°C to +85°C
    - Fast conversion time: 27 ms (maximum)
    - 2.5 V to 5.5V (STD mode)
    - Active current: 85 μA (typical)
    - TO-92 package

    ti.com/product/TMP1820

    🧵

    #electronics #DS18B20 #temperature #sensor #1wire

  10. So there are always the same number of pulses per frame, but the time duration of the frame varies based on the contents of the data bits, as 1s take longer to transmit than 0s.

    I looked up obvious candidates like #1wire, but that appears to be proprietary, and uses an addressing scheme anyways. It's not plain #UART-style, as it's not using high/low signal levels to indicate the bits. It's not SPI or I2C or a bunch of others.

    [...]

  11. Another alternative to the #DS18B20 temperature sensor, the really sexy TMP1826 that TI launched last year. 

    It uses the same OneWire protocol, has better accuracy, and costs about half of the DS18B20 😋

    - Operating voltage: 1.7 V to 5.5 V
    - High-accuracy
    ±0.3°C (maximum) from –20°C to +85°C
    ±0.5°C (maximum) from –55°C to +150°C
    - 16-bit temperature resolution: 7.8125 m°C (1 LSB)

    ti.com/lit/ds/symlink/tmp1826.

    #electronics #sensor #1wire #temperature

  12. I found an interesting alternative to #DS18B20, the MAX31820.

    It seems to be a 3.3V version of the DS18B20, which should work fine with the #ESP32 I'm using.

    It is also cheaper and in stock at DigiKey. I'm going to give it a try 👍

    analog.com/en/products/MAX3182

    digikey.com/en/products/detail

    #electronics #sensor #1wire

  13. More #1wire thermistor progress. Turns out I had wired the second thermistor wrong because I read the pin diagram top down instead of bottom up (despite clear instructions), and had shorted 5v to ground. Fixed and now I have outdoor temperature plus boiler water temperature! Going to add monitoring for various other zones later in the week. #homeautomation

  14. Made some progress on the #1wire thermistor setup. The dallas thermistor datasheet clearly show a resistor is needed, though I still don't quite understand why that limits current. But turns out wiring just one thermistor (without a resistor) works! With the help of @andatche we realised the DS2482-100 i2c/1wire chip that my controller uses has its own internal active pullup resistor, so current theory is my raspbery pi power supply is overworked. So that's next. #electronics #homeautomation