LED Control Sketches

Started by Vince, September 05, 2013, 10:53:54 AM

Vince

Has anyone got the LED Control Sketches that are in the RFM12B examples to work ?

Both the send/receive and test-2way sketches are working properly. In the LED Control sketch
I changed the R2 Radio Frequencies (433 MHz) to match both radios. Commands sent from the
gateway to the node do nothing. Both sketches compile without error and I am using the latest
RFM12B Library. I have looked over the sketches and I cannot spot any problems in either LED
Control Sketch.

Thank You,

Vince

Felix

The sketches are good but will only work with Moteino R2 (RFM12B).
Have you seen the instructions?
You have to hit ENTER to send the instruction.

******************************************************************
* [2 (default) to 9]                   - change target node ID   *
* [b=BLINK (default), p=PULSE, o=OFF]  - change target LED mode  *
* [s=SLOW, m=MEDIUM (default), f=FAST] - change target LED speed *
* [ENTER]                              - send request to target  *
******************************************************************

Vince

Felix,

    Yes, I am using a Moteino R2 (RFM12B).

Concerning the sending the instructions.

I enter the target node number then hit enter. It acknowledges that I have changed the node number on the Gateway side. Then I enter a command to change the target LED mode and hit enter to send it but nothing happens on the Target node. Should I send all the commands at once or can I send them individually as I did above?

Vince

After I send the commands eventually I get a BAD CRC Status?

Vince

Finally, Success!  I was using the serial monitor in the Arduino IDE to send the commands and it
was set to "no line ending". I changed that to "Carriage Return" and all commands now work!!
Must be something in the way my keyboard enter key depress is sent.  I thought the enter key and
a carriage return both sent an ASCII code 13 which the LED Control Sketch looks for to send the
command to the node!

Felix

Whew .. was getting worried.
I actually loaded the sketches on two R2s to check them and they worked out of the box with no changes, just as expected.
Thanks for the update  ;)

bstott

Where are LED sketches?

Felix- Would you add another tab/menu on your home page for Downloads and include Sub-Menus for Source, Examples, Libraries, Schematics.

I understand they are in the same/similar location and that I can save locations but, it is a lot easier for anyone to go to your site and just quickly locate and click. I keep forgetting/losing the github location. duh!

Thanks for all your work.

Brian.

Felix

Ok, I added a "Github Code" link on the main menu that points to my github repo.
Sorry but I can't add a link to every single piece of code I have on there.

bstott

Ha, ha... Friendly Sarcasm.... ;D   THANX!