Version: OPDB 1.1 | Home | About | Contact Us
logged in as Guest User | log out | control panel
Search:
    
Projects [+] Resources [+] People [+] Communities [+] Vendors [+]
Resources

Multicolor LED [edit]
Each color on an the LED is connected to three motor ports on the cricket. Turning on the ports and using the setpower command in different combinations will yield different results.

info comments
inventionDB #5546
posted by Keith Johnson
entered July 13, 2009
manufacturer Bivar Inc
website http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=492-1177-ND
man part # R20RGB-4-0045
approx cost $4.90 max

Description:  Attach red to motor A, green to motor B, and blue to motor C.

This code will have the LED cycle through six colors.

to red

a, on
b, off
c, off

a, setpower 8

end


to orange

a, on
b, on
c, off

a, setpower 8
b, setpower 4

end


to yellow

a, on
b, on
c, off

a, setpower 8
b, setpower 8

end


to green

a, off
b, on
c, off

b, setpower 8

end


to blue

a, off
b, off
c, off

c, setpower 8

end


to purple

a, on
b, off
c, on

a, setpower 8
c, setpower 8

end


to white

a, on
b, on
c, on

a, setpower 8
b, setpower 8
c, setpower 8

end

more images...

projects related vendors