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.
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.