Navigation

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

    gadu

    @gadu

    1
    Reputation
    57
    Posts
    956
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    gadu Follow

    Best posts made by gadu

    • RE: MQTT controller - ping but Connection timeout on MQTT clients

      I use the latest 1.0.6 IDE on Win7 and loaded the latest MySensor libraries
      https://github.com/mysensors/Arduino/
      Added the attached libraries and they compiled just fine for me...

      MyMQTTGateway.zip
      Note1: Included is MyMQTTGateway and Pubsubclient.

      Note2: This will make the gateway act as a MQTT client so you need Mosquitto (or similar) where you publish the topics from the gateway.

      Note3: Remember to change the IP and Mac.

      posted in Controllers
      gadu
      gadu

    Latest posts made by gadu

    • RE: BBQ Temp Controller Build

      Cool project! Following.

      posted in Development
      gadu
      gadu
    • RE: MQTT and batterylevel

      @kunall

      First these two rows before setup..

      int BATTERY_SENSE_PIN = A0;  // select the input pin for the battery sense point
      int oldBatteryPcnt = 0;
      

      and in the loop i have these rows...

      // get the battery Voltage
      int sensorValue = analogRead(BATTERY_SENSE_PIN);
      //Serial.println(sensorValue);
      // 1M, 470K divider across battery and using internal ADC ref of 1.1V
      // Sense point is bypassed with 0.1 uF cap to reduce noise at that point
      // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts
      // 3.44/1023 = Volts per bit = 0.003363075
      float batteryV  = sensorValue * 0.003363075;
      int batteryPcnt = sensorValue / 10;
      Serial.print("Battery Voltage: ");
      Serial.print(batteryV);
      Serial.println(" V");
      Serial.print("Battery percent: ");
      Serial.print(batteryPcnt);
      Serial.println(" %");
      if (oldBatteryPcnt != batteryPcnt) {
       // Power up radio after sleep
       gw.sendBatteryLevel(batteryPcnt);
       oldBatteryPcnt = batteryPcnt;
      

      in OpenHab items i have this row...

      Number node2_batt  "Battery [%.1f %%]" <energy> (node2,All)  {mqtt="<[MySensor:MyMQTT/21/1/V_VAR1:state:default]"}
      

      hope this helps....

      posted in Development
      gadu
      gadu
    • RE: Minimal design thoughts

      Oh! Where do I order?! Been waiting for this!

      posted in Hardware
      gadu
      gadu
    • RE: 230V power supply to Arduino

      I've seen these and also got interested. Any input on these is appreciated.

      posted in Hardware
      gadu
      gadu
    • RE: Raspberry Pi2 + MQTT Gateway in one box!

      Great work!

      posted in My Project
      gadu
      gadu
    • RE: Gerber/Eagle files and then...?

      Great, thanx! I have to look into this, so tired of the experimentboards

      posted in Hardware
      gadu
      gadu
    • Gerber/Eagle files and then...?

      Well, I see some of you creating great custom boards in many (very interesting) sizes and shapes.
      But for a n00b in that area... if i would get hold of a gerber/eagle file, how and where do you go about to order them? Is there any "how-to"?

      posted in Hardware
      gadu
      gadu
    • RE: MQTT controller - ping but Connection timeout on MQTT clients

      @TommySharp
      Hmm dont really remember, but I think this was the solution
      https://github.com/knolleary/pubsubclient/issues/46

      posted in Controllers
      gadu
      gadu
    • RE: Arduino Pro Mini adapter card and nice box from "biltema"

      When you order, lägg till 5st 😉

      posted in My Project
      gadu
      gadu
    • RE: Arduino Pro Mini adapter card and nice box from "biltema"

      Where can one find these boards?

      posted in My Project
      gadu
      gadu