Navigation

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

    Topics created by mfalkvidd

    • mfalkvidd

      Merry Christmas and Happy New 2023
      Announcements • • mfalkvidd  

      2
      4
      Votes
      2
      Posts
      27
      Views

      JeeLet

      thank you .... and a happy new year to MySensors users
    • mfalkvidd

      Zigbee gateway with support for multiple vendors?
      General Discussion • • mfalkvidd  

      25
      1
      Votes
      25
      Posts
      182
      Views

      hlehoux

      What is also most interesting with zigbee is a very important number of devices, and low price of them compared to zwave for instance.
    • mfalkvidd

      RGB night lamp
      My Project • esp32 ble rgb • • mfalkvidd  

      2
      6
      Votes
      2
      Posts
      53
      Views

      TheoL

      Looks awesome. Might be fun to put it outside before your front door on 31th October. Still have a Halloween project on my ever growing bucketlist xd Blynk is awesome for controlling Halloween projects.
    • mfalkvidd

      New esp32 board with more io pins, compatible with d1 mini
      Hardware • • mfalkvidd  

      1
      7
      Votes
      1
      Posts
      37
      Views

      No one has replied

    • mfalkvidd

      MySensors on Apple AirTags?
      Hardware • • mfalkvidd  

      2
      4
      Votes
      2
      Posts
      52
      Views

      Ivanli

      That's a great idea.
    • mfalkvidd

      The "new" Arduino Pro IDE
      Development • • mfalkvidd  

      15
      0
      Votes
      15
      Posts
      116
      Views

      scalz

      it's probably a stepup for newcomers, and certainly a late stepup like others said. Well, I'm very glad with my favorites IDEs, so I'm not interested in it too, even for testing. One of my top priority when choosing an IDE (like any other tool) is productivity, no matter where the tool comes from. Privacy is important too of course, but not a problem with IDEs. So I'm fond of Jetbrains, VS and VS Code, and a few free-to-use mcu manufacturers IDE for best xp
    • mfalkvidd

      Very nice 3d-printed weather clock
      Enclosures / 3D Printing • • mfalkvidd  

      3
      3
      Votes
      3
      Posts
      1221
      Views

      ToccaraKnauss

      It works in awesome manner. Really enjoyed its functioning. Thanks for sharing.
    • mfalkvidd

      CSMA / LBT for RFM69 new driver
      General Discussion • • mfalkvidd  

      7
      0
      Votes
      7
      Posts
      955
      Views

      mfalkvidd

      @jerby thanks for reporting. Could you share the CSMA levels for your area? (#define MY_DEBUG_VERBOSE_RFM69 and check the debug log to see what it prints)
    • mfalkvidd

      BME280 pressure not shown
      Domoticz • • mfalkvidd  

      4
      0
      Votes
      4
      Posts
      590
      Views

      mfalkvidd

      @nagelc yes that could be it. I have been fooled by that behavior before The log shows that the value was delivered though 20:16:22.561 -> 5255 TSF:MSG:SEND,1-1-0-0,s=6,c=1,t=4,pt=7,l=5,sg=0,ft=0,st=OK:100240.5
    • mfalkvidd

      Raspberry Pi Gateway not working on new install
      Troubleshooting • • mfalkvidd  

      5
      0
      Votes
      5
      Posts
      797
      Views

      mfalkvidd

      Although the default permissions are unexpected (at least to me), they are intentional. From: https://linux.die.net/man/3/grantpt The group ID is set to an unspecified value (e.g., tty). The mode of the slave is set to 0620 (crw--w----).
    • mfalkvidd

      MySensors 2.3.1 released
      Announcements • • mfalkvidd  

      13
      11
      Votes
      13
      Posts
      19216
      Views

      mfalkvidd

      @royson84 they probaby will work. There should not be any changes that break anything. But it has not been tested very thoroughly.
    • mfalkvidd

      BMP/E atmospheric pressure
      Development • • mfalkvidd  

      3
      0
      Votes
      3
      Posts
      1023
      Views

      Yveaux

      @mfalkvidd it was changed from bmp058 (which is end of life I think) directly to bme280, so it went from pressure only to environmental (including humidity). I personally have good experience with bme280, but is roughly double the price of the bmp180. I have to look if libraries support both bmp180 and bme280; if so we could combine support for both sensors on this page/sketch.
    • mfalkvidd

      Atmega328 internal temperature sensor (yes it exists!)
      Hardware • • mfalkvidd  

      12
      6
      Votes
      12
      Posts
      4733
      Views

      dirkc

      @mfalkvidd said in Atmega328 internal temperature sensor (yes it exists!): hwCPUTemperature() sorry, stupid question maybe, but with my 328p based sensors hwCPUTemperature() is not automatically callable using just #include <MySensors.h> --> neither with 2.2.0 nor with 2.3.0 Do I have to include /hal/architecture/AVR/MyHwAVR.h ? Cannot compile it, what path should I use in the #include statement?
    • mfalkvidd

      ESP8266 fatal error: gdb_hooks.h: No such file or directory [solved]
      Troubleshooting • • mfalkvidd  

      1
      2
      Votes
      1
      Posts
      2099
      Views

      No one has replied

    • mfalkvidd

      Domoticz version 4.9700 released (stable)
      Domoticz • • mfalkvidd  

      9
      3
      Votes
      9
      Posts
      3136
      Views

      MasMat

      @nagelc I've been afraid to try that. Maybe do a full backup and try it. Not sure if I should erase everything first or not.
    • mfalkvidd

      Soft WDT reset on ESP8266 RFM69 gateway after find parent
      Troubleshooting • • mfalkvidd  

      21
      0
      Votes
      21
      Posts
      2360
      Views

      mfalkvidd

      About 35 minutes after I reset the node, it started reporting again (without any other changes). I have no idea what caused it to start working.
    • mfalkvidd

      Water pressure sensors?
      Hardware • • mfalkvidd  

      41
      0
      Votes
      41
      Posts
      7718
      Views

      bjacobse

      @ybirch Hi did you see the post I posted? https://forum.mysensors.org/topic/9313/water-pressure-sensors/30 cost efficient, use a salvaged refrigerator compressor and purchase a long aqaurium airpump hose and a pressure transducer - might be fairly cheap
    • mfalkvidd

      Battery nodes and communication failure
      Development • • mfalkvidd  

      2
      0
      Votes
      2
      Posts
      633
      Views

      luizrrocha

      Hi, it looks like this constant is used only during the first initialization of the node, when the parent_id and the node_id are being written to the node's eeprom, not during normal operation. I tested a method from another suggestion on this forum, to ask the controller for the last value sent by the node, since if you ask for data it do times out and you could then assume that the gateway was offline or some other network error occurred, but this technique did not work all the time. I have power outages here that disable the gateway and then the nodes eat up their batteries trying to resend the same message over and over and I would love to find a way to stop this from happening too.
    • mfalkvidd

      MySensors 2.2.0 released
      Announcements • • mfalkvidd  

      33
      17
      Votes
      33
      Posts
      8509
      Views

      Anticimex

      @jjk yes, by avoiding to use smartSleep: https://www.mysensors.org/apidocs/group__MySensorsCoregrp.html#gab5f84c4227e3478af4b6600d5e8d8b15
    • mfalkvidd

      Troubleshooting communication [solved]
      Troubleshooting • • mfalkvidd  

      2
      6
      Votes
      2
      Posts
      1064
      Views

      gohan

      In fact @sundberg84 usually advices to have the antenna sticking out of the pcb underneath as the ground planes tend to what they are made for: shielding EM. Also trace antenna orientation plays a role too
    • mfalkvidd

      Reverse-engineering a GL10 ble / bluetooth battery monitor using ESP32
      My Project • esp32 ble battery monitor reverse-engineering gl10 • • mfalkvidd  

      5
      1
      Votes
      5
      Posts
      2266
      Views

      Nca78

      Nice, thank you for sharing. Not very surprised about the use of running speed and cadence profile as there is no profile for voltage reporting (battery service can only report a percentage).
    • mfalkvidd

      Dallas18B20 begin causes reset [solved]
      Troubleshooting • • mfalkvidd  

      4
      0
      Votes
      4
      Posts
      1054
      Views

      mfalkvidd

      Thanks @robosensor I decided to re-do all wiring to make a clear photo. When I did that I realized that I had connected GND on the DS18B20 to the reset pin on the Pro Mini. No wonder the mcu was reset when communication occurred on the onewire bus.
    • mfalkvidd

      Using object from another file
      Development • • mfalkvidd  

      11
      0
      Votes
      11
      Posts
      2058
      Views

      mfalkvidd

      @BulldogLowell it is just not the way I expected to do it.
    • mfalkvidd

      Error: CustomerCounter hardware (12) nothing received for more than 5 Minutes!
      Domoticz • • mfalkvidd  

      19
      0
      Votes
      19
      Posts
      3449
      Views

      manutremo

      Personally I'm using the last versions of both the arduino ide and the boards definitions. Also I would expect all of us would be seeing the same problem if that was the case, wouldn't we? Not a big deal for me anyways, the only reason to select the wemos d1 r2 in my case is because I'm using an enclosure designed for the arduino uno which it fits perfectly... But no problem on switching to the nodemcu.
    • mfalkvidd

      MySensors capabilities deciphering
      Troubleshooting • • mfalkvidd  

      8
      6
      Votes
      8
      Posts
      1637
      Views

      ahmedadelhosni

      @mfalkvidd Yes ofcourse It works very well
    • mfalkvidd

      Use link time optimizations to save flash / program storage space (Sketch too big error)
      Development • flash size sketch too big program storage space • • mfalkvidd  

      10
      4
      Votes
      10
      Posts
      2737
      Views

      mfalkvidd

      Update: LTO is enabled by default for avr core/board version 1.6.12 and newer.
    • mfalkvidd

      FOTA "appstore" for esp8266
      General Discussion • • mfalkvidd  

      1
      3
      Votes
      1
      Posts
      524
      Views

      No one has replied

    • mfalkvidd

      Esp8266 wifi gateway with RSSI for RFM69 and Wifi
      My Project • • mfalkvidd  

      1
      3
      Votes
      1
      Posts
      3185
      Views

      No one has replied

    • mfalkvidd

      Unable to compile Raspberry Pi gateway from development due to too error: many initializers for ‘spi_ioc_transfer’
      Development • • mfalkvidd  

      6
      0
      Votes
      6
      Posts
      2213
      Views

      mfalkvidd

      Thanks @marceloaqno, the gateway compiles fine now (at fa673bdb3e5) In case anyone else runs into this problem, this is what I did: pi@raspberrypi ~ $ sudo apt-cache policy linux-libc-dev linux-libc-dev: Installed: 3.2.51-1+rpi1 Candidate: 3.2.51-1+rpi1 Version table: 3.16.39-1+deb8u1~bpo70+1 0 100 http://http.debian.net/debian/ wheezy-backports/main armhf Packages *** 3.2.51-1+rpi1 0 500 http://mirrordirector.raspbian.org/raspbian/ wheezy/main armhf Packages 100 /var/lib/dpkg/status pi@raspberrypi ~ $ sudo apt-get install linux-libc-dev=3.16.39-1+deb8u1~bpo70+1 Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: linux-libc-dev 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 1,027 kB of archives. After this operation, 490 kB of additional disk space will be used. Get:1 http://http.debian.net/debian/ wheezy-backports/main linux-libc-dev armhf 3.16.39-1+deb8u1~bpo70+1 [1,027 kB] Fetched 1,027 kB in 0s (1,259 kB/s) (Reading database ... 63731 files and directories currently installed.) Preparing to replace linux-libc-dev:armhf 3.2.51-1+rpi1 (using .../linux-libc-dev_3.16.39-1+deb8u1~bpo70+1_armhf.deb) ... Unpacking replacement linux-libc-dev:armhf ... Setting up linux-libc-dev:armhf (3.16.39-1+deb8u1~bpo70+1) ...
    • mfalkvidd

      Getting more usable input pins on Wemos D1 Mini / ESP8266
      Hardware • • mfalkvidd  

      14
      0
      Votes
      14
      Posts
      15481
      Views

      emc2

      @mfalkvidd right, I was thinking of updating RFM69 wiring diagrams on https://www.mysensors.org/view/171#rfm69-&-esp8266 , but for how the radio module go I was interested in the rfm96 range / reliability to see how it goes. Anyway I will look for futures updates on the forum.
    • mfalkvidd

      Battery alternative for DS3231 ?
      Hardware • • mfalkvidd  

      9
      0
      Votes
      9
      Posts
      11282
      Views

      mfalkvidd

      I desoldered the 201 resistor, found that easier than cutting the trace. Works great.
    • mfalkvidd

      Making the code boxes in the forum a bit bigger?
      General Discussion • • mfalkvidd  

      3
      0
      Votes
      3
      Posts
      894
      Views

      mfalkvidd

      @hek I see. Yes, I have had trouble finding a place to scroll so making it bigger might be bad. Better keep it the way it is.
    • mfalkvidd

      MySensors-powered arcade game screen with wireless gamepad controller
      My Project • esp8266 • • mfalkvidd  

      10
      12
      Votes
      10
      Posts
      6703
      Views

      alowhum

      WOW!!! What a cool project!
    • mfalkvidd

      9+A 5V power supply?
      Hardware • • mfalkvidd  

      9
      0
      Votes
      9
      Posts
      2541
      Views

      kalle

      Here are also some similar power supply and they ship really fast https://kutop.com/catalogsearch/result/?q=power+supply
    • mfalkvidd

      The basics of MySensors? (continued)
      General Discussion • • mfalkvidd  

      4
      0
      Votes
      4
      Posts
      1770
      Views

      mfalkvidd

      @marex after sleeping I think I understand your question. Start by writing nothing in the setup, presentation and loop. Just use the examples as they are, following the instructions on the links I have already posted. That will get you a working gateway and working temperature nodes. You can then add your own code for handling communication with your phone, or just use one of the available controllers which will handle that communication as well. With MySensors it really is that simple. Note: I am moving this discussion to a separate thread, since it really has nothing to do with the MySensors 2.0 release.
    • mfalkvidd

      WS2811 RGB strip lights up in groups of three
      Hardware • • mfalkvidd  

      11
      0
      Votes
      11
      Posts
      8369
      Views

      jack.historia

      You guys had the wrong LED type in the arduino setup: // NEO_GRB Pixels are wired for GRB bitstream (most NeoPixel products) // NEO_RGB Pixels are wired for RGB bitstream (v1 FLORA pixels, not v2) // NEO_RGBW Pixels are wired for RGBW bitstream (NeoPixel RGBW products) I have the 12V GRB option - one controller connected to 3 leds but it runs smooth as a cat. With RGB and RGBW it doesn't work that well and I see only 3 led chunks. ali express link 12V2811 5m |1 50 leds | White PCB That is the setup line that works for the WS2811 RGB strip (GRB strip): Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800); I went on this by accident and I thought I should let you know even after 2 years Hope that helps
    • mfalkvidd

      Tool for static analysis of memory usage
      Development • • mfalkvidd  

      8
      1
      Votes
      8
      Posts
      2894
      Views

      TheoL

      @mfalkvidd lots of ram is what we like. In case you're interested. This is a good i2c slave http://jamesreubenknowles.com/arduino-i2c-1680 tutorial and this is a great explanation of the i2c protocol How I2C Communication Works and How To Use It with Arduino – 09:57— How To Mechatronics
    • mfalkvidd

      Female-female header connectors?
      Hardware • • mfalkvidd  

      8
      0
      Votes
      8
      Posts
      2919
      Views

      kimot

      You realy think, that it Is useful fór connecting two male connectors together, what way asked?
    • mfalkvidd

      Recommendation for 12V battery power
      Hardware • • mfalkvidd  

      12
      0
      Votes
      12
      Posts
      5317
      Views

      markzoes

      Great thread.
    • mfalkvidd

      irlz44n not fully open using 3.3V Arduino
      Hardware • • mfalkvidd  

      5
      0
      Votes
      5
      Posts
      4795
      Views

      LastSamurai

      I think I was using some of these for my rgbw controller and they seem to work just fine for me. As I switched to smd parts I can't really help you though My only idea would be to control them via some (smaller) transistor(s) that can be fully opened with 3.3V (or just redesign).
    • mfalkvidd

      Nice push buttons?
      Hardware • • mfalkvidd  

      11
      0
      Votes
      11
      Posts
      5489
      Views

      NeverDie

      I'm using these as a reset button on some wireless solar nodes: https://www.aliexpress.com/item/10Pcs-SMT-3-6-2-5-MM-Tactile-Tact-Push-Button-Micro-Switch-Momentary-2-Pins/32648604590.html?spm=2114.13010608.0.0.gOyHck They have a nice solid feel to them.
    • mfalkvidd

      Humble book bundle for electronics
      General Discussion • • mfalkvidd  

      5
      3
      Votes
      5
      Posts
      1500
      Views

      drock1985

      Thanks for the link @mfalkvidd , ordered. Should be some fun projects for the kid and I over the summer.
    • mfalkvidd

      Codebender on ipad hiding code
      General Discussion • • mfalkvidd  

      8
      0
      Votes
      8
      Posts
      1494
      Views

      mfalkvidd

      Found it! Thanks a million!
    • mfalkvidd

      Might have bricked 60 WS2811 RGB leds
      Troubleshooting • • mfalkvidd  

      20
      0
      Votes
      20
      Posts
      7615
      Views

      mfalkvidd

      @gregl I don't think I have that Arduino around anymore so I can't check. Sorry.
    • mfalkvidd

      Power source and worklight on sale (in Sweden)
      General Discussion • • mfalkvidd  

      4
      2
      Votes
      4
      Posts
      994
      Views

      Samuel235

      Damn you sweedish guys! I need one of those lighted magnifying workstations. I might move there just to get this sale haha.
    • mfalkvidd

      Good-looking way to control dimmer?
      General Discussion • • mfalkvidd  

      11
      1
      Votes
      11
      Posts
      3138
      Views

      mfalkvidd

      @BulldogLowell that's a great idea. It will require some learning (a guest will probably not be able to figure out how to handle the lights) but once learned, it should be really easy to operate.
    • mfalkvidd

      Multimeter recommendation?
      General Discussion • • mfalkvidd  

      43
      1
      Votes
      43
      Posts
      13714
      Views

      Nca78

      @gohan said in Multimeter recommendation?: It is a common issue I see in these small cheap meters. There is always the openhardware current meter for what you are suggesting Sure but there are other multimeters with a common plug between mA and uA so you can just change range on the selector and you don't have to cut the power to your node during that switch.
    • mfalkvidd

      Best dimmable countertop lights?
      Hardware • led light dimmer • • mfalkvidd  

      14
      0
      Votes
      14
      Posts
      6314
      Views

      BulldogLowell

      @Samuel235 said: Just one of many ideas, the possibilties are endless. I'de always go for RGB leds over just white, allows for more customisation while able to still give you the same white as the white leds. ... unless, as in my use case, colors are not needed. I'm too stingy to pay for the unused dry powder!
    • mfalkvidd

      Physical mood light color and brightness selector based on LCD touchscreen (with demo video)
      My Project • • mfalkvidd  

      3
      10
      Votes
      3
      Posts
      3297
      Views

      hek

      Awesome, please add this to openhardware.io.
    • mfalkvidd

      Discussion: Reliable delivery
      Development • protocol • • mfalkvidd  

      54
      1
      Votes
      54
      Posts
      16506
      Views

      Imre Telek

      @mfalkvidd: So you are right, requestEcho is the end-to-end echo parameter but end-to-end means something else what I thought. Meanwhile I tested the other direction: controller (node-red) ->mqtt -> gateway -> sensor_node message sending with ack turned on in mqtt message. I found that in this direction the sensor node sends back echo automatically to the controller through gateway and through mqtt. So it is real (full) end-to-end echo If the controller sending command to my-sensor node, but it is not that if the node sends data to controller (in that case gateway sends back echo to node). I haven't found a description in documentation about this behavior. Is it planned to add this feature to tell the gateway to enable pass through echo request to controller? So communication in both direction whould be symmetric. Thanks!
    • mfalkvidd

      Requesting variables reliably - how?
      Development • • mfalkvidd  

      14
      0
      Votes
      14
      Posts
      4160
      Views

      martinhjelmare

      Shouldn't the controller respond with a set message to the req message? Now it's responding with a req, first with empty payload then with a payload. I don't think that makes sense. Edit: The first response must be the ack right?
    • mfalkvidd

      Bootloader and fuses for Pro Mini 3.3V using Arduino UNO as ISP
      Troubleshooting • • mfalkvidd  

      25
      0
      Votes
      25
      Posts
      17337
      Views

      mfalkvidd

      After visiting @m26872 and getting great insights to his workflow and his projects, I can report this: The avrisp mk ii I borrowed from a co-worker does not work. So that's why I wasn't successful using that device. AVR Studio gave some helpful error messages, much more helpful than Arduino IDE, so lesson learned: Use AVR Studio when troubleshooting. Using my Arduino Uno as ISP worked fine at his place, even without the capacitor. When I got home, I tried 10 times without the capacitor and all but 1 were successful. Strange. But at least it works We were not able to revive any of the 4 Pro Mini i "bricked" when experimenting. Good thing they are so cheap A BIG thanks to m26872 for helping me and for a nice visit to his home.
    • mfalkvidd

      Requesting variables from Domoticz
      Development • • mfalkvidd  

      14
      0
      Votes
      14
      Posts
      4418
      Views

      mfalkvidd

      @MikeF I don't have access to the code now, but you are probably right. I need to copy the whole enum, selectively copying doesn't work.
    • mfalkvidd

      Creating a RGB selector and adding it to Domoticz
      Domoticz • • mfalkvidd  

      5
      0
      Votes
      5
      Posts
      5269
      Views

      flopp

      This is the code i am using and it is working fine with MyS 1.5.1 and Domoticz 3.5877. /*PROJECT: MySensors / RGB test for Light & Sensor PROGRAMMER: AWI/GizMoCuz DATE: september 27, 2015/ last update: October 10, 2015 FILE: AWI_RGB.ino LICENSE: Public domain Hardware: Nano and MySensors 1.5 Special: uses Fastled library with NeoPixel (great & fast RBG/HSV universal library) https://github.com/FastLED/FastLED Remarks: Fixed node-id Added option to request/apply last light state from gateway Domoticz typicals - 2015 10 10: - Domoticz is using HUE values internally, there might be a slight difference then using direct RGB colors. */ #include <MySensor.h> #include <SPI.h> #include <FastLED.h> const int stripPin = 4 ; // pin where 2812 LED strip is connected const int numPixel = 3 ; // set to number of pixels #define NODE_ID 254 // fixed MySensors node id #define CHILD_ID 0 // Child Id's CRGB leds[numPixel]; char actRGBvalue[] = "000000"; // Current RGB value uint16_t actRGBbrightness = 0xFF ; // Controller Brightness int actRGBonoff=0; // OnOff flag MySensor gw; MyMessage lastColorStatusMsg(CHILD_ID,V_VAR1); void setup() { FastLED.addLeds<NEOPIXEL, stripPin >(leds, numPixel); // initialize led strip gw.begin(incomingMessage, NODE_ID, false); // initialize MySensors gw.sendSketchInfo("AWI RGB Light", "1.1"); gw.present(CHILD_ID, S_RGB_LIGHT); // present to controller // Flash the "hello" color sequence: R, G, B, black. colorBars(); //Request the last stored colors settings gw.request(CHILD_ID, V_VAR1); } void loop() { gw.process(); // wait for incoming messages } void colorBars() { SendColor2AllLEDs( CRGB::Red ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Green ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Blue ); FastLED.show(); delay(500); SendColor2AllLEDs( CRGB::Black ); FastLED.show(); delay(500); } void SendColor2AllLEDs(const CRGB lcolor) { for(int i = 0 ; i < numPixel ; i++) { leds[i] = lcolor; } } void SendLastColorStatus() { String cStatus=actRGBvalue+String("&")+String(actRGBbrightness)+String("&")+String(actRGBonoff); gw.send(lastColorStatusMsg.set(cStatus.c_str())); } String getValue(String data, char separator, int index) { int found = 0; int strIndex[] = {0, -1}; int maxIndex = data.length()-1; for(int i=0; i<=maxIndex && found<=index; i++){ if(data.charAt(i)==separator || i==maxIndex){ found++; strIndex[0] = strIndex[1]+1; strIndex[1] = (i == maxIndex) ? i+1 : i; } } return found>index ? data.substring(strIndex[0], strIndex[1]) : ""; } void incomingMessage(const MyMessage &message) { if (message.type == V_RGB) { // check for RGB type actRGBonoff=1; strcpy(actRGBvalue, message.getString()); // get the payload SendColor2AllLEDs(strtol(actRGBvalue, NULL, 16)); SendLastColorStatus(); } else if (message.type == V_DIMMER) { // if DIMMER type, adjust brightness actRGBonoff=1; actRGBbrightness = map(message.getLong(), 0, 100, 0, 255); FastLED.setBrightness( actRGBbrightness ); SendLastColorStatus(); } else if (message.type == V_STATUS) { // if on/off type, toggle brightness actRGBonoff = message.getInt(); FastLED.setBrightness((actRGBonoff == 1)?actRGBbrightness:0); SendLastColorStatus(); } else if (message.type==V_VAR1) { // color status String szMessage=message.getString(); strcpy(actRGBvalue, getValue(szMessage,'&',0).c_str()); actRGBbrightness=atoi(getValue(szMessage,'&',1).c_str()); actRGBonoff=atoi(getValue(szMessage,'&',2).c_str()); SendColor2AllLEDs(strtol(actRGBvalue, NULL, 16)); FastLED.setBrightness((actRGBonoff == 1)?actRGBbrightness:0); } FastLED.show(); } When you get the RGB Light in Device, add it and edit the Device to be a Dimmer instead then click on the three cubes and start to select the color you like
    • mfalkvidd

      Mobile app for nodebb? Or some other way to make the mobile site accessible?
      General Discussion • • mfalkvidd  

      6
      0
      Votes
      6
      Posts
      2270
      Views

      vondes

      I need this information for my -Removed by moderator- , so how i can do that?
    • mfalkvidd

      Start using IV in AES encryption?
      Development • • mfalkvidd  

      31
      0
      Votes
      31
      Posts
      10468
      Views

      Anticimex

      @ahmedadelhosni signing just underwent a major overhaul recently on development branch. We are also looking into a node locking mechanism when the node suspects it is under attack from someone trying to brute force a signed message or trying to predict nonces calculated from a bad rng implementation. So security is very much being looked at. And even with missing IV, AES encryption would add some obfuscation to the messages and will in combination with signing still deter a lot of potential attackers.
    • mfalkvidd

      MyController+Domoticz at same time?
      MyController.org • • mfalkvidd  

      33
      0
      Votes
      33
      Posts
      14684
      Views

      petewill

      @sundberg84 Thanks! Ok, this behavior is different from mine. I was hoping we had a similar experience. I just downgraded from the beta to the latest stable release. I'll see if that helps...
    • mfalkvidd

      SSD1289 touch TFT screen?
      Hardware • • mfalkvidd  

      6
      0
      Votes
      6
      Posts
      3640
      Views

      mfalkvidd

      New update: It turns out that the screen that was called SSD1289 really isn't a SSD1289. It is a 16-bit ILI9341. I modified the UFTF library according to the instructions in https://forum.arduino.cc/index.php?topic=325106.0 and it works! I am able to run the screen using an Arduino Pro mini, utilizing all controllable pins (including the pins otherwise used for the serial port, so no debugging). My breadboard now has 70 wires Demo: https://www.youtube.com/watch?v=XRL6oWHUSMg&feature=youtu.be
    • mfalkvidd

      Step-by-step procedure to connect the NRF24L01+ to the GPIO pins and use the Raspberry as a Serial Gateway (MySensors 1.x)
      Hardware • gateway raspberry pi raspberry nrf24 raspberry nrf24l01 gpio • • mfalkvidd  

      168
      14
      Votes
      168
      Posts
      174980
      Views

      mfalkvidd

      @ricorico94 welcome to the MySensors commu ity! All you need to do when switching from raspberry pi gateway to ethernet gateway is change the "hardware" configuration in Domoticz. However, if you are just starting out, don't use this gateway. It works for MySensors 1.x only. Use the new raspberry pi gateway instead.
    • mfalkvidd

      Juggling different MySensor versions?
      Development • • mfalkvidd  

      18
      0
      Votes
      18
      Posts
      5408
      Views

      mfalkvidd

      I haven't tried yet, but I've been thinking about having two installations of the Arduino IDE. One for each MySensors version.
    • mfalkvidd

      ESP8266 (ESP-201) endless reboot
      Troubleshooting • • mfalkvidd  

      8
      0
      Votes
      8
      Posts
      4563
      Views

      Yveaux

      @mfalkvidd said: MB102 Again, make sure to power it from a decent power supply. It hardly has any buffering/filtering onboard. I use these boards regularly for prototyping but any noise/spikes/dips present on the input will directly be reflected on the output.
    • mfalkvidd

      Presentation at Cloudbeer Stockholm 2015-10-05
      General Discussion • • mfalkvidd  

      2
      2
      Votes
      2
      Posts
      950
      Views

      mfalkvidd

      Here is the video from my presentation if anyone is interested: https://www.youtube.com/watch?v=jluCmp8X29I&index=5&list=PLWYzpH_PTTmPrwl-kjN_V6cJZDzLW-ELb
    • mfalkvidd

      Office plant monitoring
      My Project • • mfalkvidd  

      223
      11
      Votes
      223
      Posts
      131572
      Views

      mfalkvidd

      @gohan alkaline batteries in general have been tested quite extensively and don't deviate much from the S-curve characteristics.
    • mfalkvidd

      NodeBB needs your permission to activate desktop notifications. Click here to activate them. [duplicate]
      General Discussion • • mfalkvidd  

      3
      0
      Votes
      3
      Posts
      1334
      Views

      mfalkvidd

      Thanks Sparkman. I searched the forum for the banner message, didn't realize that it had been discussed before without mentioning the contents of the message. Sorry about that.
    • mfalkvidd

      Gateway on Raspberry Pi not responding properly [SOLVED]
      Troubleshooting • • mfalkvidd  

      12
      0
      Votes
      12
      Posts
      4708
      Views

      mfalkvidd

      Me too Thanks @Sparkman for helping out!
    • mfalkvidd

      Raspberry Pi 2 Serial Gateway [Solved]
      Troubleshooting • • mfalkvidd  

      4
      0
      Votes
      4
      Posts
      2860
      Views

      mfalkvidd

      I had to switch back to librf24-bcm, see this thread. Not sure why, but I got no errors when compiling.
    • mfalkvidd

      gw.send seems to cause interrupts on pin 3 [SOLVED]
      Troubleshooting • • mfalkvidd  

      13
      0
      Votes
      13
      Posts
      4076
      Views

      mfalkvidd

      Good idea. I would then have access to mains and I can experiment and adjust hardware and software as often as I need.