Hello again
I've attached a version which show/demonstrates the problem I have when using Timer1.attachInterrupt(dim_check, freqStep);. I'm using a Veralite and simple pro mini arduino to controll 2x SSR and 2x Triac dimmers. I use a structured array to hole the various valus for the lamps.
When I upload a version of this attached code with Timer1.attachInterrupt(dim_check, freqStep);commented out - the SSR's work fine.
When I uncomment the one line in the code the is no response to the Vera's command to switch on a SSR lamp.
As you can see the interrupt routine is extremely short - nothing but the call.
I wonder if someone else might have any idea or have run into this problem before.. The interrupt is to occur every 75uS so as to allow 128 steps of dimming.Timer1Testing.ino
BobC
@BobC
Best posts made by BobC
Latest posts made by BobC
-
RE: AttachInterrupt and receiving messages problem
-
RE: AttachInterrupt and receiving messages problem
@TheoL I'm also having this problem using TimerOne.
My code is simply
Timer1.initialize(freqStep); // Initialize TimerOne library for the freq we need 75uS
Timer1.attachInterrupt(dim_check);This code is part of a 2xSSR and 2x Triac Dimmer project.
The SSR's work fine being controlled by Veralite so long as the attachInterrupt is commented out. as soon as the line is included, Vera cannot control the SSR's.I wonder if Mysensors might have something to do with the problem. Hope Hek sees this post and can reply
-
RE: Serial Port for Node
@BobC OK no problem. A new idea. As I only need to Tx to the player I'll just do a bit of bit banging to a pin. That should work just fine.
The idea behind the project is to add a door bell to my system which has selectable MP3 files to play when the 'button' is pressed. Really quite a fun thing to have a personalised message to welcome visitors to special events rather than just a DingDong. -
Serial Port for Node
I'd like to use a DF Player Sound Module on a node using a Pro Mini. The sound module can be controlled using a serial interface at 9600 but all serial libraries I've tried - being the usual ones on the Arduino and Teensy websites use interupts and while running well without MySensors included always bring up compilation errors when including MySensors.
Although there is another method of control using stepped analog voltages on other inputs , I'd prefer to use the serial inputs if possible. Has anyone ever connected a serial device to a node? Any suggestions would be welcome. -
RE: MySensors and Vera UI7
I've learnt the same trick. Reload Luup from the serial config screen.
After a couple of trials and then finding the UI7 on Github - all's working fine with my first light sensor.
Now to building my solar HWS sensors. Thanks Hek for all your work and patience with everyone, a donation is on the way for you to buy a UI7 device. Cheers! -
Domotiga 1.0.021 nearly working with actuators
I've downloaded and have running the latest version of Domotiga on my Pi. I want to test out the sending of a command to my actuator. I have a node with the example actuator code set up for two relays/leds. Communication from the Domotiga serial monitor to the LED is working just fine. I've set up an action in Domotiga called Light on and another called light off. I'm trying to run the action with the 'Run Now button in Domotiga but with no effect. The Domotiga main log reports
[MySensors} ERROR: 'unmatched parentheses' at CMySensors.SendCommand.332.
Perhaps if this could be looked at we/I would be a step closer to getting Domotiga to run with My Sensors Thanks and looking forward to any help -
RE: Freedomotic
@freedomotic Good morning and thanks to all for the hard work you put in.
I went to Domotic website - downloaded the zip files , all fine but when trying to load the Mysensors plugin it was unavailable!!
I'm just starting with win 7 but will upgrade to pi when I get a bit of experience.
Any idea whrn the plugin will be available?thanks