grove display(s) as component

Moderator: Benj

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: grove display(s) as component

Post by Benj »

Hello Stefan,

Right I've been playing more with the Grove displays you sent to me and I think I now have them all working for you.

The LCD RGB Backlight requires the Displays -> LCD(Generic) -> LCD (Grove - I2C)

The other display components require the Displays -> GLCD Base -> GLCD (Grove OLED)

I also looked at the 9 axis sensor, specifically the magnetometer and with the Compass data rate set to 100Hz I seemed to be getting sensible data out of the module though I've not confirmed it is correct. What specifically was the problems you were having with this?

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: grove display(s) as component

Post by stefan.erni »

Hi Ben

The displays dont want to work on my pic32 board.

Not one of them. Can you test on the hardware I send you a while ago?

At the moment I use a color Oled
https://www.mikroe.com/oled-c-click

regards


Stefan

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: grove display(s) as component

Post by Benj »

Hi Stefan,

Ok I'll test again using the PIC32 board.

I certainly had one of the displays running with the PIC32 but I'll see if I can generate you example projects now all the displays are known to work ok.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: grove display(s) as component

Post by stefan.erni »

Hi Ben

Thanks, that's great.
and can you with your left eye pay attention at the PIC flash, if you see the message "Failed to read device" .....


Stefan

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: grove display(s) as component

Post by Benj »

Hi Stefan,

Yes when programming the PIC32 device I get the same error.
Target voltage detected
Target device PIC32MZ2048EFG100 found.
Device ID Revision = A1
Failed to read device
. . . . . . .

Device Erased...
Very odd indeed.

Here is attached a program I have running and driving the display. Note I have had to set the clock speed at twice the actual speed to get the delays correct to drive the display. Seems there are still some peripheral timing problems with specific PIC32 devices. I'll have a go at fixing this now.
OLED1.12v2.fcfx
(9.15 KiB) Downloaded 206 times
Let me know if you would like examples for the other displays.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: grove display(s) as component

Post by Benj »

I unplugged the pickit and replugged and got this.
Target voltage detected
Target device PIC32MZ2048EFG100 found.
Device ID Revision = A1
DEVSN0 = 39779a23
DEVSN1 = e01ad880
. . . . . . . .

Device Erased...
So it does occasionally work :D

Found that when running at 200MHz you can happily drive I/O. There is a peripheral divider on the I/O clock but this is /2 so still running at 100MHz and not going to be an issue.

The problem with the I2C is that is doesn't drive the logic 1, this is done by the pull up resistors when the pin is switched to input mode and for some reason when running at speed this is not happening correctly. There is movement on the voltage on the pin but not enough to drive the bus.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: grove display(s) as component

Post by Benj »

Using hardware I2C I had better results and the display is working great at 200MHz in the attached prog.
OLED1.12v2.fcfx
(9.48 KiB) Downloaded 212 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: grove display(s) as component

Post by stefan.erni »

Hi Ben

Perfect! It's working. Thank You.
I will test the other displays soon.
by the SSD1327 is a litle problem.The background color set to 0 gives a white background.
it should be reversed
About the read device ID.... It's not working to turn on/off icd 4.But I change to the forum topic
http://www.matrixtsl.com/mmforums/viewt ... =7&t=20859
regards

Stefan

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: grove display(s) as component

Post by Benj »

Hi Stefan,
by the SSD1327 is a litle problem.The background color set to 0 gives a white background.
I noticed this problem and it has already been fixed, the updated component will be released tomorrow.

Post Reply