Navigation

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

    MSchmidke

    @MSchmidke

    0
    Reputation
    8
    Posts
    516
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    MSchmidke Follow

    Best posts made by MSchmidke

    This user hasn't posted anything yet.

    Latest posts made by MSchmidke

    • Sensebender Frequency

      Hello all,

      I've got a simple question about programming Sensenbender micro module from Arduino IDE. It's clear that I have to set Board to "Sensebender Micro". But what do I have to set "Processor" to?

      I thought "1 MHz" would be right since I read in the specs that it runs at 1 MHz. But then I found some code in the sample sketchs which seems to switch the frequency:

      clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
      

      What's the right setting in Arduino IDE? And is MEASURE_INTERVAL meant for 8 MHz or 1 MHz? Will this all work? How can timers count right when the CPU clock is reduced during running program?

      Can you help?

      Thank you!

      Marcus.

      posted in Hardware
      MSchmidke
      MSchmidke
    • RE: Building an Ethernet Gateway on an Arduino Mega

      Oh it would have been really simple to find this config file ... but I didn't.

      I investigated the digital read of analog port. On classic Arduino, you can digitalRead(A0), for example. And I wondered what is behind that "A0" - and tadah it's 14 on classic Arduino. So I supposed there will be simply a 14 in SoftSPI code - et voilà it worked.

      What kind of ethernet related code do you have in your loop? I don't think you'll get a ping if you do not poll the Ethernet. But I'm not sure.

      Marcus.

      posted in Troubleshooting
      MSchmidke
      MSchmidke
    • RE: Building an Ethernet Gateway on an Arduino Mega

      Because the Ethernet shield breaks SPIs characteristics to be a bus. Once Ethernet shield is plugged onto Arduino, all other devices on SPI bus won't work anymore.

      This is documented at http://www.mysensors.org/build/ethernet_gateway#wiring-things-up and was true for mine: without ethernet shield, radio on 50/51/52 works perfect. With ethernet shield, radio on 50/51/52 won't work. The alternative SoftSpi is documented on the mentioned page, but A0/A1/A2 as written there will only work for classic Arduinos. The question was what to use instead of A0/A1/A2 on Mega, and I think 14/15/16 are the right ones.

      Marcus,

      posted in Troubleshooting
      MSchmidke
      MSchmidke
    • RE: Building an Ethernet Gateway on an Arduino Mega

      Heee,

      use 14/15/16 on the mega instead of A0/A1/A2. I did not do too much tests, but I get "gateway startup complete".

      posted in Troubleshooting
      MSchmidke
      MSchmidke
    • RE: Building an Ethernet Gateway on an Arduino Mega

      sj44k,

      now I got stuck at the exact same location like you. Arduino Mega, Ethernet Shield, Softspi -> "Check wires". Like you I connected the radio to A0/A1/A2 passthru pins on the Ethernet Shield but I am wondering if A0/A1/A2 are the right pins on Mega (since for hardware spi we also have to use other pins on mega).

      I would be very glad to hear from you if you have any new clues.

      So will I if I do, but at the moment I have absolutely no idea.

      Marcus.

      posted in Troubleshooting
      MSchmidke
      MSchmidke
    • 433 / 868 MHz common temperature sensors

      Hello all,

      as I read this forum, it is an ongoing problem to battery power the sensors.

      Somebody told me that the temperature sensors usually found in "weather stations" you can buy everywhere often speak a very simple JSON protocol over 433 or 868 MHz. And since they usually don't have a problem being battery powered, they are probably an alternative, at least for measuring temperature and humidity.

      Did anybody already do some research connecting those kinds of sensors to a MySensors Gateway?

      Marcus.

      posted in Hardware
      MSchmidke
      MSchmidke
    • RE: MQTT: Can somebody explain Gateway to a beginner?

      Ah, I've found the Arduino MQTT library, With the simple example provided there, I really managed to send MQTT message to my broker (and display it on command line). But in that example, I had to provide the IP address of my broker.

      I will further investigate MyMQTT.cpp to find out what my basic misunderstanding is. Perhaps I will manage to combine MyMQTT.cpp and the MQTT library.

      Marcus.

      posted in General Discussion
      MSchmidke
      MSchmidke
    • MQTT: Can somebody explain Gateway to a beginner?

      Hello all,

      I've just begun trying to understand MQTT. Final goal is to connect openHAB and MySensors via MQTT, but this is far, far away.

      By now, I've set up mosquitto and can send and receive messages from command line.

      Now, I would like to send some simple messages from Arduino. I've looked at the code of MyMQTT.cpp, but I hardly understand anything. I can see that upon receive of a radio message (in function processRadioMessage), a MQTT message is built and sent via EthernetServer.write. But I absolutely don't understand, where this message is written to. Don't I have to configure the address of my MQTT broker somewhere? How can the arduino know where my Mosquitto is running?

      I've searched the forum, but everybody but me who is working with MQTT seems to have a basic understanding that I seem to lack. No questions I found were that basic like mine 😞 .

      Can you explain it to a newbie?

      Marcus.

      posted in General Discussion
      MSchmidke
      MSchmidke