Mysensor-ing a thermostatic valve
-
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:mand voila the pin 34 , blink à 1Hz.
Frequency problem solved. -
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. -
@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 -
@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" #endifSorry.. 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.
-
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.
-
Other general question:
At this stage, is the "dev" branch compatible with a "stable" gateway and "stable" nodes ? -
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login