RepRap LCD SD Card Boot Not Working.

I have the recommended config strings to use the onboard SD card on the RepRap board however the smoothieboard does not see this sd card slot. Does anyone know what else to try. Somehow I believe it is a problem in the config file not the board itself although I haven’t ruled it out. When I boot from the smoothieboard micro sd card slot the panel works fine. I do have the 1amp relay installed on the smoothieboard as recommended to drive the panel.

These are the lines I have added.
panel.external_sd true # set to true if there is an extrernal sdcard on the panel
panel.external_sd.spi_channel 1 # set spi channel the sdcard is on
panel.external_sd.spi_cs_pin 0.27 # set spi chip select for the sdcard (or any spare pin)
panel.external_sd.sdcd_pin 0.28!^ # sd detect signal (set to nc if no sdcard detect) (or any spare pin)

Imported from wikidot

Hi Pete

Been installing an lcd on mine this weekend and got it working.
Here is my config for the lcd# Panel
panel.enable true # set to true to enable the panel code
#panel.lcd smoothiepanel # set type of panel
#panel.encoder_a_pin 3.25!^ # encoder pin
#panel.encoder_b_pin 3.26!^ # encoder pin

panel.lcd reprap_discount_glcd #
panel.spi_channel 0 # spi channel to use ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin 0.16 # spi chip select ; GLCD EXP1 Pin 4
panel.encoder_a_pin 3.25!^ # encoder pin ; GLCD EXP2 Pin 3
panel.encoder_b_pin 3.26!^ # encoder pin ; GLCD EXP2 Pin 5
panel.click_button_pin 1.30!^ # click button ; GLCD EXP1 Pin 2
panel.buzz_pin 1.31 # pin for buzzer ; GLCD EXP1 Pin 1
panel.back_button_pin 2.11!^ # back button ; GLCD EXP2 Pin 8

panel.menu_offset 0 # some panels will need 1 here

panel.alpha_jog_feedrate 6000 # x jogging feedrate in mm/min
panel.beta_jog_feedrate 6000 # y jogging feedrate in mm/min
panel.gamma_jog_feedrate 200 # z jogging feedrate in mm/min

panel.hotend_temperature 210 # temp to set hotend when preheat is selected
panel.bed_temperature 65 # temp to set bed when preheat is selected

  1. setup for external sd card on the GLCD which uses the onboard sdcard SPI port

panel.external_sd true # set to true if there is an extrernal sdcard on the panel
panel.external_sd.spi_channel 1 # set spi channel the sdcard is on
panel.external_sd.spi_cs_pin 0.28 # set spi chip select for the sdcard (or any spare pin)
panel.external_sd.sdcd_pin 0.27!^ # sd detect signal (set to nc if no sdcard detect)

  1. Example of a custom menu entry, which will show up in the Custom entry.
  2. NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands

custom_menu.power_on.enable true #
custom_menu.power_on.name Power_on #
custom_menu.power_on.command M80 #

custom_menu.power_off.enable true #
custom_menu.power_off.name Power_off #
custom_menu.power_off.command M81 #

return_error_on_unhandled_gcode false #

the only problem I have now is the scrolling with the control wheel.
if you turn it at any speed other than very very small steps then it misses options and goes to far up or down.
It seems the switch has small steps when it turns, and the lines on the menu are in the middle of these steps so you have to balance the turning into the middle of the step of the switch, if that makes sense to anyone.

btw pete

The instructions say you cant boot with the external sd plugged in, but I have no problem with this.
The SB sd is listed as SD and the LCD one is shown as EXT

Hope this config helps you or anyone else setting an lcd up

war

Thanks
I’ll change my config to match yours and give it a try. I would prefer to use the panel card slot for my g-code files rathere than wear out my smoothieboard slot from pulling a card in and out all of the time.I have the genuine reprapdiscount panel and my encoder knob/switch works better than yours. It scrolls a little fast but not as bad as you describe. My configuration for that feature was left as is in the default configuration file on the smoothieboard web site. I have been told by a couple of people the knock off versions of the boards can be hit or miss if they work correctly if at all. My first board from E-bay was junk and that’s when I found out about some of the problems with them.

Where did you get your panel?

Hi Pete

Not sure where i got my board from now, i think it came with the I3 when i got that, but the menu worked fine on the “other” board.

You still can run gcode from the SD on the Panel. Just use /ext/ instead of /sd/ and it will run from there.

Good luck with the config

war

Here is the definitive section of my config file for the panel. Doesn’t work. I see the SD card plugged into the smoothie board only.
Not sure what is making it so mine doesn’t work. I can’t see the external card slot on the reprap LCD. I’m scratching my head on this one!
Maybe someone can look through my config below and point out something that could be wrong!

  1. Panel

panel.enable true # set to true to enable the panel code
panel.lcd reprap_discount_glcd # set type of panel
panel.encoder_a_pin 3.25!^ # encoder pin
panel.encoder_b_pin 3.26!^ # encoder pin

  1. Example for reprap discount GLCD
  2. on glcd EXP1 is to left and EXP2 is to right, pin 1 is bottom left, pin 2 is top left etc.
  3. +5v is EXP1 pin 10, Gnd is EXP1 pin 9

panel.lcd reprap_discount_glcd #
panel.spi_channel 0 # spi channel to use ; GLCD EXP1 Pins 3,5 (MOSI, SCLK)
panel.spi_cs_pin 0.16 # spi chip select ; GLCD EXP1 Pin 4
panel.encoder_a_pin 3.25!^ # encoder pin ; GLCD EXP2 Pin 3
panel.encoder_b_pin 3.26!^ # encoder pin ; GLCD EXP2 Pin 5
panel.click_button_pin 1.30!^ # click button ; GLCD EXP1 Pin 2
panel.buzz_pin 1.31 # pin for buzzer ; GLCD EXP1 Pin 1
panel.back_button_pin 2.11!^ # back button ; GLCD EXP2 Pin 8

panel.external_sd true # set to true if there is an extrernal sdcard on the panel

panel.external_sd.spi_channel 1 # set spi channel the sdcard is on

panel.external_sd.spi_cs_pin 0.28 # set spi chip select for the sdcard (or any spare pin)

panel.external_sd.sdcd_pin 0.27!^ # sd detect signal (set to nc if no sdcard detect)

  1. pins used with other panels

#panel.up_button_pin 0.1! # up button if used
#panel.down_button_pin 0.0! # down button if used
#panel.click_button_pin 0.18! # click button if used

panel.menu_offset 0 # some panels will need 1 here

panel.alpha_jog_feedrate 4000 # x jogging feedrate in mm/min
panel.beta_jog_feedrate 4000 # y jogging feedrate in mm/min
panel.gamma_jog_feedrate 200 # z jogging feedrate in mm/min

panel.hotend_temperature 185 # temp to set hotend when preheat is selected
panel.bed_temperature 60 # temp to set bed when preheat is selected

Hi pete

Sorry you havent got it working yet.

Have you tried putting the lcd on another channel ?

panel.external_sd.spi_channel 0 # set spi channel the sdcard is on

I had to put 30 pins onto my SB to get it all working.

On the smoothieboard / panel page there is a wiring diagram in green, in the middle down towards the bottom it shows pins
27 and 28. Have you got them 4 pins on your SB connected

War

Got it working, One thing I didn’t do earlier and should have done was re-format the SD card I was using. All is good now. Although my initial problem was having things configured incorrectly.
Thanks for your help!

One thing I can’t understand is that many times the SD card slot will not boot from a standard MS Fat formatted card, but it will always boot from a micro SD card installed in a SD to Micro Card adapter. Rather strange but I don’t know much about what makes them different. Very strange behavior for this panel!