Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. emka
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    emka

    @emka

    1
    Reputation
    4
    Posts
    373
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    emka Follow

    Best posts made by emka

    • RE: Mysensorized Roomba

      Hi Eoreh

      Maybe problem is in this line:
      digitalWrite(D3, HIGHT); delay(2);

      Did you defined HIGHT symbol?

      Actually I did it this way:

      void WakeUp()
      {
        pinMode(DEVICE_DETECT_PIN, OUTPUT);
        digitalWrite(DEVICE_DETECT_PIN, HIGH);
        delay(1000);
        digitalWrite(DEVICE_DETECT_PIN, LOW);
        delay(1000);
        digitalWrite(DEVICE_DETECT_PIN, HIGH);
      }
      

      and it works flawlessly (Ihave other problem with hanging NRF24, but it is another case)

      posted in My Project
      emka
      emka

    Latest posts made by emka

    • RE: Mysensorized Roomba

      Hi Eoreh

      Maybe problem is in this line:
      digitalWrite(D3, HIGHT); delay(2);

      Did you defined HIGHT symbol?

      Actually I did it this way:

      void WakeUp()
      {
        pinMode(DEVICE_DETECT_PIN, OUTPUT);
        digitalWrite(DEVICE_DETECT_PIN, HIGH);
        delay(1000);
        digitalWrite(DEVICE_DETECT_PIN, LOW);
        delay(1000);
        digitalWrite(DEVICE_DETECT_PIN, HIGH);
      }
      

      and it works flawlessly (Ihave other problem with hanging NRF24, but it is another case)

      posted in My Project
      emka
      emka
    • RE: MySensors node floods 2.4GHz band

      But sketch is very simple - it reports is state every defined time, communicates using serial with roomba and (potentially) receives couple of defined commands. Nothing comlicated, and as I wrote before it works. After couple of minutes it stops working and I assume the problem is somewhere in library because Arduino reports constant transmitions (with blinking LED). Watchdog also doesn't trigger so there is no hang. I assume that in case of some loop in sketch, node would start constant transmission of some data, but it doesn't transmit anything understandable by mySensors. More, it doesn't show any transmission on serial. Only blinks a LED and WiFi stops (almost) working.

      posted in Development
      emka
      emka
    • MySensors node floods 2.4GHz band

      Hi Guys

      I have some strange problem with my new node - I'm building kind of remote control to Roomba device and I've found that my node (Arduino+NRF24 + MySensors 2.0) based after couple of minutes hangs and floods 2.4 GHz band with large amount of packets. Flood is so large that my WiFi almost stops working. Device stops output on Serial (I don't have more detailed debug, only standard output to serial what means nothing), constatly flashes with L LED (PIN13). Interesting thing is that watchdog doesn't trigger, so I assume that device works (almost) correctly, but doesn't work in a way I expect it. Actually it doesn't report anything. One (maybe) important thing is a moment of failure - usually it occurs a few moments after Roomba goes to sleep (what causes serial errors, but they are handled already), but I think it is rather a coincidence (when I put it in sleep manually, everything works, for a moment), so I assume it is rather connected with time than such event. Gateway is Raspberry based with output to MQTT.

      I use SoftSerial, roomba and MySensors libraries in my script, but without any hacks.

      Do you have any ideas?

      posted in Development
      emka
      emka
    • RE: Mysensor-ing a Roomba vacuum cleaner.

      @mortommy it's quite easy: Roomba has a serial (there is 7-pin mini DIN socket under rubber cover on top of the device). Communication protocol is well described: https://cdn-shop.adafruit.com/datasheets/create_2_Open_Interface_Spec.pdf
      Remember that higher versions of Roomba (7xx+) communicate with higher baud rate (115200bps).

      There are also couple of libraries (but be careful, one of them contains hardcoded baud-rate, no matter what you declare in constructor :(, I haven't already sent a pull-request).
      And the last thing worth mentioning is power supply from Roomba - usually it outputs about 16V, what is enough to power Arduino using internal power regulator, but after connecting to docking station, voltage raises (I needed to replace my one).

      posted in My Project
      emka
      emka