Don't forget that also a good idea is to throw a capacitor on the power for the radio. I have had decent luck not running one on the regular radios , but when you go up to the power amplified radio I feel it is absolutely necessary. A lot of irregularities can be traced to bad and noisy power.
Topdawg2881
@Topdawg2881
Best posts made by Topdawg2881
-
RE: Problem with NRF24L01+PA+LNA (Gateway - Sensor Connection)
-
RE: Timer Help
The main problem is that you are delaying the tempo time. When you use "delay" everything stops for that amount of time. Try using millis. compare current millis to val and if it is greater than a set amount do something else.
Thomas -
RE: Momentary button to control lights
Someone better than me may be able to help further, but another thing you define NumberPushes as equal to 0 in the loop function. Every time the loop runs through it will set it equal to 0. I would define the integer as equal to 0 in the setup or prior to the setup so that your NumberPushes ++ function will actually count correctly.
Also what does your debug info look like? If I remember correctly if you do not connect to the gateway the loop will not run correctly.
Latest posts made by Topdawg2881
-
RE: Problem with NRF24L01+PA+LNA (Gateway - Sensor Connection)
Don't forget that also a good idea is to throw a capacitor on the power for the radio. I have had decent luck not running one on the regular radios , but when you go up to the power amplified radio I feel it is absolutely necessary. A lot of irregularities can be traced to bad and noisy power.
-
RE: Momentary button to control lights
Someone better than me may be able to help further, but another thing you define NumberPushes as equal to 0 in the loop function. Every time the loop runs through it will set it equal to 0. I would define the integer as equal to 0 in the setup or prior to the setup so that your NumberPushes ++ function will actually count correctly.
Also what does your debug info look like? If I remember correctly if you do not connect to the gateway the loop will not run correctly. -
RE: Momentary button to control lights
To start off with I would place the button on an interrupt pin and add an interrupt into the sketch. This way the interrupt can trigger the read of the battery voltage sense and also send that information along with the button change status.
-
RE: Timer Help
The main problem is that you are delaying the tempo time. When you use "delay" everything stops for that amount of time. Try using millis. compare current millis to val and if it is greater than a set amount do something else.
Thomas -
RE: Irrigation Controller (up to 16 valves with Shift Registers)
@dbemowsk
You beat me too it. I added the same line in same location and it works perfect. Every so often I see the raindrop icon to show that it is pulling data to update the valve times. -
RE: Irrigation Controller (up to 16 valves with Shift Registers)
@dbemowsk
I am in front of my computer and I have my controller in front of me and hooked up. Give me a couple minutes and I will run it. See what happens. -
RE: Irrigation Controller (up to 16 valves with Shift Registers)
@dbemowsk
I had this same issue. What I did to fix the issue was I commented out in the void loop the line to goGetValveTimes. I then added the timeAlarms library and set a timer to get valve times once every five minutes. The section of code looks like this.Alarm.timerRepeat (300,goGetValveTimes);
I inserted that line as the last line of cade in the void setup