Page 1 of 1

lcd160cr on pyboard original no works#resolved#

Posted: Sat Apr 25, 2020 9:41 am
by IHOXOHI
Hi,
No display with my original pybaord and lcd160...
My code:
####
import lcd160cr
lcd = lcd160cr.LCD160CR('X')
####
The lcd is connected on 'X' ports.
I will try the only one solution on the lcd160 of this forum with an other board, wich consist to defined the ports. So I have to check my numbers of ports, and I will post the results...

If somebody has the correspondence of the pin, or can help me, I will be more happy.
Thanks.

Re: lcd160cr on pyboard original no works

Posted: Sun Apr 26, 2020 3:07 am
by jimmo
IHOXOHI wrote:
Sat Apr 25, 2020 9:41 am
No display with my original pybaord and lcd160...
Do you see an error or does the display just not work? If it's an error, what is the error?

To actually see anything on the display you need to do something like:

Code: Select all

import lcd160cr
lcd = lcd160cr.LCD160CR('X')
import lcd160cr_test
lcd160cr_test.test_all(lcd)
Which version of MicroPtyhon do you have installed on your pyboard. Can you press Ctrl-D at the REPL and show us what the welcome message says? Like Peter said on github, you should see something like:

Code: Select all

MicroPython v1.12.... on <date>; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> 

Re: lcd160cr on pyboard original no works

Posted: Sun Apr 26, 2020 6:31 am
by IHOXOHI
Hi Jimmo,

Thanks for your help.
The error is " OSERROR : [Errno 19] ENODEV
YES! You have right.
I have received others responses from the community and it's clear ; a problem of an update of the firmware...
When I use ctrl+d in repl session, I have :
"
Entering REPL. Use Control-X to exit.
>
MicroPython v1.10 on 2019-01-25; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>>
PYB: sync filesystems
PYB: soft reboot
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
MicroPython v1.10 on 2019-01-25; PYBv1.1 with STM32F405RG
Type "help()" for more information.
"

You talk about v1.12...
Maybe it will resolve other problems that I have had with ssd1306 display...

I will check how can I update my firmware, and post the result...

Thanks a lots to all the community.

Re: lcd160cr on pyboard original no works

Posted: Sun Apr 26, 2020 7:13 am
by IHOXOHI
Yo,

I have update the firmware...
But it no works yet.
My commande:
"Entering REPL. Use Control-X to exit.
>
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>> import lcd160cr
>>> lcd = lcd160cr.LCD160CR('X')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lcd160cr.py", line 76, in __init__
File "lcd160cr.py", line 210, in set_orient
File "lcd160cr.py", line 95, in _fcmd2
File "lcd160cr.py", line 81, in _send
OSError: [Errno 19] ENODEV
>>>
MPY: sync filesystems
MPY: soft reboot
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
"

Always the same error...

Thanks for your help.

Re: lcd160cr on pyboard original no works

Posted: Mon Apr 27, 2020 9:17 am
by pythoncoder
The display hardware isn't being detected. Have you connected it to the X skin? See http://micropython.org/resources/pybv10-pinout.jpg for the positions of the X and Y skins.

Re: lcd160cr on pyboard original no works

Posted: Mon Apr 27, 2020 3:46 pm
by IHOXOHI
Hi Pyth,

Yes for sure!
"
If X means X:
X is connected.
"
When I use a command* for known if the i2c connection is true ; I have true.
...
*from a member of the community
Thanks for your participation,
Enjoy.

Re: lcd160cr on pyboard original no works

Posted: Tue Apr 28, 2020 6:59 am
by pythoncoder
I installed the same firmware as you, and fitted an LCD160CR in the X position. This was my REPL session:

Code: Select all

MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> 
>>> import lcd160cr
>>> lcd = lcd160cr.LCD160CR('X')
>>> import lcd160cr_test
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
>>> lcd160cr_test.test_all(lcd)
The display worked as normal.

So I'm afraid I can only see two possibilities:
  • Incorrectly connected hardware.
  • Defective hardware.

Re: lcd160cr on pyboard original no works

Posted: Tue Apr 28, 2020 7:58 am
by IHOXOHI
Hi Peter,
Ok. Thanks for your response.
I have bought a pyboard-D with an other lcd160cr... So, I will wait to received it, and see if the problem comes from the pyboard or the LCD... For sure I will return one of them. I have bought the pyboard original and the lcd on Lextronic shop in France... the pyboard-d with the second lcd is coming directly from UK...

I will post my conclusions...

Thanks a lot to all the community.
Have the best.
See you soon.

Re: lcd160cr on pyboard original no works

Posted: Tue Apr 28, 2020 2:53 pm
by IHOXOHI
Hi,
I have found... It comes from my usage of an other serial port with an other esp on my raspberry...
It seems that it create a conflict for the use of the display... I didn't known that we can't use 2 ports (ACM0 and ACM1) in the same time for displaying. For the rest it was working.
If I stop datalogging on the other ttyACM port, the lcd start correctly.

So goood!!!

Sorry for all these desagrements,

Maybe it's time for me to ask if it could be possible to run repl session with a pyboard-D alone, without a pc's supervision... I have the dream of a pyboard which can manage my email. For sure it implicate a keyboard manage, and I think that the biggest difficulties are to run the repl session in upython... Maybe it's completly impossible...
I will try.

Thanks a lots to all the community.
It was a pleasure to meet you.
All the best.