Odroid-Go Display will slushy

Post Reply
Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Odroid-Go Display will slushy

Unread post by Tinkerpete » Wed Jan 23, 2019 4:59 pm

Hello all,

new problem: Now i have a Adafruit MMA8451 sensor working with the Odroid-Go. I have written a program that the values from the sensor show as graph on the display. But after a few seconds the display will be slushy. I have no idea about the reason.

Is the Odroid-Go display also connected to the I2C ?

With a I2C scanner i get only 0X1D for the sensor.

Any ideas?

crashoverride
Posts: 4617
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 140 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by crashoverride » Wed Jan 23, 2019 5:27 pm

Tinkerpete wrote:
Wed Jan 23, 2019 4:59 pm
Is the Odroid-Go display also connected to the I2C ?
No. The display is only connected to SPI.

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Wed Jan 23, 2019 8:40 pm

I have reduced my problem to this code:

#include <odroid_go.h>

int xArray [320];
int xPointer = 0;

void setup(void) {
GO.begin ();
}

void loop() {
xArray [xPointer] = (int) (random(50));
int actPos = xPointer;
for (int i = 319; i > 0; i--) {
GO.lcd.drawLine(i, xArray , i - 1, xArray , TFT_RED);
}
xPointer++;
if (xPointer > 319) {
xPointer = 0;
}
}

After a few seconds the color of the drawed lines move from red to blue???

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Wed Jan 23, 2019 8:56 pm

More reduced:

#include <odroid_go.h>

void setup(void) {
GO.begin ();
}

void loop() {
int x1 = random (50);
int x2 = random (50);
GO.lcd.drawLine(x1, 0, x2, 50, TFT_RED);
delay (100);
}

Same result: after a few seconds blue lines on the screen. Why?

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Thu Jan 24, 2019 4:52 am

Can anybody test this? Is this on your Odroid-Go the same? What could the reason for this phaenomen?

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Sat Jan 26, 2019 12:20 am

Please help me!

User avatar
odroid
Site Admin
Posts: 33001
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 286 times
Been thanked: 410 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by odroid » Mon Jan 28, 2019 9:01 am

Try to check whether "random" function causes the issue or not.

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Tue Jan 29, 2019 4:17 am

Hi 'odroid',
thank you for your answer. I have tried it without 'random' and the problem disappeared. But i think, there schould not color change with random too.

Have you tried my program? Did on your Odroid-Go also change the color after some time?

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Thu Jan 31, 2019 1:31 am

This simple programm show the problem again and without 'random':

#include <odroid_go.h>

void setup(void) {
GO.begin ();
for (int x = 0; x < 200; x++) {
GO.lcd.drawLine(x, 0, 0, 239, TFT_GREEN);
}
}

void loop() {
}

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Thu Jan 31, 2019 1:51 am

#include <odroid_go.h>

void setup(void) {
GO.begin ();
/*
// This makes, if you look very exactly, 3 empty pixel in the green triangle!
for (int x = 100; x < 220; x++) {
GO.lcd.drawLine(x, 80, 100, 159, TFT_GREEN);
}
*/
// And this changes to red again!
for (int x = 100; x < 220; x++) {
GO.lcd.drawLine(x, 60, 100, 179, TFT_GREEN);
}
}

void loop() {
}

User avatar
rooted
Posts: 7113
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 375 times
Been thanked: 102 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by rooted » Thu Jan 31, 2019 2:01 pm

Don't have a Go but I'm sure someone will be along and test to verify.

User avatar
odroid
Site Admin
Posts: 33001
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 286 times
Been thanked: 410 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by odroid » Thu Jan 31, 2019 3:46 pm

It seems to be a library issue,
We will test it tomorrow.
I have removed your another topic since it is the same issue.

lsc1117
Posts: 162
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by lsc1117 » Thu Jan 31, 2019 7:34 pm

I have tested all of your code on my ODROID-GO but there is no issue.
Can you take a video of such the issue? And also try reassembling the LCD again, please.

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Fri Feb 01, 2019 12:03 am

Ok, I disassembled the case and opened and closed the display connector. Now it seemed to work. I reassembled it and connected it to the computer via USB and the graphic error appeared again. Possibly a problem with the screws? Do they cause a short circuit? I reassembled the case and checked after each screw whether the problem occurred again. It was all ok until the moment when I put the microSD card back in!

The microSD card is causing the problem!

Thanks 'lsc1117' for the hardware idea!

Still, there seems to be a small problem.

Translated with www.DeepL.com/Translator

User avatar
odroid
Site Admin
Posts: 33001
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 286 times
Been thanked: 410 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by odroid » Fri Feb 01, 2019 8:47 am

Did you fasten all four screws on the PCB? If you missed the screw #4, it might cause the display connection instability.
https://wiki.odroid.com/odroid_go/go_as ... main_board
Image

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Fri Feb 01, 2019 4:20 pm

I think there is no display instability. The problem ist the inserted microSD-Card!

crashoverride
Posts: 4617
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 140 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by crashoverride » Fri Feb 01, 2019 5:23 pm

The LCD and SD card share the SPI bus. If an SD card is inserted, the interface must either be initialized or the SPI CS1 (IO22) pin must be set "high" to disable the SD card.

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Fri Feb 01, 2019 10:46 pm

Hi 'crashoverride',
wht did this mean?

This in setup?:

pinMode(22, OUTPUT);
digitalWrite(22, HIGH);

crashoverride
Posts: 4617
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 140 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by crashoverride » Fri Feb 01, 2019 11:21 pm

I am not familiar with Arduino. Someone else will need to confirm the number that maps to IO22.

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Sat Feb 02, 2019 2:04 am

Okay, can anyone confirm the pin number?

User avatar
odroid
Site Admin
Posts: 33001
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 286 times
Been thanked: 410 times
Contact:

Re: Odroid-Go Display will slushy

Unread post by odroid » Wed Feb 06, 2019 9:25 am


Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Wed Feb 06, 2019 8:38 pm

Yes, you should! But I don't think I can do it.

Tinkerpete
Posts: 44
Joined: Tue Oct 16, 2018 3:46 pm
languages_spoken: english
ODROIDs: Odroid-Go
Has thanked: 0
Been thanked: 0
Contact:

Re: Odroid-Go Display will slushy

Unread post by Tinkerpete » Sat Feb 09, 2019 10:56 pm

pinMode(22, OUTPUT);
digitalWrite(22, HIGH);

Did not work! When inserted a sd card, the display gone slushy.

Post Reply

Return to “Arduino Coding Camp”

Who is online

Users browsing this forum: No registered users and 1 guest