Update rate of NXT screen

Discussion specific to the intelligent brick, sensors, motors, and more.
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Update rate of NXT screen

Post by timpattinson »

muntoo wrote:
milluzaj wrote: I learned the screen has a refresh rate of about 50 ms. You might need a wait to display some of the stuff at higher speeds. :P
timpattinson wrote:10 FPS, hardware limitation.
Has anyone actually tested that? You could try using NeXTScreen at 50ms poll rate with AVI capture, and see how many frames you can see of the line growing:

Code: Select all

//#define POINT

task main()
{
    for(int x = 0; x < 100; x += 5)
    {
#ifdef POINT
        PointOut(x, 32, 1);
#else
        LineOut(0, 32, x, 32, 1);
#endif
        Wait(50);
    }
}
timpattinson wrote:Have now.
2nd latest test release:
With #define commented out:


With #define:


AVI File(with no #define):
nxt_000.zip
(126.86 KiB) Downloaded 284 times
AVI File: (with #define)
nxt_000_2_000.zip
(102.92 KiB) Downloaded 313 times
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: Update rate of NXT screen

Post by muntoo »

Link to original thread.

Actually, thinking about it, my test wouldn't work if what's on the NXT's screen is different from what the NXT thinks is on its screen. (i.e. The hardware screen hasn't been refreshed yet, but the screen memory buffer and/or refresh flag* has changed.)

The only accurate test would be to make a video in real life. (Hint**: With a video camera.)

*Is there a such thing as a refresh flag?
** No, I am not insulting your intelligence. ;)
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Update rate of NXT screen

Post by mightor »

The 10Hz refresh rate is a limitation by the LCD screen's controller. It was discussed at an MCP meeting last year and confirmed by one of the hardware designers.

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: Update rate of NXT screen

Post by afanofosc »

Here's a thread on lugnet that suggests the LCD refresh rate is 60 to 70 hz.

http://news.lugnet.com/robotics/nxt/nxthacking/?n=26

See also this link where Dick Swan refers to changing the frame rate from 76 to 95. Not sure that means refers to the refresh rate or something else.

http://news.lugnet.com/robotics/nxt/nxthacking/?n=36

10hz seems unlikely to me, but I am prepared to be totally wrong. I don't understand how people like Jason Railton or Dick Swan could be unaware of a 10hz limit if that were the case.

John Hansen
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: Update rate of NXT screen

Post by muntoo »

Relevant quotes:
Jason J Railton wrote:What you’re doing in code is transferring screen data over a serial link to the single-frame buffer held on the LCD driver chip. You’re not controlling the display’s pixels directly. The LCD controller then refreshes the physical screen from that buffer at a rate of around 60Hz or 70Hz. It doesn’t matter how quickly you actually dump data over the serial link, the display only gets refreshed at the rate dictated by the LCD controller.

That’s why small matrix ‘passive’ LCD devices (like calculators, the original Nintendo Game Boy, and the Grapevine PDA on my desk) only have two shades of grey. They flick between two images as fast as possible, but are able to control the delay between refreshes slightly so that one of the frames lasts a little longer than the other, and you get two different shades of grey. They can’t regulate the brightness of individual pixels like more recent ‘active’ colour LCD displays do (TFTs have a discrete transistor for each pixel). [1]
Dick Swan wrote:This is also the place to change the frame rate from 76 to 95 as was mentioned in one of the other posts. [2]
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: Update rate of NXT screen

Post by mightor »

I stand corrected :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
aswin0
Posts: 201
Joined: 29 Sep 2010, 06:58

Re: Update rate of NXT screen

Post by aswin0 »

muntoo wrote:They flick between two images as fast as possible, but are able to control the delay between refreshes slightly so that one of the frames lasts a little longer than the other, and you get two different shades of grey.
This means that, in theory, we could make a grayscale display for the NXT!
My blog: nxttime.wordpress.com
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: Update rate of NXT screen

Post by muntoo »

aswin0 wrote:This means that, in theory, we could make a grayscale display for the NXT!
Look at this:
Image
It's from the first link John posted.
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
savedcoder
Posts: 32
Joined: 08 Mar 2011, 17:23
Location: /dev/null
Contact:

Re: Update rate of NXT screen

Post by savedcoder »

As far as motion is concerned, I'm not sure a 70hz refresh rate is much better than 10hz, because the pixels respond so slowly. A sprite moving to keep pace with a 70hz refresh will be severely blurred. As Aswin0 said though, that's good for static grayscale.
To God be the glory, great things He has done;
So loved He the world that He gave us His Son,
Who yielded His life an atonement for sin,
And opened the life gate that all may go in.
nxtboyiii
Posts: 366
Joined: 02 Oct 2010, 07:08
Location: Everywhere

Re: Update rate of NXT screen

Post by nxtboyiii »

That would be nice to see some NXC code of grayscale...
Thanks, and have a nice day,
nxtboy III

programnxt.com
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests