72 <BYTE2> <BYTE3 ><BYTE4> (decimal format)
BYTE2: Fade Speed (ms) (default is 100 if 0 is entered)
BYTE3: 0-7 = INDEX of LED to illuminate (e..g N=0, NE=1, E=2 etc.)
BYTE4: 0 = One Shot,
BYTE4: 255 = Continuous
Response from IRCF360:
No Response on serial port (unless command 10 was previously sent to IRCF360 to request an echo of each command)
Circular Display Feedback:
Designated LED will fade on and off once unless BYTE4=255
Will trigger one designate LED on the Circular LED display to fade up and down.
The variable FADE_SPEED needs to be set. Enter 0 for default speed of 100. This effects total time of the fade period. For example, if a value of 1 is entered, then there will be 2500us/BYTE2. for the first two fades. The 3rd fade will be half as long.
To obtain a pulsing 'heartbeat' effect enter 300 as BYTE2 (fade speed).
The command is used to enable the robot controller to give visual feedback for example:
- Indication of robot state
- Visual Effect
- Display of a particular mood or an expression of emotion within a game or swarm / flock (e.g. sleeping, eating, angry, dead)
The eye is very sensitive to difference in light intensity and sees the proportion of time when the LED is on and off over a fixed period of time, as changes of bright intensity. The proportion of the the time the LED is is on or off determines the brightness of the LED.
The fading UP or DOWN an LED is quite simple. Here is BASIC language routine that gives and indication of how the fade speed and duration can effect the speed of the fade routine. It will make and LED fade brighter and then dimmer. The fade_speed determines how quickly the LED is fading up or down by making bigger steps.
Logic for LED Fade Up & Down
If you want all LEDs to fade up or down then try the following alternative command:
070 ALL LEDs FADE UP & DOWN
IRCF360 - Arduino Sample Code - Command 72
See the video of this short routine below.
IRCF360 - Demo of command 72 and 70