I recently tried to add a LCD to my Sanginololu. The documentation from botronicz (GitHub - Botronicz/Marlin) says it should work right away. But it did not.
Marlin needs to know what you got hooked up to the main board. For the 4x20 I think you need to un-comment in Configuration.h at line 214, it should look like this: #define ULTIMAKERCONTROLLER
Did you configure that?
Yes, I did. But with the firmware - provided by botronicz - there are missing some files. I also tried to add these files from the original marlin source. Once again: no luck!
Do you use their Arduino version from GitHub - Botronicz/Arduino-IDE ?
You can try this code for testing the display only (pin numbers are changed for the display connections):
Yes, I use this IDE. Can I add these couple of lines to the configuration.h? Ups, just realised that the âLiquidCrystal.hâ is not existing in the folder. This drives me crazy. And when I add the missing files from the original marlin source, I get tons of errors.
Just to clarify: I set up a new folder with âLiquidCristal.hâ in it and a file with your lines of code, right?
Sorry but with Arduino I am a bloody beginner.
Itâs based on the LiquidCristal Scroll example, you find it under the examples in arduino. Open it and replace that code with the one I paste. It will verify if there is communication between the lcd and the core of the sanguinololu by display some text on the display.
OK, I hooked the display up again and did what you said (hopefully). I got the first and the third row with all pixels on. The second and the fourth donâ t show anything. Is this correct? missing/deleted image from Google+
This is what could be expected it doesnât init as it should, good thing: the contrast is at a good level
Looks like you have to find the 6 right pin numbers connected to controle the display: LiquidCrystal lcd(16, 17, 23, 25, 27, 29).
Here you find the idea about 4bit lcd HD44780 communication: http://arduino.cc/en/Tutorial/LiquidCrystal
I suggest to figure out the right pins (at your sanginololu plug + track them down to the arduino numbers) and test it with this ready to go code I posted (= exclude other configuration hiccups).
The first number (my example 16) = RS line / 2nd number = Enable line / 3rd->6th numbers = D4->D7.
Can you measure the corresponding numbers needed for your setup?
I wonât be able to take a look at the lcd the next couple of days. There is also an issue with the extruder which has to be solved first.
Thanks anyway for your support.