You are not logged in.

#1 Re: Tips, Tricks and Tutorials » Touch screen for NanoDLP » 2017-08-04 11:30:32

Hi,
It is so excited to finally see a computer-less solution for Nanodlp, so I just got my new nextion screen and tried as everything you list on Github, but I couldn't get anything displayed except "Connecting to printer..." message. It was so frustrating after trying for all afternoon.
I checked the output log in nextion by using WinSCP, and there is a looping of "error opening port  /dev/ttyAMA0 retry in 2 sec". Then I just found this article(http://www.briandorey.com/post/Raspberry-Pi-3-UART-Boot-Overlay-Part-Two) which including the method to enable /dev/ttyAMA0 of almost all version of Raspberry Pi, anyone who has the same problem as me could follow the instruction of your version on Raspi in it.
I'm using the latest verion of Raspberry Pi 3B, so for me, it can be done in just 5 steps:
1:run this in the terminal:sudo systemctl disable hciuart 
2:sudo nano /lib/systemd/system/hciuart.service  and change every "ttyAMA0" to "ttyS0", there will be 2 of them in total, then save and exit.
3:sudo nano /boot/config.txt   and add "dtoverlay=pi3-miniuart-bt" to the end, save and exit.
if you don't have "pi3-miniuart-bt" in your /boot/overlays, just download it here:http://ukonline2000.com/wp-content/uploads/2016/03/pi3-miniuart-bt-overlay.zip, and put "pi3-miniuart-bt-overlay.dtb" into /boot/overlays
4:sudo nano /boot/cmdline.txt delete "console=serial0,115200" or "console=ttyAMA0,115200"
5:run sudo apt-get update 
      sudo apt-get upgrade 
      sudo reboot 
Then finally I got it right! and thanks juliendelnatte for sharing your great work!!

Board footer

Powered by FluxBB