Comments on: Arduino controlled LCD using a shift register and the SPI library https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/ Hobby robotics and electronics with Arduino, ESP82666 and Raspberry Pi Thu, 17 Nov 2016 10:16:25 +0000 hourly 1 https://wordpress.org/?v=5.6.11 By: Ömer Şiar https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-194785 Thu, 17 Nov 2016 10:16:25 +0000 http://42bots.com/?p=502#comment-194785 In reply to Dieter.

You are having problems because modified Library tries to Initialize some other Pins (D3,4,5,6,7). You can switch pure SPI only Library that forked from the original. This only software change, no need to change pins for LCD nor Shift Register.

https://github.com/omersiar/ShiftedLCD

]]>
By: Ömer Şiar https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-194779 Thu, 17 Nov 2016 09:22:59 +0000 http://42bots.com/?p=502#comment-194779 In reply to amahlaka.

Simply you can not. This is because hardware SPI uses those pins. But you can drive your all devices on the same SPI bus (except for the Slave Select SS pin – Latch Pin or Pin 9 in this article).

I mean you can use both Ethernet Shield and the LCD at the same pins, and grab this Library

https://github.com/omersiar/ShiftedLCD

https://www.arduino.cc/en/Reference/SPI

]]>
By: Ömer Şiar https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-194778 Thu, 17 Nov 2016 09:17:00 +0000 http://42bots.com/?p=502#comment-194778 In reply to asad.

You need modified Library for that. I exactly modified original Library for this specific reason.

https://github.com/omersiar/ShiftedLCD

]]>
By: Ömer Şiar https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-194777 Thu, 17 Nov 2016 09:14:58 +0000 http://42bots.com/?p=502#comment-194777 In reply to Hasan.

Hello Hasan,

You can create two lcd Instance. You really do not need send 8 bit data.

// initialize the library with the number of the sspin
// (or the latch pin of the 74HC595)
LiquidCrystal lcd1(9);
// Create second LCD Instance
LiquidCrystal lcd2(8);

// You now ready to send data to LCD which you want just

lcd1.print(“LCD 1 is Running”);
lcd2.print(“LCD 2 is also Run”);

]]>
By: Ömer Şiar https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-194775 Thu, 17 Nov 2016 09:08:11 +0000 http://42bots.com/?p=502#comment-194775 Classic – I forgot to add link

https://github.com/omersiar/ShiftedLCD

]]>
By: Ömer Şiar https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-194774 Thu, 17 Nov 2016 09:06:56 +0000 http://42bots.com/?p=502#comment-194774 Hello,

First of all, thank you Stan, for the great article. It’s really good structured, clean, polished.

I forked original code from Juan Hernandez and created simple, modernized, SPI only Library. ShiftedLCD is ready to use for those who want to use their other SPI devices like SD, Ethernet, RFID, etc together with Shifted LCDs.

Original code was modified both parallel and SPI (serial) communication, which leads a bug that other digitalPins on Arduino UNO state is not know (for example if you have a INPUT pin with PULLUP resistor is enabled, you couldn’t determine its state (HIGH or LOW) when it’s floating) this tiny bug bothered me much.

I modified the Library to reduce complications, like collision with native Library, removed Parallel communication support. Also referenced this page for Pinouts and configuration (better than original playground page), and I am going to edit Playground link.

]]>
By: Hasan https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-187639 Fri, 19 Aug 2016 05:29:08 +0000 http://42bots.com/?p=502#comment-187639 I have a problem. I am using Arduino Uno to interface a 16×2 LCD with SPI and I am using 2 8-bit shift registers(595) since I want to send 8 bits of data to the LCD. How can I modify the code in Juan Hernandez’s version of LCD library in a way in which I can do what I am trying to do.

]]>
By: Renze https://42bots.com/tutorials/arduino-controlled-lcd-using-a-shift-register-and-the-spi-library/#comment-174034 Wed, 02 Mar 2016 15:41:02 +0000 http://42bots.com/?p=502#comment-174034 No questions, just a thank you. 🙂 After some researching (and wiring) your tutorial worked!
THanks!

]]>