Comments on: Interfacing LCD with Atmega32 Microcontroller using Atmel Studio https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/ You Inspire.....We Create..... Thu, 15 Oct 2020 06:05:10 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Ligo George https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/9779 Thu, 15 Oct 2020 06:05:10 +0000 https://electrosome.com/?p=6105#comment-9779 In reply to Amanda.

You can try editing the header file as he mentioned. I think it shouldn’t take much time once you understand the code.

]]>
By: Amanda https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/9777 Wed, 14 Oct 2020 22:50:04 +0000 https://electrosome.com/?p=6105#comment-9777 In reply to Sebastian Fajardo.

Can you please share it? I have the same question.

]]>
By: Oscar Manrique https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/8731 Sun, 15 Dec 2019 18:02:21 +0000 https://electrosome.com/?p=6105#comment-8731 Hi Ligo, I modified de lcd.h code to work with AVR 162 internal oscillator 1MHz, It worked like a charm.

Thanks a lot

]]>
By: NACHISANDRO https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/7443 Mon, 13 May 2019 23:57:05 +0000 https://electrosome.com/?p=6105#comment-7443 SIR !! HOW TO CONTROL WS2811 PIXEL LED USING ATMEGA328 IC !!!
Give the simple program for pattern design !!! please help me !!

]]>
By: octagonlord https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/7243 Sun, 20 Jan 2019 19:46:10 +0000 https://electrosome.com/?p=6105#comment-7243 In reply to Giovanni Sáez Muñoz.

Made a mistake in my previous comment:
It wasn’t supposed to be char *message[32], but char message[32].
In the first one, I’m declaring an array of pointers, but in the second one I’m declaring an array of characters which is what we want.

]]>
By: octagonlord https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/7242 Sun, 20 Jan 2019 19:43:19 +0000 https://electrosome.com/?p=6105#comment-7242 In reply to Giovanni Sáez Muñoz.

Try using the sprintf() function in the stdio.h library.
It converts the valu of any variable you give it into a string and then stores that string into char pointer.

Example:

char *message[32]; //32 because the display is 16×2
sprintf(message, “Value of variable: %d”, var);
Lcd8_Write_String(message); /*OR Lcd4_Write_String(message); if you’re using the LCD in 4-bit mode*/

Since you’re using an unsigned long, instead of writing %d you would write %lu.
Hope this helps!

]]>
By: Sebastian Fajardo https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/7228 Thu, 27 Dec 2018 20:06:07 +0000 https://electrosome.com/?p=6105#comment-7228 In reply to Sebastian Fajardo.

I have already done it, it is only to understand a bit the program, the lcd.h file, it is known that the ATMEGA328p does not have port A by getting deletes everything that has to do with this file, modifies some “if” that are loose, and in the second part of the definition, place port B, this is the lcd.h, in the main you only have to change the pins in the definition and that’s it. luck

]]>
By: Sebastian Fajardo https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/7226 Wed, 26 Dec 2018 21:57:11 +0000 https://electrosome.com/?p=6105#comment-7226 What are the changes that I must do to make it work in ATMEGA328P?, since it is the one that uses arduino I am interested in knowing how to handle it. Thank you very much for your attention.

]]>
By: Giovanni Sáez Muñoz https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/7110 Fri, 15 Jun 2018 21:01:19 +0000 https://electrosome.com/?p=6105#comment-7110 Thanks, this is very useful.
One question, how can I print variables to the lcd? I have an unsigned long that I have no idea how to print on the screen. Thanks in advance

]]>
By: testingbeta https://electrosome.com/interfacing-lcd-atmega32-microcontroller-atmel-studio/#comments/6980 Fri, 12 Jan 2018 05:20:00 +0000 https://electrosome.com/?p=6105#comment-6980 Awesome – thanks a lot (specially for wiring diagram and examples)

]]>