Navigation

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

    mardah

    @mardah

    Hardware Contributor

    5
    Reputation
    18
    Posts
    813
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    mardah Follow
    Hardware Contributor

    Best posts made by mardah

    • RE: Problem with SPI Flash AT25DF512C

      I found the problem: https://github.com/LowPowerLab/SPIFlash/issues/16

      The sketch I used to verify the SPI Flash was missing a SPI.begin() in setup().

      posted in Hardware
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      I hooked up a logic analyzer and discovered that there was no activity on SCK, MOSI and MISO when trying to use the SPI Flash.

      Wrote my own sketch that only reads the jedec id from the SPI Flash and it worked. Must be something with the SPIFlash lib version.

      Attaching a screenshot from the logic analyzer showing the jedec id read from the SPI Flash.

      0_1488979635928_Skärmavbild 2017-03-08 kl. 14.24.04.png

      posted in Hardware
      mardah
      mardah

    Latest posts made by mardah

    • RE: 💬 Wall Switch Insertable Node

      Would it be possible to skip the 74HC86D and use a pin change interrupt instead? And still support on/off switches?

      posted in OpenHardware.io
      mardah
      mardah
    • Problem adding nodes to HA

      Hi

      I think I have read all threads about adding nodes to HA but I have not found a solution to my problem.

      I have an existing Ethernet GW and several nodes around the house. Currently I'm using Vera and all nodes and GW are working. I would like to switch to HA and have added the following to configuration.yaml

      mysensors:
        gateways:
          - device: '192.168.1.31'
            persistence_file: '/home/homeassistant/.homeassistant/mysensors.json'
            tcp_port: 5003
        optimistic: false
        persistence: true
        retain: true
        version: 1.5
      

      When I restart a node it should send presentation followed by initial values. Since it is working with the Vera I assume that part is working but still the nodes aren't added to HA.

      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] Update: node 6, child 255 sub_type 18
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [homeassistant.components.mysensors] No sketch_name: node 6
      2017-07-19 09:39:06 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 6;255;3;0;6;M
      2017-07-19 09:39:13 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Closing socket at ('192.168.1.31', 5003).
      2017-07-19 09:39:23 ERROR (Thread-7) [mysensors.gateway_tcp] Failed to shutdown socket at ('192.168.1.31', 5003).
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Socket closed at ('192.168.1.31', 5003).
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] No response. Disconnected.
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Trying to connect to ('192.168.1.31', 5003)
      2017-07-19 09:39:23 INFO (Thread-7) [mysensors.gateway_tcp] Connected to ('192.168.1.31', 5003)
      2017-07-19 09:39:23 DEBUG (Thread-7) [mysensors.gateway_tcp] Sending 0;255;3;0;2;
      2017-07-19 09:39:23 DEBUG (Thread-7) [mysensors.gateway_tcp] Received 0;0;3;0;14;Gateway startup complete.
      

      Why is the Ethernet GW disconnected after the node sends it presentation? Also, the node does send a sketch name and version, it is visible in Vera.

      BR
      Martrin

      posted in Home Assistant
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      I found the problem: https://github.com/LowPowerLab/SPIFlash/issues/16

      The sketch I used to verify the SPI Flash was missing a SPI.begin() in setup().

      posted in Hardware
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      I hooked up a logic analyzer and discovered that there was no activity on SCK, MOSI and MISO when trying to use the SPI Flash.

      Wrote my own sketch that only reads the jedec id from the SPI Flash and it worked. Must be something with the SPIFlash lib version.

      Attaching a screenshot from the logic analyzer showing the jedec id read from the SPI Flash.

      0_1488979635928_Skärmavbild 2017-03-08 kl. 14.24.04.png

      posted in Hardware
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      @tbowmo I'm getting pass the initialize which returns true. Since I don't provide a jeedec id it defaults to 0. When I later try to read jeedec I'd from the flash it returns 0 as well.

      posted in Hardware
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      @scalz if I add the address I get "Init FAIL".

      posted in Hardware
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      The DAC worked as well so there is only a problem with the SPI Flash. I even replaced the chip but get the same result. Maybe a software issue then.

      posted in Hardware
      mardah
      mardah
    • RE: Problem with SPI Flash AT25DF512C

      I have checked wiring and soldering. The radio is working but I will for sure verify the DAC.

      posted in Hardware
      mardah
      mardah
    • Problem with SPI Flash AT25DF512C

      Hi

      I have a problem with a AT25DF512C SPI flash module. Using the SPIFlash library I can initialize the flash but when I try to read the device ID it is zero. Also if I write data and then read it back it is also zero.

      I'm using an ATMega328P-AU TQFP. The flash CS is connected to A2 (16). MOSI, MISO and SCK connected normally. CS has a 4.7k pullup.

      Any ideas why the SPI only returns zeros? Please see my schematic at: https://www.openhardware.io/view/348

      //Martin

      posted in Hardware
      mardah
      mardah
    • RE: OTA flash types for MySensors

      Hello,

      Would AT45DB041E be a good choice as a OTA flash? I see it's in the schematics for the new Sensebender Micro mk2.

      https://www.adestotech.com/wp-content/uploads/doc8783.pdf

      BR
      Martin

      posted in Hardware
      mardah
      mardah