Viki2 on SBx5

Hey guys,

Just got a Viki2 screen and the info available doesn’t seem to be getting me what I need, any advice would be greatly appreciated. I’m using the “For 5 driver Smoothie board NOT azteeg X5” section from the “LCD for Smoothieboard” page as a starting point for my x5 board. For that particular example, it doesn’t define anything for Mosi (yellow), MISO (grey) and SCK (orange), nor does it define them in the x4 example for that matter. I noticed when looking at the example info regarding recommended pins for using Viki2 on x4 board, it points them to P0.18, P0.8 and P0.15 respectively. Would I just use those same pins on my x5 and would I need to add/change anything in the config file other than the x5 example itself?

Probably a silly question, but on the board right next to MOSI P0.18, is MISO P0.17, could I use this instead of the listed P0.8? I know P0.8 is labeled as “SD MISO” and is for the SD only and P0.17 is just “MISO”, but if the later isn’t being used, could I use it instead? Or are they non-configurable?

For Reference -
Using the suggested firmware above the wiring for the Viki 2.0 on a 4 driver smoothieboard is as follows:
SDCD to P0.27
BTN to P1.30
SDCS to P2.8
LCS to P0.16
SCK to P0.15
GND to 5v ----——Btw, this can’t be right? Right?
ENCB to P3.26
ENCA to P3.25
MISO to P0.8
A0 to P2.11
MOSI to P0.18
+Vin to 5v power supply

BTN to None, Viki 2.0 has 2 Blue BTN wires that do the same thing
Buzzer to P1.31

Blue-LED to P1.23
Red-LED to P1.22---Sample config for x5 denotes P1.31 for Red LED, not P1.22

I also wanted to make sure, but could I use the 3.3v and GND from near P0.16? Would there be any issues powering Smoothie and Viki2 from USB? Or would I need to wire it to a separate 3.3v or 5v source?

On the smaller cable used for the LEDs and Buzzer is a blue wire for the “Panel mounted button switch”, should this go to the reset pin near the button? Or use the button as a back button or something? I’m pretty sure the menus have “back” options so I’m leaning toward Reset lol

Last thing I was curious about was, could I use some other pins to get the blue LED and buzzer? If I tell the config to look for them on other pins that aren’t being used by something else, would that work? Based on the example config for the x5 (and not the list above which is noted as being for the x4), P1.22 and P1.23 aren’t being used for anything that I can tell, the config is even already set to use P1.23 for the blue LED, it’s just commented out. I know it says the x5 doesn’t have enough free pins, but I don’t understand why that is.

Sorry for the noob questions btw, each new addition is uncharted territory and I want to do things right and not break stuff :slight_smile:

Thanks for your time guys, it’s always much appreciated!
Brandon

Imported from wikidot