A new lcd, a new software.This software runs too with the nokia5110 due to the magic of the u8glib.
Many other lcd's can now be used with this release ....
Released on github and http://karadio.karawin.fr/karadioU8glib.zip
See instructions on the u8glibConf.h file
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
1.1.4 and no startup problem, LCD 128x64 with ST7920 working fine. Thank You JP
Are you sure? yes | no
Happy for you. I don't have any special correction for the problem, but only the result is important.
Enjoy
Are you sure? yes | no
Hi my friend and happy new year!
I test new display, LCD 128x64 with ST7920 controller.
LCD to Arduino:
Pin 4 RS - D4
Pin5 R/W - D5
Pin6 E - D6
Pin15 - GND
Pin 17 Reset - D7
Edit one row in u8glibConf.h
U8GLIB_ST7920_128X64_1X u8g(6, 5, 4 ,7); //Enable, RW, RS, RESET
All is perfect, but need faster data reading on startup. Display show station name (1st line, saved name) and 4 line STOPPED. When I change station, all is OK. If You can do it?
There are also some problems with scrolling. I've tested 3 displays - Nokia5110, 0.96" oled and now this LCD. Always some problem long texts, like:
RedOne feat. Enrique Iglesias, R. City, Serayah, Shaggy
and Your
"https://hackaday.io/project/11570-wifi-webradio-with-esp8266-and-vs1053".
These lines do not scroll.
Sorry for my english :(
Thank You
Are you sure? yes | no
Hi,
Do have done this:
u8glib must be installed in library;
In .../Arduino\libraries\U8glib\utility/u8g.h
uncomment the following line
#define U8G_16BIT 1
Are you sure? yes | no
No more scrolling problem, thank you, but startup problem is.
Are you sure? yes | no
I don't understand the startup problem.
Are you sure? yes | no
Where can I send a picture or video this problem?
Are you sure? yes | no
Try to uncheck AutoPlay Checkbox and check again. After that your Radio should start without any klick. Regards
Thomas
Are you sure? yes | no
This is not a problem, radio plays. LCD does not show stream data.
Are you sure? yes | no
Ok, then no idea.
You can upload a picure on site like this:
http://www.bilder-upload.eu/
After uploading you get a link which cou can copy into your post.
Regards
Thomas
Are you sure? yes | no
You must set the baudrate with command
cli.uart("28800")
on uart interface and reset.
Are you sure? yes | no
It's all done and correct....but???
i add led pin 12 (play led) ,It also does not light up. when I do a reset nodemcu, all data displayed. I've tested pro mini, uno, nano and 328p-pu ic - same result. when using other displays (oled, nokia 5110) all displayed perfectly.
my u8glibConf.h
#ifndef _U8GLIBCONF_h
#define _U8GLIBCONF_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "U8glib.h"
U8GLIB_ST7920_128X64_1X u8g(6, 5, 4 ,7); //Enable, RW, RS, RESET
#endif
Are you sure? yes | no
esp tx to pro mini rx?
Send the schematic of your connections including power and gnd
Are you sure? yes | no
Hi jp cocatix,
i tried to compile the OLED Display code.
The following Errors occure:
aradioutils:140: error: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]
karadioutils:97: error: initializing argument 1 of 'void removeUtf8(byte*)' [-fpermissive]
void removeUtf8(byte *characters)
^
karadioutils:149: error: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]
karadioutils:97: error: initializing argument 1 of 'void removeUtf8(byte*)' [-fpermissive]
void removeUtf8(byte *characters)
^
karadioutils:160: error: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]
karadioutils:97: error: initializing argument 1 of 'void removeUtf8(byte*)' [-fpermissive]
void removeUtf8(byte *characters)
^
karadioutils:188: error: invalid conversion from 'char*' to 'byte* {aka unsigned char*}' [-fpermissive]
karadioutils:97: error: initializing argument 1 of 'void removeUtf8(byte*)' [-fpermissive]
void removeUtf8(byte *characters)
Arduino 1.6.7 Windows 10.
Any Idea how to sove it?
Thanks
Thomas
Are you sure? yes | no
On file / preferences choose compiler warning! None
That's all.
Ok, i will cast all things to avoid these warnings.
Are you sure? yes | no
Thanks for your quick answer.
The setting is already on None
Other ideas?
Are you sure? yes | no
Please reload the zip on karadio.karawin.fr
Are you sure? yes | no
Thanks for your Update. Now it compiles. Next Days i try to Connect it. What have you changed?
Regards
Thomas
Are you sure? yes | no
Just an adaptation of C type. byte is an unsigned 8bits and char is a signed 8bits. Just a warning from the compiler.
Are you sure? yes | no
All is perfect :) (Nokia 5110) Thank You!
Which is necessary to modify, to change scrolling speed? Scrolling too fast.
Thanks again!
Are you sure? yes | no
Change value 0x3000 with a greater one (0x4000 or 0x5000 .... max 0xFFFF)
void loop(void) {
serial();
if (loopcount++ == ((x==84)?0x3000:0x7000))
{
loopcount = 0;
if (++scrl%6 == 0) digitalWrite(13, HIGH);
scroll();
digitalWrite(13, LOW);
}
}
Are you sure? yes | no
Strange problem with this sketch.
Arduino: 1.6.11 (Linux), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"
In file included from /home/ringo/sketchbook/libraries/karadioU8glib/karadioU8glib.ino:1:0:
sketch/u8glibConf.h:41:22: fatal error: arduino.h: No such file or directory
#include "arduino.h"
compilation terminated.
exit status 1
Error compiling for board Arduino Pro or Pro Mini.
Are you sure? yes | no
try with <arduino.h>
in place of "arduino.h"
Are you sure? yes | no