Wednesday, 1 May 2019

V2.1 FYSETC Mini 12864 panel on RAMPS

I got one of these to play with, but the documentation provided on is out of date.

The documentation seems to be for a earlier version.

I found some measurements and schematics on their github This helps a lot.

The main difference seems to be that the earlier version just had transistors to turn on the 3 separate RGB LED's. V2.1 has WS2811 chips (aka neopixels)

First set up the basic display and LEDS

In Configuration.h

You still need to enable minipanel


But then  enable the neopixels. there are 3 of these on the board and they are connected to D25

// Support for Adafruit Neopixel LED driver
  #define NEOPIXEL_TYPE   NEO_RGB    // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
  #define NEOPIXEL_PIN    25        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
  #define NEOPIXEL_PIXELS 3        // Number of LEDs in the strip
  #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
  #define NEOPIXEL_BRIGHTNESS 127  // Initial brightness (0-255)
  #define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup

Then setup the screen almost the same as described on the wiki. The encoder is backwards and the kill pin was wrong.... so set it up as below.

in pins_RAMPS.h

#elif ENABLED(MINIPANEL) #define BEEPER_PIN 37 // Pins for DOGM SPI LCD Support #define DOGLCD_A0 16 #define DOGLCD_CS 17 #define LCD_BACKLIGHT_PIN -1 // backlight LED on A11/D65 #define LCD_RESET_PIN 23 #define SDSS 53 #define KILL_PIN 41 #define LCD_CONTRAST 200 #define BTN_EN1 33 #define BTN_EN2 31 #define BTN_ENC 35 //the click switch   #define SD_DETECT_PIN 49

You do need to do step 4 from the wiki


Step 3 is optional, if you want the LCD Control Menu

This will give you a display and the LEDS.

Don't forget to enable sd card support In Configuration.h  if you want that to work


And it all works (as far as I can tell)

No comments:

Post a Comment