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?
grove display(s) as component
Moderator: Benj
- 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
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
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
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
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
- 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
Hi Stefan,
Yes when programming the PIC32 device I get the same error.
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.
Let me know if you would like examples for the other displays.
Yes when programming the PIC32 device I get the same error.
Very odd indeed.Target voltage detected
Target device PIC32MZ2048EFG100 found.
Device ID Revision = A1
Failed to read device
. . . . . . .
Device Erased...
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.
Let me know if you would like examples for the other displays.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
I unplugged the pickit and replugged and got this.
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.
So it does occasionally workTarget voltage detected
Target device PIC32MZ2048EFG100 found.
Device ID Revision = A1
DEVSN0 = 39779a23
DEVSN1 = e01ad880
. . . . . . . .
Device Erased...
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- 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
Using hardware I2C I had better results and the display is working great at 200MHz in the attached prog.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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
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
- 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
Hi Stefan,
I noticed this problem and it has already been fixed, the updated component will be released tomorrow.by the SSD1327 is a litle problem.The background color set to 0 gives a white background.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel