I have a RepRapDiscount Smart Controller contains SD card reader, 20X4 LCD Display and Rotary encoder.
Can anybody know, how to use this LCD display along with rotary encoder.
Which library suitable for controller ?.
Below I attached my RepRapDiscount Smart Controller images,
Perhaps this bit from the Marlin 3D printer firmware will help:
//
// RepRapDiscount FULL GRAPHIC Smart Controller
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
// Note: Details on connecting to the Anet V1.0 controller are in the file pins_ANET_10.h
//
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
If you follow the link in that comment you will find schematics for the board.
Perhaps this bit from the Marlin 3D printer firmware will help:
//
// RepRapDiscount FULL GRAPHIC Smart Controller
// RepRapDiscount Full Graphic Smart Controller - RepRap
//
// Note: Details on connecting to the Anet V1.0 controller are in the file pins_ANET_10.h
// #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
Having a doubt in, while accessing the LCD display in RepRapDiscount FULL GRAPHIC Smart Controller. I don't know which library function are used in this RepRapDiscount FULL GRAPHIC Smart Controller.
Anyone provide a solution for this?
How to print "HELLO WORLD" in this RepRapDiscount FULL GRAPHIC Smart Controller LCD display.
Hi everyone, I am a beginner in the area of ReprapDiscount smart controller. My aim is to display the information in the 20x4 LCD display using arduino IDE.
I am connecting Arduino Mega with RepRapDiscount Smart Controller. Below I attached my Program,
I refer this circuit diagram for connection. Below I attached that image
I made a little modification in that connection. What I did is?
I did not use RAMP board and adapter. I connect EXP1 pin (3 upto 10) of RepRapDiscount Smart Controller directly to Arduino Mega board pin of (5V,GND,16,17,23,25,27,29). Uploaded my program, given in #5 After uploading is done. I did not get any display on the lcd screen.
Do the black white boxes show up when you adjust the contrast pot?
I suggest that you confirm the wiring between Mega pins and the actual pins on the LCD with an Ohmmeter. I mean is there continuity between pin 16 of the Mega and pin 4 of the LCD, Mega 17 to LCD pin 6, etc?
Do the black boxes show up when you adjust the contrast pot?
I suggest that you confirm the wiring between Mega pins and the actual pins on the LCD with an Ohmmeter. I mean is there continuity between pin 16 of the Mega and pin 4 of the LCD, Mega 17 to LCD pin 6, etc?
Thank you for providing a screen solution. Now I get a Result in my LCD screen like this.
But it will not display result what I expected. Below I attached my program that I upload to Arduino Mega board,
The backlight LED is lighting up so I guess you have Pin 9 (Ground) and Pin 10 (Vcc) correct but the picture isn't clear enough to be sure the other six wires are correct. Have you double-checked them against the schematic? It appears you are using a grey wire for Ground and a black wire for +5v.
I adjust the contrast pot it will make changes in LCD display but I did not the output.
The backlight LED is lighting up so I guess you have Pin 9 (Ground) and Pin 10 (Vcc) correct but the picture isn't clear enough to be sure the other six wires are correct. Have you double-checked them against the schematic? It appears you are using a grey wire for Ground and a black wire for +5v.
Not sure if the OP has made any progress on this in the last 3 months, but I'm interested in doing something this as well. I have a few of these controllers, and a use for them that doesn't involve 3D printing, so I have zero need for the Marlin firmware, though if need be, I CAN use a RAMPS shield to connect it. (Seems unnecessary, but I have at least 2 spare RAMPS shields as well.)
My requirements are to be able to use the 20 by 4 text output and to be able to read the rotary encoder, encoder pushbutton, and possibly the reset button. SD card write access isn't a must for this, but would be a huge bonus if I can do it.
(For those who care what the end result will be)
The idea is that I'll be using the Arduino with a couple of MAX6675 sensors to read a pair of type K thermocouples to monitor my car's exhaust gas and coolant temperature at the turbocharger, along with the output of a wideband O2 sensor, MAP sensor, and a few of the on-board ECU's diagnostic outputs for things like fuel trim compensation, injector duty cycle, vehicle speed sensor and airflow meter to get various performance metrics. If I can use the SD card slot as well, this would be used for logging the data for later analysis. If I don't get the SD card, that's fine, I can pump it out via a serial connection to a laptop for data collection.
So looking at the schematics for the 2004 controller adapter and the RAMPS 1.4...
The schematics connect the pins (Assuming Arduino Mega 2560)
EXP1:
Mega CON Mega
37 1 2 35
17 3 4 16
23 5 6 25
27 7 8 29
GND 9 10 48
EXP2:
Mega CON Mega
49 1 2 NC
31 3 4 52
33 5 6 50
+5V 7 8 41
NC 9 10 NC
For whatever good it does, this will be how the controller is connected to the Arduino via the RAMPS as far as the Marlin firmware is expecting. At least in this configuration we might be able to examine the Marlin code as far as pin diagrams go.
This is probably more connection than it needs to use the display and encoder, as it also includes the connections to the SD card reader, but I do note that it only shows ground being connected to EXP1 and +5V connected to EXP2. (Well, I didn't look too closely at the functions of the other pins on the Arduino.)
Hopefully I've read the diagrams correctly.
As I had said, I'm not 100% averse to installing a sacrificial RAMPS shield for a proof of concept, but that's not a good log-term solution, and certainly not if I end up making more of them for other people.
I'm reasonably certain that this controller will produce an aestheticly pleasing and reasonably intuitive UI for what my purposes, which is one of the reasons that I'd like to use it.