Navigation

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

    Best posts made by stedew

    • RE: Best IDE to use for MySensors projects

      @ivankravets
      Hello Mr Ivankravets

      Ok birthday is done and bottles empty....
      -Well When you compare to Arduino IDE vs PlatforIO is something slightly different:
      Running the "BatteryPoweredSensor.ino" (Mysensors 2.0) example in Arduino 1.6
      1)Load new Sketch "Examples">>Mysensors >> BatteryPoweredSensor
      2)Compile >>will not work for all boards (due to INTERNAL is not defined for all AVR members )
      3)Download to controller

      PlatformIO:
      1) Choose Board (here tested with UNO)
      2) Choose Dir (only existing dir no create possible) (First make MKDIR BatteryPoweredSensor )
      3) Copy code file from Mysensors example dir to PlatformIO \src dir (right click open in explorer)
      4) Enable Use development Version of PlatformIO (at the moment for PIO 3.0) in settings
      5) Add PATH string variable in settings (Good explanation anyway)
      6) Start cmd (Powershell in Windoze) from PlatformIO
      7) Execute the cmd  >>  platformio lib install 548 (For Mysensors 2.0 lib)
      8) Compile
      9) Download to controller
      

      -This being sayed for these additional steps you get something what is non existing in Arduino ide:
      +AutoComplete variables /suggest with function prototypes
      +Acces to all used code off the included library
      +Compile in seconds

      -Still some questions also:
      Is there a quick way to refractor over source files (not readed the manual)?
      Goto declaration does not work (maybe my fault) Clang is installed however.
      Local version control?
      Specify wich serial port for upload (and not use the default first one)

      Tnx in advance,
      Stefan.

      posted in Development
      stedew
      stedew
    • RE: Esp8266 with wifi off

      @emc2

      Tnx spot on 👍

      Before i measure 88mA and now ~ 30mA. In reality the profit (% saving) will be even higher. The test setup is with all node mcu hardware so there will definitly be a higher gain with a "bare" esp.
      As for some may ask: why use a esp (nodeMCU) as a arduino?
      -"Solid" Integrated 3v3 regulator
      -Good RF design(shielding)
      -USB RS232 interface
      -High processing power (if needed).

      -I could not get the wifi gateway rock solid (compared to the RS232) .
      From the moment domoticz disconnect (or the ESP lost connection) there was no communication anymore without an intervention to domoticz.

      Regards,
      Stefan.

      posted in General Discussion
      stedew
      stedew
    • RE: Help needed - SSR switch / SCR dimmer

      @ksga
      For the R1 R2 it is easy P = I² * R so for 240v rms this gives 8mA² * 30000 gives 1.92W! this wil give you a constant energy loss off 2W only to know the zero crossing (even when the light is out). Keep the old dimmer with the filament bulbs you will save energy 😃
      Possible the circuit is designed for 120VAC then you still need at least 1/2watt resistor (and 1W powerloss)
      When you google a little i find combinations that use a transformer for the zero crossing.
      Also the circuit here on instructables can help you
      integrate this in the switch example is not a real good idea. Build the code for the zero crossing and dimming (firing triac) preferable in a seperate module /code block without the mysensors overhead. maybe you find some clues where you got the schema.
      When you can succesfully dim on/off the lamp with your code then you can start thinking to glue it on the Mysensor lib(s)
      I didn't search the forum here but i can imagine that building a interrupt driven zero crossing dimmer is a real challence. Particulary when it has to co-operate with the mysensor library...
      I hope this helps
      Regards ,
      Stefan

      posted in General Discussion
      stedew
      stedew