Products
Technology
SMS solutions
PBX systems
Databases
Robotics
Building robot hardware
Building electronics
Building robot software
Introduction/Protocols
Architecture
How to develop a devhandler
Line protocol
DeviceHandlers
Oz433Mhz Transceiver
OzAnalogJoystickController
OzAnalogSensor
OzBatteryController
OzBuzzerController
OzButtonController
OzDCMotorControllerL298N
OzDHTController
OzDoorphoneController
OzEEPROMController
OzKeyboardController
OzGyroscopeSensor
OzIDManager
OzIRTransceiver
OzLCDController
OzNfcReader
OzOpticalGateController
OzRegisterManipulation
OzRF24Transceiver
OzRGBLEDController
Example
OzRotaryController
OzServoController
OzStepCounter
OzStepperMotorMultiController
OzSwitchController
OzTemperatureController
OzTimer
OzUltrasonicSensor
Examples
Bootloader
Company


OzRGBLEDController

Controls the RGB LED and its colors.

How to build a test circuit with a RGB LED and an arduino mega?
Arduino codes are included.

I. "Welcome" event from microcontroller

Example

 c=welcome&id=QZ5M12&type=OzRgbLedController&pos=2&t=3

Parameters

Parameter Type Range Functionality
c String "welcome" Identifies the welcome message.
type String "OzRgbLedController" Determines the type of the device.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.
pos Byte 0-255 Determines the position of the device on the list of the ID manager of the microcontroller. Please make sure there are no other devices in the same position.
t Byte 0-255 Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again.



II. Commands to microcontroller

"Turn On/Off" command

Turns the RGBLeds on and off.

Example

//Turn off the LED
c=setswitch&state=0&t=0&id=QZ5M12

Parameters

Parameter Type Range Functionality
c String "setswitch" Identifies the command.
state bool 0,1 0 means "Turn Off", 1 means "Turn On". See: OzekiSwitchController
t Byte 0-255 Counts the number of commands sent. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.

Response

//The LED's status - response
c=setswitch_resp&state=0&id=QZ5M12&t=3

Parameters

Parameter Type Range Functionality
c String "setswitch_resp" Identifies the response.
state bool 0,1 0 means "Turn Off", 1 means "Turn On". See: OzekiSwitchController
t Byte 0-255 Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.



"Set LED Color" command

Sets the color of the RGBLeds.

Example

c=setrgbled&red=0&green=0&blue=255&t=1&id=QZ5M12

Parameters

Parameter Type Range Functionality
c String "setrgbled" Identifies the command.
red Byte 0-255 The rate of red color.
green Byte 0-255 The rate of green color.
blue Byte 0-255 The rate of blue color.
t Byte 0-255 Counts the number of commands sent. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.

Response

c=setrgbled_resp&red=0&green=0&blue=255&id=QZ5M12&t=4

Parameters

Parameter Type Range Functionality
c String "setrgbled_resp" Identifies the response.
red Byte 0-255 The rate of red color.
green Byte 0-255 The rate of green color.
blue Byte 0-255 The rate of blue color.
t Byte 0-255 Counts the number of events and responses sent combined. Counts from 0 to 255 then from 0 again.
id String 6 characters (numbers, uppercase and lowercase characters) The ID of the device which is chosen by the microcontroller.



III. Event from microcontroller

None
Copyright © 2000- - Ozeki Informatics Ltd. | info@ozeki.hu | Tel: +36 1 371 0150
Home > Technology > Robotics > Building robot software > Introduction/Protocols > DeviceHandlers > OzRGBLEDController
Page: 1600