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
P

pjeterinfo

@pjeterinfo
About
Posts
18
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Gui for H/A?
    P pjeterinfo

    @tbowmo I'm using a Harmony Companion, it's only the hub and a simple remote. Before I used a Harmony One and for me it's no problem not having a display anymore.
    By default I can setup 3 different activities (can be too limited for some) and I integrated the Harmony Hub in a Vera Edge. The Edge can be triggered on activities which you activate.
    No it does not yet do what you demand ,but for me the Hub is a great addition to HA.

    General Discussion

  • My own board (50mm x 30mm)
    P pjeterinfo

    @GertSanders Hi Gert, on the small board, did you soldered C2 and C3 on the bottom or on top just under/in the IC socket?

    My Project

  • sensors in boxes
    P pjeterinfo

    @gonzalonal We'll see, I have setup datamine for this sensor in Vera.

    My Project

  • Battery percentage incorrectly send to gateway.
    P pjeterinfo

    Ok... resistors are switched place , problem solved ;-) make a big difference offcource.

    send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-1 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    sensor started, id=1, parent=0, distance=1
    send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:Battery Meter
    send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    934
    Battery Voltage: 3.14 V
    Battery percent: 93 %
    send: 1-1-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,st=ok:93

    Development

  • Battery percentage incorrectly send to gateway.
    P pjeterinfo

    @sundberg84
    This is a screenshot of the schema. ( left out the top layer which is only used for the radio)

    Schermafbeelding 2015-08-25 om 19.29.43.png

    I tried the basic battery sensor sketch. I see that the sensor value is devided 10.
    Should this be default or can I calculate how the devider should be programmed?

    float batteryV = sensorValue * 0.003363075;
    int batteryPcnt = sensorValue / 10;

    end: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=o x00x00send: 1-1-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
    send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
    read: 0-0-1 s=255,c=3,t=6,pt=0,l=1,sg=0:M
    sensor started, id=1, parent=0, distance=1
    send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,st=ok:Battery Meter
    send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
    1023
    Battery Voltage: 3.44 V
    Battery percent: 102 %
    send: 1-1-0-0 s=255,c=3,t=0,pt=1,l=1,sg=0,st=ok:102

    Development

  • Battery percentage incorrectly send to gateway.
    P pjeterinfo

    I tried just with 2 AAA batteries (used from a remotecontrol), again it shows 102%. :-(

    Development

  • Battery percentage incorrectly send to gateway.
    P pjeterinfo

    I ordered a custom pcb with a ATMega328P and a dallas tempsensor , powered by 2AA batteries. Simular like http://forum.mysensors.org/topic/1107/sensors-in-boxes/7.

    I use allso the sketch as shown in that topic, however the battery status allways read 102%. I'm sure the batteries are not full.
    Can you point me in the right direction why my battery percentage is not send correctly?

    // Example sketch showing how to send in OneWire temperature readings
    #include <MySensor.h>
    #include <SPI.h>
    #include <DallasTemperature.h>
    #include <OneWire.h>

    #define ONE_WIRE_BUS 3 // Pin where dallase sensor is connected
    #define MAX_ATTACHED_DS18B20 16
    unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
    OneWire oneWire(ONE_WIRE_BUS);
    DallasTemperature sensors(&oneWire);
    MySensor gw;
    float lastTemperature[MAX_ATTACHED_DS18B20];
    int numSensors=0;
    boolean receivedConfig = false;
    boolean metric = true;
    // Initialize temperature message
    MyMessage msg(0,V_TEMP);
    MyMessage msgvolt(1,V_VOLTAGE);
    int BATTERY_SENSE_PIN = A0;
    int oldBatteryPcnt = 0;

    void setup()
    {
    analogReference(INTERNAL);
    // Startup OneWire
    sensors.begin();

    // Startup and initialize MySensors library. Set callback for incoming messages.
    gw.begin();

    // Send the sketch version information to the gateway and Controller
    gw.sendSketchInfo("Temperature Sensor", "1.0");

    // Fetch the number of attached temperature sensors
    numSensors = sensors.getDeviceCount();

    // Present all sensors to controller
    for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) {
    gw.present(i, S_TEMP);
    }
    }

    void loop()
    {
    // Process incoming messages (like config from server)
    gw.process();

    // Fetch temperatures from Dallas sensors
    sensors.requestTemperatures();

    // Battery Monitoring
    int sensorValue = analogRead(BATTERY_SENSE_PIN);
    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) {
    gw.send(msgvolt.set(batteryPcnt,1));
    oldBatteryPcnt = batteryPcnt;
    }
    // Read temperatures and send them to controller
    for (int i=0; i<numSensors && i<MAX_ATTACHED_DS18B20; i++) {

    // Fetch and round temperature to one decimal
    float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
    
    // Only send data if temperature has changed and no error
    if (lastTemperature[i] != temperature && temperature != -127.00) {
    
      // Send in the new temperature
      gw.send(msg.setSensor(i).set(temperature,1));
      lastTemperature[i]=temperature;
    }
    

    }
    gw.sleep(SLEEP_TIME);
    }

    Development

  • Adjust time?
    P pjeterinfo

    Domoticz shows your correct local time, but are you sure that the timezone on the Domoticz "server" is correctly configured?

    Troubleshooting

  • W5100 Ethernet module PoE
    P pjeterinfo

    This module doesn't seem to have a 48v dc/dc converter. At least from the picture I do not recognize it.
    Allso I don't see in the description that it have power over ethernet.

    Hardware poe w5100 ethernet arduino

  • W5100 Ethernet module PoE
    P pjeterinfo

    Are 7 and 8 not both gnd?

    Hardware poe w5100 ethernet arduino

  • sensors in boxes
    P pjeterinfo

    IMG_20150812_203817.jpg

    All parts received and programmed using a pro mini, man that's frustrating ;-) . But works great..

    My Project

  • sensors in boxes
    P pjeterinfo

    Use it on your own risk, it's nog yet arrived and thus not tested ;-)

    My Project

  • sensors in boxes
    P pjeterinfo

    I order a few with modified toplayer to fit all the "red" wires and removed 2mm of the board width.
    tempsensor.brd

    My Project

  • sensors in boxes
    P pjeterinfo

    @GuyP If I order this brd files online, I assume that I need to remove the red lines from the top layer? Or maybe reroute them if possible? Looks like some short circuit connections.

    My Project

  • Programming serial gateway using a Mac..
    P pjeterinfo

    http://tiriboy.blogspot.nl/2015/04/arduino-uno-clone-serial-port.html

    Troubleshooting

  • unable to compile for ATmega168 16M 5v
    P pjeterinfo

    @hugo1975 I removed debug for the ATmega168 16M and use them for motion sensors, that will fit this board. Other sensors I run on the ATmega328p.

    Troubleshooting

  • Temperature Sensor example on Pro Mini ATmega168 not compiling
    P pjeterinfo

    @sj44k It will compile if you disable debug in MyConfig.h , but I allso figured out that the temp sensor is the only sensor that will fit on the ATmega168.

    http://www.mysensors.org/build/debug

    Bug Reports

  • unable to compile for ATmega168 16M 5v
    P pjeterinfo

    Hi, I'm totaly new with Arduino/Mysensors. I bought a bunch of sensors and boards, the problem I have is to upload mysensors sketches to the Amega168 board, it will fail when compiling the sketch with the error below.
    I can succesfully upload blink for example. Can't this ATmega168 not be used for Mysensors?
    running IDE 1.6.3

    In file included from /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp:27:0:
    /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp: In member function 'void LowPowerClass::powerExtStandby(period_t, adc_t, bod_t, timer2_t)':
    /Users/pieterblom/Documents/Arduino/libraries/MySensors/utility/LowPower.cpp:823:18: error: 'SLEEP_MODE_EXT_STANDBY' was not declared in this scope
    lowPowerBodOn(SLEEP_MODE_EXT_STANDBY);

    After some troubleshooting I tried allso IDE1.0.6 which gives me a more clear error message:
    Binaire sketch-grootte: 15.754 bytes (van een 14.336-byte maximum?

    I tried another sketch(motion_sensor) which does fit on the ATmega168. Any ideas how to fit the DallasTemparatureSensor on the ATmega168?

    Troubleshooting
  • Login

  • Don't have an account? Register

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