Close

Who wants this one?

A project log for WiFi Webradio on ESP8266 or ESP32

KaRadio A fully featured wifi web radio player with only low cost boards. with or without a vs1053 board

jean-pierre-cocatrixJean-Pierre Cocatrix 11/08/2016 at 17:4423 Comments

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

ringokarner wrote 01/10/2017 at 06:26 point

1.1.4 and no startup problem, LCD 128x64 with ST7920 working fine. Thank You JP

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 01/10/2017 at 09:28 point

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

ringokarner wrote 01/01/2017 at 15:16 point

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

Jean-Pierre Cocatrix wrote 01/01/2017 at 15:22 point

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

ringokarner wrote 01/01/2017 at 18:47 point

No more scrolling problem, thank you, but startup problem is. 

  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 01/01/2017 at 22:12 point

I don't understand the startup problem.

  Are you sure? yes | no

ringokarner wrote 01/06/2017 at 21:06 point

Where can I send a picture or video  this problem?

  Are you sure? yes | no

Thomas wrote 01/09/2017 at 07:49 point

Try to uncheck AutoPlay Checkbox and check again.  After that your Radio should start without any klick. Regards

Thomas

  Are you sure? yes | no

ringokarner wrote 01/09/2017 at 08:11 point

This is not a problem, radio plays. LCD does not show stream data. 

  Are you sure? yes | no

Thomas wrote 01/09/2017 at 08:32 point

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

Jean-Pierre Cocatrix wrote 01/09/2017 at 15:48 point

You must set the baudrate with command

cli.uart("28800") 

on uart interface and reset.

  Are you sure? yes | no

ringokarner wrote 01/09/2017 at 15:56 point

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

Jean-Pierre Cocatrix wrote 01/09/2017 at 16:42 point

esp tx to pro mini rx?

Send the schematic of your connections including power and gnd

  Are you sure? yes | no

Thomas wrote 11/17/2016 at 12:43 point

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

Jean-Pierre Cocatrix wrote 11/17/2016 at 14:42 point

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

Thomas wrote 11/17/2016 at 14:53 point

Thanks for your quick answer.

The setting is already on None

Other ideas?


  Are you sure? yes | no

Jean-Pierre Cocatrix wrote 11/17/2016 at 15:04 point

Please reload the zip on karadio.karawin.fr

  Are you sure? yes | no

Thomas wrote 11/17/2016 at 20:24 point

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

Jean-Pierre Cocatrix wrote 11/17/2016 at 20:29 point

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

ringokarner wrote 11/13/2016 at 17:44 point

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

Jean-Pierre Cocatrix wrote 11/13/2016 at 17:50 point

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

ringokarner wrote 11/11/2016 at 18:39 point

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

Jean-Pierre Cocatrix wrote 11/11/2016 at 19:46 point

try with <arduino.h>

in place of "arduino.h"

  Are you sure? yes | no