Navigation

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

    Topics created by gregl

    • gregl

      Another cheap Radar Motion detection module
      General Discussion • • gregl  

      5
      1
      Votes
      5
      Posts
      2067
      Views

      gohan

      3 mA is not very friendly
    • gregl

      Requesting time from MQTT/Openhab - How?
      Development • mqtt openhab • • gregl  

      3
      0
      Votes
      3
      Posts
      1611
      Views

      gregl

      My memory is sh*t.... i even replied to this relevant post! http://forum.mysensors.org/topic/812/realtimeclockdisplaysensor-ino-no-fetch-time-from-controller/6
    • gregl

      Relay Sketch (1.6dev ) failed messages cause relay to activate.
      Troubleshooting • • gregl  

      5
      0
      Votes
      5
      Posts
      1624
      Views

      gregl

      Yeah -right on! In my sketch ive set them to use unused analogue pins #define MY_DEFAULT_TX_LED_PIN A0 #define MY_DEFAULT_RX_LED_PIN A1 #define MY_DEFAULT_ERR_LED_PIN A2 ...problem went away.
    • gregl

      Happy 2nd Birthday to MySensors!!!!
      General Discussion • birthday awesome • • gregl  

      11
      10
      Votes
      11
      Posts
      3954
      Views

      hek

      https://www.youtube.com/watch?v=60P1xG32Feo
    • gregl

      thethingbox
      General Discussion • mqtt nodered • • gregl  

      4
      0
      Votes
      4
      Posts
      2782
      Views

      Mike Cayouette

      I have a project going with openhab and thethingbox. I only use Mqtt with a combination of nrf24l01 and esp8266 modules. thethingbox server is simply used as a catch all for all mqtt messages from sensors or openhab. i parse all the message coming into ththingbox and take action depending on the message. If my door or window sensor is tripped a message is sent to Twitter. I also send temp and humidity readings to thingspeak and my cell phone reports long and lat coordinates to thingspeak so that my lights can come on as I approach the house. My next project is to setup ip cameras and motion sensors and sent pics to drop box. Openhab is really not hard, you just have to keep at it, once you get it you will kick yourself for over complicating it Mike
    • gregl

      Indoor BLE Location ( or presence detection)
      General Discussion • mqtt wifi ble • • gregl  

      10
      0
      Votes
      10
      Posts
      12031
      Views

      Toyman

      Actually, it's not 100% MySensors-related, but I have a working setup consisting of iBeacon (either HM10-based or PI-based) and Beecon app. When Beecon senses the iBeacon it can trigger various actions, eg make http requests or call IFTTT recipes
    • gregl

      My Sensors Test environments
      Development • • gregl  

      1
      0
      Votes
      1
      Posts
      817
      Views

      No one has replied

    • gregl

      Specifying different "myconfig.h"
      General Discussion • • gregl  

      3
      0
      Votes
      3
      Posts
      1327
      Views

      gregl

      mmm.. Ok - thanks Hek. I was doing similar by having multiple copies of the Arduino IDE - one with 1.3 libs and another with 1.4 but ive recently started using AtmelStudio with VisualMicro plugin. I wonder if i can change within there without restarting the IDE completely...
    • gregl

      What do you think would happen....
      Vera • • gregl  

      3
      0
      Votes
      3
      Posts
      1086
      Views

      hek

      @ServiceXp said: That's just crazy talk now... Haha! I'm not alone. Also read your post several times @gregl before I gave up.
    • gregl

      Confused myself.... Two toggle inputs to toggle one output state... ideas please...
      My Project • logic • • gregl  

      3
      0
      Votes
      3
      Posts
      1422
      Views

      gregl

      Thanks @Anticimex - Ill give this a try hopefully tonight. ( ive been away for a few days)
    • gregl

      Ethernet Gateway "Inclusion started by Button" messages...when no button connected.
      Troubleshooting • • gregl  

      4
      0
      Votes
      4
      Posts
      2163
      Views

      klim

      Hi, i've the same problem with a toggling Inclusion signal in my SerialGateway and mySensors version 1.4.2. I understand that a missing pullup resistor on Pin3 and a none activated internal Pullup is the root cause of this problem. I solved it by modifing the MyGateway.cpp like this: // Setup digital in that triggers inclusion mode if (pinInclusion >= 0) { pinMode(pinInclusion, INPUT_PULLUP); // Add interrupt for inclusion button to pin PCintPort::attachInterrupt(pinInclusion, startInclusionInterrupt, FALLING); } Does this mean this there is an error in 1.4.2?
    • gregl

      rboard - Cheap relay/radio/arduino board ~$10
      Hardware • • gregl  

      57
      0
      Votes
      57
      Posts
      28177
      Views

      Homer

      @alowhum said in rboard - Cheap relay/radio/arduino board ~$10: Could you share the sketch? Perhaps others will learn from it too? Great idea! Here it is // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached #define MY_RADIO_NRF24 //#define MY_RADIO_RFM69 #include <SPI.h> #include <MySensors.h> #include <DallasTemperature.h> #include <OneWire.h> // Setup Relay bits #define RELAY_PIN 4 // Arduino Digital I/O pin number for first relay (second on pin+1 etc) #define NUMBER_OF_RELAYS 1 // Total number of attached relays #define RELAY_ON 1 // GPIO value to write to turn on attached relay #define RELAY_OFF 0 // GPIO value to write to turn off attached relay // Setup Temperature bits #define COMPARE_TEMP 1 // Send temperature only if changed? 1 = Yes 0 = No #define ONE_WIRE_BUS 14 // 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); // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) DallasTemperature sensors(&oneWire); // Pass the oneWire reference to Dallas Temperature. float lastTemperature[MAX_ATTACHED_DS18B20]; int numSensors = 0; bool receivedConfig = false; bool metric = true; // Initialize temperature message MyMessage tempMsg(0, V_TEMP); void before() { for (int sensor = 1, pin = RELAY_PIN; sensor <= NUMBER_OF_RELAYS; sensor++, pin++) { // Then set relay pins in output mode pinMode(pin, OUTPUT); // Set relay to last known state (using eeprom storage) digitalWrite(pin, loadState(sensor) ? RELAY_ON : RELAY_OFF); } // Startup up the OneWire library sensors.begin(); } void setup() { // requestTemperatures() will not block current thread sensors.setWaitForConversion(false); } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo("Temp and Relay", "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++) { present(i, S_TEMP); for (int sensor = 1, pin = RELAY_PIN; sensor <= NUMBER_OF_RELAYS; sensor++, pin++) { // Register all sensors to gw (they will be created as child devices) present(sensor, S_BINARY); } } } void loop() { // Fetch temperatures from Dallas sensors sensors.requestTemperatures(); // query conversion time and sleep until conversion completed int16_t conversionTime = sensors.millisToWaitForConversion(sensors.getResolution()); // sleep() call can be replaced by wait() call if node need to process incoming messages (or if node is repeater) wait(conversionTime); // 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>((getControllerConfig().isMetric ? sensors.getTempCByIndex(i) : sensors.getTempFByIndex(i)) * 10.)) / 10.; // Only send data if temperature has changed and no error #if COMPARE_TEMP == 1 if (lastTemperature[i] != temperature && temperature != -127.00 && temperature != 85.00) { #else if (temperature != -127.00 && temperature != 85.00) { #endif // Send in the new temperature send(tempMsg.setSensor(i).set(temperature, 1)); // Save new temperatures for next compare lastTemperature[i] = temperature; } } wait(SLEEP_TIME); } void receive(const MyMessage &message) { // We only expect one type of message from controller. But we better check anyway. if (message.type == V_STATUS) { // Change relay state digitalWrite(message.sensor - 1 + RELAY_PIN, message.getBool() ? RELAY_ON : RELAY_OFF); // Store state in eeprom saveState(message.sensor, message.getBool()); // Write some debug info Serial.print("Incoming change for sensor:"); Serial.print(message.sensor); Serial.print(", New status: "); Serial.println(message.getBool()); } }
    • gregl

      Iboard - Cheap Single board Ethernet Arduino with Radio
      Hardware • iboard • • gregl  

      74
      1
      Votes
      74
      Posts
      58977
      Views

      Mercury69

      @TimO Thank you very much for your help, now I succesfully connected my iboard card as LAN Gateway without doing any HW modification and even any software modification to any library, simply using the sketch you sent here. For general information to other people that want to use the iboard card with Domoticz, to avoid any problem like the following: 2016-12-18 12:06:40.840 MySensors: trying to connect to: 192.168.1.133:5603 2016-12-18 12:06:41.841 MySensors: connected to: 192.168.1.133:5603 2016-12-18 12:06:45.841 MySensors: Connection reset! 2016-12-18 12:06:45.842 TCP: Reconnecting in 30 seconds... Consider to use the Arduino IDE 1.6.8 to compile and upload the sketch, otherwise, with newest Arduino IDE you will get the error messages above. Thank you again for you help and a big hello to all the members of the forum. Regards
    • gregl

      RelayWithButtonActuator..what if Vera is offline?
      General Discussion • • gregl  

      17
      0
      Votes
      17
      Posts
      5050
      Views

      hek

      @gregl Yep, agree.. Distribute logic as far as possible out in the actuator-grid. So I would opt in for "remembering" the state in case of power-fail.. That is how I've configured all my z-wave devices and works like old "dumb" switches (=high WAF).
    • gregl

      Changing CE/CS Pins used
      Hardware • • gregl  

      4
      0
      Votes
      4
      Posts
      3214
      Views

      gregl

      Fantastic.. Thanks for this.
    • gregl

      sensor Node - Ready to buy!
      Hardware • • gregl  

      8
      0
      Votes
      8
      Posts
      5389
      Views

      gregl

      or i might use one as a multi sensor - temp, light and movement..
    • gregl

      Idea's ...Microview
      General Discussion • • gregl  

      13
      0
      Votes
      13
      Posts
      4789
      Views

      samppa

      @hek Oh so those SPIs can be connected in parallel. The challenge is that the vias for MISO and MOSI are hidden under the screen so wiring is tight to say the least. I have two extra microviews without bootloader and flashing that requires using those internal vias https://learn.sparkfun.com/tutorials/installing-a-bootloader-on-the-microview But even doing that might be out of my league. I could give one micoview free to someone in return for flashing them with bootloader and solving the issue of soldering the wires for the radio (SPI) so that the display still works.