Moledcule: Kaimana Theme Builder, Compiler, Flasher... ...you design... ...we code!


#3

Updates
Reserved Post For Instructions

Getting Started
[list]
[] Download the Chrome App
[
] Visit the site
[*] Check the FAQs
[/list]


#4

Media
Reserved Post For Media

Videos

Images


#5

Feedback
General Feedback, Questions, Feature Request

How to submit
[list]
[] Send us your thoughts
[
] Post type (Feedback, Question, Feature REquest)
[] Short Description
[
] Your Setup
[/list]


#6

Surprised I’m the first to comment here. This looks like some really good work. I can’t wait to try it. Would this support things like led strip lights and neopixel rings?


#7

Good Question
There certainly is

Current support is for a custom board i made for a friends modded stick.

[media=youtube]uV0VIbsGpow[/media]
The plate in the video has 8 LEDs, we also used the NEOPIXEL RING - 16 X from Adafruit

The moledcule app is designed for 8 indexes, but there is no reason i can’t add a 16 option


#8

Cool stuff you’re doing here, Should have a way to define the number of leds you are working with along with generating the order for that number (eg if you put 30 leds it will give you a generic name for those leds and then enable you to reorder them if you need it.)


#9

Number of LEDs
Managing and Ordering

Thanks @JRDIBBS you have a great point there.

Currently the dropdowns in the configuration support

fightstick
example
[list]
[] 3 - 4 punch buttons
[
] 3 - 4 kick buttons
[] 0 - 3 alt buttons (start select home)
[
] boolean balltop led
[*] boolean led plate
[/list]

hitbox
example
[list]
[] 3 - 4 punch buttons
[
] 3 - 4 kick buttons
[] 0 - 3 alt buttons (start select home)
[
] boolean for left hand (adds left, down, right, up)
[/list]

You would then use the drag and drop ordering for your specific wire order.

images

In the context of add an arbitrary number of pixels, that’s coming!


#10

TL;DV


#11

Im intrested in this. Dont really want to import a kaimana. Could anyone clarify how this would work with a regular ATmega32U4 breakout in terms of wiring?


#12

Atmega32u4
Using a generic Arduino / Genuino 32u4 (micro, leonardo, toaster, custom…)

Short answer
YES, you can use a standard Atmega32u4

Long answer
[list=1]
[] Download the Chrome App
[
] Launch the App
[] in the bottom left you will see the below screen grab
[
]

[] Connect your Arduino
[
] in the bottom left you will see the next screen grab
[*]

[/list]

Test an upload
you don’t need to be logged in to upload other peoples themes
[list=1]
[] In the app, click themes
[
] select a theme from the left hand list
[] take a look at the top bar above the selected theme
[
]

[] click compile
[
]

[] once complete, the flash icon will be active
[
]

[] click the flash button
[
]

[] flashing will produce multiple notification messages like in the video in the first post
[
] the flash icon will show a progress bar as well
[*]

[] once the flashing is complete, there is an 8 second bootloader timeout (this is standard on Atmega32u4)*
[/list]

Getting pinned
Below is the pin mapping as documented in the Kaimana thread



/*

// Punches
Punch 1 --> Digital 3
Punch 2 --> Digital 2
Punch 3 --> Digital 0
Punch 4 --> Digital 1

// Kicks
 Kick 1 --> Digital 4
 Kick 2 --> Analog 3 
 Kick 3 --> Digital 12
 Kick 4 --> Digital 6

// Alts
  Start --> Digital 10
 Select --> Digital 9
   Home --> Digital 8

// Directions
     Up --> Analog 0
  Right --> Analog 2
   Down --> Digital 11
   Left --> Analog 1

// WS2812b Data Line
   Data --> Analog 5
*/


Arduino board map



/*
                                      +-----+
         +----[PWR]-------------------| USB |--+
         |                            +-----+  |
         |         GND/RST2  [ ][ ]            |
         |       MOSI2/SCK2  [ ][ ]  A5/SCL[ ] |
         |          5V/MISO2 [ ][ ]  A4/SDA[ ] |
         |                             AREF[ ] |
         |                              GND[ ] |
         | [ ]N/C                    SCK/13[ ] |
         | [ ]IOREF                 MISO/12[ ] | Kick 3
         | [ ]RST                   MOSI/11[ ]~| Down
         | [ ]3V3    +---+               10[ ]~| Start
         | [ ]5v    -|   |-               9[ ]~| Select
         | [ ]GND   -| A |-               8[ ] | Home
         | [ ]GND   -| 3 |-                    |
         | [ ]Vin   -| 2 |-               7[ ] |
         |          -| U |-               6[ ]~| Kick 4
      Up | [ ]A0    -| 4 |-               5[ ]~|
    Left | [ ]A1    -|   |-               4[ ] | Kick 1
   Right | [ ]A2     +---+           INT1/3[ ]~| Punch 1
  Kick 2 | [ ]A3                     INT0/2[ ] | Punch 2
         | [ ]A4/SDA  RST SCK MISO     TX>1[ ] | Punch 4
    Data | [ ]A5/SCL  [ ] [ ] [ ]      RX<0[ ] | Punch 3
         |            [ ] [ ] [ ]              |
         |  UNO_R3    GND MOSI 5V  ____________/
         \_______________________/
*/



#13

@NENDO

It’s Coming
NeoPixel Ring Support


#14

Ok i’m thinking of ghetto ledmodding one of my sticks. Could i just hotglue two of these to the bottom of a clear sanwa?


#15

@Dubon

Support
3rd party WS2812b

yes, you can pretty much use whatever you see fit.
in fact, i simply use a cut pixel strip rewired for my stick

what you will need to keep in mind is HOW you wired it all together, and then simply use the wiring manager of the application


#16

Ok one more question, i have a UFB. Is powering the arduino achieved by wiring a UFB 5v pin to the Vin pin on the arduino, then the arduino’s 5v pin to the ws2812s? Cheers.


#17

@Dubon

Wiring
Supplying power

Yes,
[list]
[] will need both VCC and GND from the UFB to the arduino (you can use jumper wires)
[
] from the arduino just create another 3 wire cable (VCC, GND, DATA) and connect to the corresponding pins on the ws2812b
[/list]


#18

Ok, i ordered an arduino micro and 20 ws2812bs, cost of about 25€ shipped. Cant wait to try this out!


#19

circuits.io
Structures and Fade

i’m not familiar with your skill level, but thought i would share circuits.io
it’s a great little utility from the good people at Autodesk.

you can pretty much set up an Arduino / Kaimana and use that as your playground which is pretty cool
here is an example with 2 buttons and 2 ws2812b pixels.

http://moledcule.club/srk/reply/reply_11071082-0.png

just though this may help you in familiarizing yourself with the hardware


#20

I just look at it like a dual mod except with no dataswitching and the led chain added to it?


#21

circuits.io example
Kaimana Arduino

although this thread is not really about hardware support, but rather the app itself, i can still answer your question with some guidance

i have created a visual layout for you on circuit.io
and it looks like this
http://moledcule.club/srk/reply/reply_11071148-0.png

a few things to consider
[list=1]
[] you will need to power BOTH controller (ps360, ps360+, brooks, whatever) and arduino
[
] you will need to have each button switch (including joystick) connected to the
[] you will need 2 usb connections (one for the controller to play games, one for the arduino to upload sketches)
[
] @“Jasen Hicks” solved this with the Kaimana Kameleon LED Driver PCB
[/list]

connecting the arduino from the brooks
[list]
[] use female to female jumper wires
[
] connect the corresponding pins on the brooks to the arduino (including vcc & gnd)
[*] go crazy
[/list]

tips
[list]
[] you can simplify to 1 usb cable by
[
] using a dpdt switch and solder the data lines accordingly
[*] using a 2 port usb hub and burry it in your stick (the one from amazon is great since i use a Neutrik NAUSB-W-B A/B USB Feed-Through - Black)
[/list]

advanced solution
[list]
[] buy some Crimp Connector Housing: 2x10 this is for the brooks header side
[
] buy some Crimp Connector Housing: 1x1-Pin *these are for the arduino side
[
] buy some Pre-crimped Terminals 50-Piece Rainbow Assortment F-F 12" connection wires for connecting the brooks to the arduino
[/list]

again
i am more than happy to help with your hardware setup, feel free to PM me and we can take this offline


#22

Ok thanks.i think i have it pretty much figured out. The arduino is coming from china so will probably take a week or two to get here with free shipping. I also included female to female “dupont” cables with my order for piggybacking from the ufb witch i already have a pin header soldered to.

I also ordered female to male dupont cable. My plan is to make pairs of leds witch i can disconnect from the chain if i want to swap out a button by soldering male dupont cables to the first of the pair then female to the second of the pair. It sounds weird but ill post pics once (if) i get it done, then it should make sense :slight_smile:

Oh yeah im installing this in my trusty old atrox so usb is no problem since i can just open the lid for flashing the arduino.