1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

New thread for R1+/ReprapDiscount LCD Smart Controller Setup

Discussion in 'Mods and Upgrades' started by Wesley Knapp, Jan 19, 2019.

Thread Status:
Not open for further replies.
  1. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    Robo R1+ noob here. Just got the reprapdiscount red board. Now I'm trying to install it. A couple of problems...

    1. There is no marking on the connectors on the board nor the adapter that attaches to the ramps card. I've looked at a ton of photos, videos & msg threads and nobody ever brings this up. Can someone tell me how to connect these correctly before I try to fire this thing up?

    2. It seems I may have to make a change to the firmware: Is this the printer firmware or LCD controller firmware? Where do I find the firmware files to alter & upload?

    My printer is new and has the latest firmware installed from the factory. I am skilled with Arduino and the IDE so I can do the update with no problem if needed.

    I have the red Reprapdiscount Full Graphic Smart Controller with the LCD contrast adjustment on the far left bottom.

    I would certainly appreciate any assistance so I can get this thing back together and printing again.
     
  2. Geof

    Geof Volunteer Moderator
    Staff Member

    Joined:
    Nov 9, 2015
    Messages:
    6,752
    Likes Received:
    2,335
    I assume it came with the "smart plug" which makes it only attach one way, if not I'd suggest ordering one as its so simple with that adaptor

    If you have the full graphics vs the XXL controller you'll need to comment out the xxl (enabled by default) and uncomment the full graphics and add the u8glib file

    A picture of your controller would help narrow it down a smidge
     
    mark tomlinson likes this.
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    If it looks like this:

    RepRap XXL.jpg

    It does NOT need a firmware update, stock firmware is already configured for it

    If it looks like this:

    reprap full graphic.jpg


    You need to reconfigure the firmware as mentioned in the other threads.
     
    Wesley Knapp likes this.
  4. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    OK, I've done the proper changes to the firmware file and figured out the correct cable connections from a video on youtube. The reason for the cable question was that there were MANY comments in various forums about the cables being wired backward (they were) AND there was also no way to tell which cable went to which receptacle.

    However... I now get the following error during firmware compile. Any further help would be greatly appreciated.
    ---------------------------
    Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

    In file included from sketch\SdFile.h:27:0,

    from sketch\cardreader.h:8,

    from sketch\Marlin_main.cpp:44:

    SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

    struct fpos_t {

    ^

    In file included from sketch\Marlin.h:10:0,

    from sketch\Marlin_main.cpp:30:

    c:\users\chrome\appdata\local\arduino15\packages\arduino\tools\avr-gcc\5.4.0-atmel3.6.1-arduino2\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

    __extension__ typedef long long fpos_t;

    ^

    exit status 1
    using typedef-name 'fpos_t' after 'struct'
    ----------------------------------------------------------------
     
  5. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
     
  6. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    Yes, it is the red board. I have edited the firmware but now I get an error on compile.
     
  7. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    There is another change needed to the firmware. It required an older compiler and the new compilers need a couple of line changes. I think @mark tomlinson has uploaded the proper files here a few times, he should know where to find them.
     
    Geof likes this.
  8. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    Geof likes this.
  9. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    Thanks so much! Getting further bur now have the following error.
    ------------
    C:\Users\Chrome\AppData\Local\Temp\arduino_build_943976\sketch\dogm_font_data_marlin.h:12:25: fatal error: utility/u8g.h: No such file or directory

    compilation terminated.
    -----------------

    I have the library properly installed. I just compiled an LCD project I made a while back and it compiled fine using the u8g library
     
  10. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    That's easy, you need to add the library for u8g.h

    Follow these steps:
    1. In the Arduno compiler go to Tools>>Manage Library...
    2. In the Filter your search... box enter u8glib
    3. Scroll down through the results until you find U8glib by oliver and install it.
    Now you should be able to recompile successfully.
     
    Geof likes this.
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    I need to add that to the FAQ thread :)
     
    Geof likes this.
  12. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    I already have it installed and properly. That's why I added that I compiled a previous project script that used that old library to make sure it was still installed properly. Compiled and uploaded to an Uno, tested, working fine.
    IDE_error.png
     
    #12 Wesley Knapp, Jan 22, 2019
    Last edited: Jan 22, 2019
  13. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    well show us the directory paths under : C:\Users\Chrome\AppData\Local\Temp\arduino_build_943976\sketch

    Look for utility/u8g.h

    does it exist? The compiler is not finding it when it compiles dogm_font_data_marlin.h
    :)
    It is expecting that utility directory to be a relative one to the compile path
     
  14. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    When I look in dogm_font_data_marlin.h I see this include:

    #include <utility/u8g.h>

    Which tells the compiler it is relative the default "headers" path defined in the compiler by utility/ug8.h
    (so default_path/utility/ug8.h)
    If you replace that line with :

    #include "your/specific/path/utility/u8g.h"

    to wherever that header file is actually installed -- it will compile.

    or fix the default header include directory list to include the one above where the "utility" directory is located


    It is not complaining about a missing library, but rather the header file that defines that library to the compiler.
     
  15. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    This is crazy. Never before have I had problems with the IDE and paths etc. I don't have a utility directory. I've tried replacing the utility/u8g.h to include the path where it is actually located without the utility directory and I still get an error. GRRRR

    ide_error2.JPG
     
  16. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    I think I got it. There is no file "u8g.h" it's "U8glib.h". I just successfully compiled it. Now I'll try uploading as well.
     
    mark tomlinson likes this.
  17. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    Apparently this is a more recent change to Marlin (or they have changed the u8g library sources -- probably that)
    Glad you sorted it.
     
    Wesley Knapp likes this.
  18. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    Nothing. Now the LCD backlight doesn't even come on. Should have just spent the money and bought the default controller. At least I can still connect and print
     
  19. Wesley Knapp

    Wesley Knapp Active Member

    Joined:
    Jan 19, 2019
    Messages:
    111
    Likes Received:
    42
    They should update the firmware to use the U8g2 library, as U8glib is no longer supported.

    So to recap, all I did was change the includes from "utility/u8g.h" to "U8glib.h" and it compiles with no errors.
     
  20. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,719
    Likes Received:
    7,326
    "They" being Marlin probably already have :) The R1 firmware is stuck in 2013 which is about the last time Robo touched it
    I imagine the newer versions of Marlin (1.1.x) already do support the newer library, but just like the version Robo pulled and used has compiler issues (hence the need for the SDBASE.ZIP) it also has a few other "idiosyncrasies"
     
    Wesley Knapp likes this.
Thread Status:
Not open for further replies.

Share This Page