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
  1. Home
  2. Hardware
  3. Mysensor-ing a thermostatic valve

Mysensor-ing a thermostatic valve

Scheduled Pinned Locked Moved Hardware
17 Posts 5 Posters 8.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sorg
    wrote on last edited by
    #8

    The fuses of th HR25 atmega are:

    E:FD, H:91, L:62

    If i trust the AVR duse calc: http://www.engbedded.com/fusecalc/
    This means that the 8-divider is applied on the clock... this might explain the behavious seen above.

    So i changed the CKDIV8 bit:

    avrdude -c usbasp -p m329p -U lfuse:w:0xe2:m
    

    and voila the pin 34 , blink à 1Hz.
    Frequency problem solved.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sorg
      wrote on last edited by
      #9

      OK, some news....
      I have connected a rf24 module to the external header, hoping to drive it with softSPI (in order to limit internal modification of the valve).

      While compiling a simple mysensor sketch, i can see several issues with the libraries Lowpower.h and PinchangeInt.h.... these libraries are very MCU-dependant and are not compiling. It is probably doable to modify them in order to upport the 329p, but it is out of my field of competence. I don't really understand the internals of theses libs.
      If someone can help, it will be apreciated.

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #10

        These dependencies has been removed in the development branch.

        S 1 Reply Last reply
        0
        • hekH hek

          These dependencies has been removed in the development branch.

          S Offline
          S Offline
          Sorg
          wrote on last edited by
          #11

          @hek said:

          These dependencies has been removed in the development branch.

          Is that sure ? I have not tried to compile dev branch yet, but i still find a reference to lowpower in Mysensor.h :

          #ifdef __cplusplus
          #include <Arduino.h>
          #include <SPI.h>
          #include "utility/LowPower.h"
          #endif
          
          hekH 1 Reply Last reply
          0
          • S Sorg

            @hek said:

            These dependencies has been removed in the development branch.

            Is that sure ? I have not tried to compile dev branch yet, but i still find a reference to lowpower in Mysensor.h :

            #ifdef __cplusplus
            #include <Arduino.h>
            #include <SPI.h>
            #include "utility/LowPower.h"
            #endif
            
            hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by hek
            #12

            @Sorg

            Sorry.. I only read PinChangeInt. Still a Lowpower dependecy if you want to use the sleep functions.

            Might be good to make this as a "driver" as well in the future. But it will be hard because it is relatively hardware dependent if you want to wake up on external triggers.

            S 1 Reply Last reply
            0
            • hekH hek

              @Sorg

              Sorry.. I only read PinChangeInt. Still a Lowpower dependecy if you want to use the sleep functions.

              Might be good to make this as a "driver" as well in the future. But it will be hard because it is relatively hardware dependent if you want to wake up on external triggers.

              S Offline
              S Offline
              Sorg
              wrote on last edited by
              #13

              @hek Sure.
              Modifying the lowpower library to manage the 329p is definitely doable but i need to understand the internals and read the MCU datasheet. Time consuming but doable.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Sorg
                wrote on last edited by
                #14

                Other general question:
                At this stage, is the "dev" branch compatible with a "stable" gateway and "stable" nodes ?

                Luc3asL 1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #15

                  Yes, it should.

                  1 Reply Last reply
                  0
                  • S Sorg

                    Other general question:
                    At this stage, is the "dev" branch compatible with a "stable" gateway and "stable" nodes ?

                    Luc3asL Offline
                    Luc3asL Offline
                    Luc3as
                    wrote on last edited by
                    #16

                    @Sorg Hello, I am really interested in this topic, do you have any new informations or progress in this project ?

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Sorg
                      wrote on last edited by
                      #17

                      Hello Lucas,

                      Last year , i did not achieve to run a sketch on the HR25. I remain convinced that it should be doable, but i am not enough aware of the inner details of the MCU / Arduino.
                      also, my job has become a lot more time consuming, and i have not been able to spend time on this project for several months.

                      If someone want to take over from here, i would be very happy.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      16

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.0k

                      Posts


                      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

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