Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Home Assistant
  4. Expanded use (connection) of existing solutions (MySensors+HA+Arduino MEGA by USB)

Expanded use (connection) of existing solutions (MySensors+HA+Arduino MEGA by USB)

Scheduled Pinned Locked Moved Home Assistant
3 Posts 2 Posters 44 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    ITBeast
    wrote on last edited by
    #1

    Hello everyone,
    I'm trying on HA (installed on the docker) to integrate with Arduino Mega connected via USB. Elements that must be included in the design are: limit switches, step motors (28BYJ-48 with EasyDriver A3967 V4.4), RFID, DHT22, Monostable Switches (for light control) and MQ2.
    Could anyone help me with MySensors code on Arduino to be able to control and read information from these components?
    Stepper Motor control (right / left), readout of the limit switch / DHT22 / RFID card (after reading the tag will be performed automation) and LED lighting both with a virtual switch (in the application) and physical (monostable).
    The biggest problem for me is writing the states of these components to the EEPROM, because after each power failure, the state of e.g. the switch returns to the initial one (e.g. off).
    I tried by trial and error to combine several existing solutions, but without success.
    https://pastebin.com/KRb9abmK
    https://github.com/lkankowski/arduino-multi-relay/tree/impulse-reed_switch
    https://github.com/feanor-anglin/GetWired-Project
    I will be very grateful for help, because the integration what I want to do is a bit overwhelming me...
    Best regards ^ _ ^

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Michał Szura
      wrote on last edited by
      #2

      Do you need to restart Arduino? If not you can put kapacitor to reset pin and gnd. And Arduino won't be restarted wit ha

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ITBeast
        wrote on last edited by
        #3

        Oh, it's good idea. Whenever I restarted Raspberry Pi, Arduino (connected by USB) is also restarted.
        Could you help me write correct code for Arduino, where I can readout data from DHT/ RFID/ limit switch and to control Stepper Motor?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        25

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular