Kaimana RGB LED Board thread, RGB animations and more! SRK Tech Talk 2013 Product of the Year!

Hello everyone,

Streaming some Kaimana livecoding, rewriting some stuff come on over and chill.

Spoiler

https://www.twitch.tv/mightyjrgaming

@ā€œJasen Hicksā€ I’m trying to extend out to a standard ws2811 LED strand that has a 3 pin connection. What the order of the pins on the 4 pin header on the Kaimana?

Also, you code shows you are using PF0 for data? Is that correct? Digital IO 23 aka Analog IO A5

Reference: https://github.com/armi0024/kaimana/blob/master/example/kaimana.h


#define  PIN_LED     23

So, simple ask

  1. Pin header pin out
  2. Data pin
  3. NeoPixel library okay?

@JRDIBBS thanks for the great video. Any chance you can share your code?

Data Pin for all Kaimana’s is the same. The source code and wiki detail it out, but yes bit 0 on Port F is the LED OUT data.

From the WIKI:

I’ve wiped the code off of a Kaimana Khameleon and loaded Adafruits code on it with some tweaks for the data output line and it worked fine.

All the code is at my github plus some neopixel work! You just wire up vcc, gnd and data in to the kaimana for it to work.

If you find anything useful remember to credit!

Thanks @JRDIBBS
is the pinout the same for kameleon and mini?



/------------------------|
| LED | GND | VCD | VCD  |
|------------------------|


just looking for consistency as my project for a friend involves both the mini and the kameleon (fightstick with a rgb led strand)

yes they are the same

http://support.paradisearcadeshop.com/support/solutions/articles/14000021693-kaimana-led-install

@armi0024 thank you
solves my issue. i was using standard Adafruit style



/-----------------|
| VCC | LED | GND
|-----------------|


now i will alter the wiring to



/------------------------|
| LED | GND | VCD | VCD  |
|------------------------|


I am so mean to my sister

1 Like

Hi Guys,

After my initial issue with not knowing about needing the adaptor to get the RGB Joystick LED working, I finally managed to get the missing bits while on honeymoon in the US.

I’ve installed the RGC LED into the joystick and then followed the Fundando installation guide to add the cables, adaptor and LED into the kaimana mini setup.

LED order should then be JOY>K4>K3>K2>K1>P1>P2>P3>P4

I updated the coding to include the joystick using the brightstick freecade site. Then in Auduino 1.6.5 I adjusted the LED definitions to set the LED_JOY to 0 and then continue through the order of the LEDs in the correct order.

Spoiler


//LED INDEX
#define  LED_P4         14
#define  LED_P4_B       15
#define  LED_P3         12
#define  LED_P3_B       13
#define  LED_P2         10    
#define  LED_P2_B       11
#define  LED_P1         9
#define  LED_P1_B       9
#define  LED_JOY        0xFF   
#define  LED_K4         0      
#define  LED_K4_B       1
#define  LED_K3         2
#define  LED_K3_B       3
#define  LED_K2         4
#define  LED_K2_B       5
#define  LED_K1         6
#define  LED_K1_B       7
#define  LED_SELECT     0xFF
#define  LED_SELECT_B   0xFF
#define  LED_HOME       0xFF
#define  LED_HOME_B     0xFF
#define  LED_START      0xFF
#define  LED_START_B    0xFF
#define  LED_COUNT      17


The code verifies ok, then hit upload and the joystick doesn’t light up and then LEDs for button presses are out of sync, pressing K4 lights up one K4 LED and one K3 LED and continues round the sequence out of sync.

Any suggestions on what could be the issue?

Spoiler

PLEASE don’t tell me the RGB LED is broken, getting a replacement will be a nightmare…

@Kuniku I could be wrong, since I’m coming in late, but it looks like your LED order in your post doesn’t match with the order in your spoiler (which I am assuming is what is defined in your header file).

If LED_JOY is the first LED in your chain, it should be defined as 0 in your header file.

Also, two additional thoughts:

  • It might be easier to troubleshoot if you define your led definitions chronologically in the order you installed them
  • You don’t need to define buttons if you’re not using them. You can omit them altogether.

So it would be something like -

#define LED_JOY 0
#define LED_K4 1
#define LED_K4_B 2
// etc.
#define LED_P4 15
#define LED_P4_B 16
#define LED_COUNT 17

This is the issue, the 0xff code is for when you do NOT want the LED to work. The suggestion of led order vs installed is great also, this will help you out when figuring out which led should be on with just a glance.

Sorry for the confusion, it was quite late here last night and I’m still a bit jetlagged from the honeymoon, I copied the old definition code and not the new one - as I’d just reinstalled the old one so that its at least working as it was (still no joystick LED though - but the old code was set to off)

The new code did start with JOY - 0, K4a - 1, K4b - 2, K3a - 3, K3b - 4 etc etc

Spoiler


//LED INDEX
#define  LED_P4         15
#define  LED_P4_B       16
#define  LED_P3         13
#define  LED_P3_B       14
#define  LED_P2         11    
#define  LED_P2_B       12
#define  LED_P1         9
#define  LED_P1_B       10
#define  LED_JOY        0   
#define  LED_K4         1      
#define  LED_K4_B       2
#define  LED_K3         3
#define  LED_K3_B       4
#define  LED_K2         5
#define  LED_K2_B       6
#define  LED_K1         7
#define  LED_K1_B       8
#define  LED_SELECT     0xFF
#define  LED_SELECT_B   0xFF
#define  LED_HOME       0xFF
#define  LED_HOME_B     0xFF
#define  LED_START      0xFF
#define  LED_START_B    0xFF
#define  LED_COUNT      17


Does anyone have a suggestion for when the Kaimana Khameleon doesn’t connect as a device in Windows? I’ve tried it on 3 different machines and I can put the device into Khamelon mode with Home-K1 but it never shows as a device in windows. I’ve tried it on 3 different windows 10 64bit machines and I always get the same result. No beeps to say a device is found, nothing added to device manager.

I’ve tried connecting to the usb ports directly and to a powered usb 2.0 hub with no change.

The board powers on and lights up the leds for the buttons. They respond to button presses.

No suggestions on this?

Do you have arduino installed? Its likely a driver issue and can be difficult to troubleshoot. For example, they work on one of my OSX machines, and only one of my Windows machines. Additionally, it takes forever for the driver to install most of the time.

Yes I have 1.6.5 installed on the 3 different windows 10 machines and my windows 7 machine. I’ve tried my mac with 1.6.5 and it doesn’t work either. It’s not trying to install the driver at all and the system is never indicating that a new piece of hardware is being enumerated.

What does your wiring look like? you may be connecting and coding things in different ways

I’ve never had arduino fail on me but if you take the Khameleon out of the case and press the tact button on it it should change to kaimana mode. I know its a hassle but worth testing.

I have done that also and it changes into Kaimana mode but never connects to any of the computers.

I’ll take a picture when I get home, but I’ve installed the joystick LED exactly as Fundando did in his installation video.

RGB LED to barrier strip to the Kaimana Adaptor (swapping the green and red LED wires as he says to do) and then the Kaimana Adaptor is plugged in between the Kaiamana Mini and the first J2

Rough Picture: