LowPowerLab Forum

Hardware support => Moteino => Topic started by: Vince on September 05, 2013, 10:53:54 AM

Title: LED Control Sketches
Post by: Vince on September 05, 2013, 10:53:54 AM
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
Title: Re: LED Control Sketches
Post by: Felix on September 05, 2013, 11:42:52 AM
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  *
******************************************************************
Title: Re: LED Control Sketches
Post by: Vince on September 05, 2013, 03:05:51 PM
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?
Title: Re: LED Control Sketches
Post by: Vince on September 05, 2013, 04:46:59 PM
After I send the commands eventually I get a BAD CRC Status?
Title: Re: LED Control Sketches
Post by: Vince on September 05, 2013, 05:20:11 PM
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!
Title: Re: LED Control Sketches
Post by: Felix on September 05, 2013, 08:42:41 PM
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  ;)
Title: Re: LED Control Sketches
Post by: bstott on September 09, 2013, 10:29:54 AM
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.
Title: Re: LED Control Sketches
Post by: Felix on September 09, 2013, 12:51:39 PM
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.
Title: Re: LED Control Sketches
Post by: bstott on September 09, 2013, 04:59:16 PM
Ha, ha... Friendly Sarcasm.... ;D   THANX!