DFRobot 2.8 USB TFT Pi 2 Raspbian Setup Guide ( Advanced )

Yes, its on a pi2. And nothing shows up on th USB display. Not even the rainbow square. :(

Hi Sorry for another question. Do you have any setup that I can setup the USB display on NOOBS?

Thanks a lot.

NOOBS isn’t really an OS, it’s just an installer with which you’re, presumably, installing Raspbian and should just follow the instructions above once you’ve gone through the first steps to install it. There’s no support for any of the other OSes in NOOBS, just Raspbian at the moment.

hi. Thanks for that. I will try to use NOOBs and then these steps. How to use startx? I have no idea about that. I choose to automatically start with desktop on boot.

Thanks a lot for your time.

startx is only necessary if you want to get from command line ( if you’ve chosen to boot up into it ) into a graphical desktop.

If you’re booting into a graphical desktop by default, these settings should “just work”… in theory!

hi,

sdrothrock you suggested me to do everything said in first two posts inside raspberry pi forum. can you please specify which two topics? I can install raspberry pi and use its wifi and run programs. so if i need to do anything before the steps suggested in this post (other than installing), please suggest.

thanks a lot in advance ^_^

The first two posts in this topic by Gadgetoid.

Guys it worked!! But I must say the display is not comfortable. Like, I can’t see whole screen and etc.

Did any of check that if you enable the camera module you can’t see anything on the USB display, rather on the HDMI?

Thanks a lot gadgetoid and sdrothrock (I still couldn’t find the posts you mentioned about) for your time.

It’s definitely not a display you’d want to use a full X desktop on, which is why I was investigating running it alongside a normal screen where you could test/deploy Python/PyGame apps to it.

I wanted to get PyGame working with not only the screen, but the touch input too, but it was tricky and I ran out of time to tinker.

Hi,

Gadgetoid you mean the camera should not show up on the usb display? I am trying to google it, but naturally not much luck yet. But my supervisor wants to see if we can use this display without the HDMI plugged in with the camera module. :(

To mirror the camera preview you’ll need to use something like FBCP, https://github.com/tasanakorn/rpi-fbcp. This copies the main framebuffer, which the preview window draws to, to the external display.

There’s a thread about it here: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=45059

Hi gadgetoid,

thanks a lot. I will “try”. I am still a newbie. and so I am worried. But hopefully I can nail it. ^_^

1 Like

Hi,

I have a new question regarding the display again!

How to use the USB display with a raspberry pi model earlier than Raspberry pi2? I saw I need to buy a new Sd card :(
If someone has an SD card already can you suggest me any forum where I can find steps to set up the display.

thanks.

sorry I meant SD card with raspbian installed. Just like these steps written by gadgetoid if i could follow some steps to set up the USB display with Raspberry Pi B+.

Thanks for your help.

I haven’t produced steps for the B+ because the manufacturer already has that covered, you’ll need to download the image file here: http://docs.robopeak.net/doku.php?id=product-rpusbdisp-downloads&#prebuilt_firmwares

And write it to an SD card like you would a Raspbian image.

I think everything’s covered in this guide: http://www.dfrobot.com/index.php?route=DFblog/blog&id=60&search=2.8"+USB+Touch+screen&description=true

Hi gadgetoid,

thanks. But can I not alter the existing raspbian image and use the existing SD card to install it on a raspberry pi B+?

Their image is almost a year out of date now, it’s possible you could grab the kernel and modules from it, but I don’t know how nicely they would get on in a new Raspbian system.

They actually have a guide for grabbing the kernel and modules from their full system image: http://docs.robopeak.net/doku.php?id=rpusbdisp_faq#q5

It’s a somewhat arduous and tricky process which is very similar to the steps outlined at the top of this thread. I’ll see if I can grab the kernel and modules into archives.

Their image is almost a year out of date now, however, so it might be better to compile the modules from scratch yourself.

hi gadgetoid,

thanks for putting up this effort for us. I am still a newbie but I could setup the display with my pi2 using your thread because of the way you put it. Thanks a lot.

If you could please do me this favor so that I can set it up using an existing raspbian by only changing the kernel and modules it would be much help. I am looking the link you have suggested. thanks a lot once again.

Okay, I’ve packaged up the modules for you. Follow the instructions at the top again, only this time substitute the wget commands for:

wget https://get.pimoroni.com/kernel-rpusb.img

and

wget https://get.pimoroni.com/modules-bplus.tar.gz

Just a quick update- there’s now an update to Raspbian containing Kernel 4.1.6, it looks like some recent changes to support other products have had the knock-on effect of making it much, much easier to get the DFRobot/RoboPeak 2.8 USB TFT up and running.

It’s early days, and I’ve got to make sure I test it under a fresh install of Raspbian on both the B+ and the Pi 2 ( since they use different kernels ), but it looks like I’ll be able to write a script which will drop the rp_usbdisplay.ko module into the right place, run sudo depmod and get the display up and running in seconds. No need to download, install and run a full kernel and modules anymore, which is nice.

Anyway! Bear with me.