Odroid-Go Display will slushy

Post Reply
Tinkerpete
Posts: 52
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

Post by Tinkerpete »

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: 5178
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 389 times
Contact:

Re: Odroid-Go Display will slushy

Post by crashoverride »

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: 52
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

Post by Tinkerpete »

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: 52
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

Post by Tinkerpete »

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: 52
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

Post by Tinkerpete »

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

Tinkerpete
Posts: 52
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

Post by Tinkerpete »

Please help me!

User avatar
odroid
Site Admin
Posts: 35871
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1316 times
Been thanked: 909 times
Contact:

Re: Odroid-Go Display will slushy

Post by odroid »

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

Tinkerpete
Posts: 52
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

Post by Tinkerpete »

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: 52
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

Post by Tinkerpete »

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: 52
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

Post by Tinkerpete »

#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: 8110
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

Re: Odroid-Go Display will slushy

Post by rooted »

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

User avatar
odroid
Site Admin
Posts: 35871
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1316 times
Been thanked: 909 times
Contact:

Re: Odroid-Go Display will slushy

Post by odroid »

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: 196
Joined: Thu Aug 22, 2013 12:46 am
languages_spoken: english
Location: South Korea
Has thanked: 1 time
Been thanked: 18 times
Contact:

Re: Odroid-Go Display will slushy

Post by lsc1117 »

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: 52
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

Post by Tinkerpete »

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: 35871
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1316 times
Been thanked: 909 times
Contact:

Re: Odroid-Go Display will slushy

Post by odroid »

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: 52
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

Post by Tinkerpete »

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

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

Re: Odroid-Go Display will slushy

Post by crashoverride »

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: 52
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

Post by Tinkerpete »

Hi 'crashoverride',
wht did this mean?

This in setup?:

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

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

Re: Odroid-Go Display will slushy

Post by crashoverride »

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

Tinkerpete
Posts: 52
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

Post by Tinkerpete »

Okay, can anyone confirm the pin number?

User avatar
odroid
Site Admin
Posts: 35871
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1316 times
Been thanked: 909 times
Contact:

Re: Odroid-Go Display will slushy

Post by odroid »


Tinkerpete
Posts: 52
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

Post by Tinkerpete »

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

Tinkerpete
Posts: 52
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

Post by Tinkerpete »

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 0 guests