You are not logged in.

#1 2020-12-09 22:12:32

stevesherrin
Member
Registered: 2020-12-09
Posts: 8

Z-axis not working

I have a Raspberry Pi 3B with a NanoDLP Shield 1.1.  I have gotten NanoDLP running and Nextion screen working but the Z-axis wont move, from the screen or from browser.  I've confirmed the motor is good (actually tried 2, both good).  I checked the ports on my pi and got this list:

/dev/tty    /dev/tty19  /dev/tty3   /dev/tty40  /dev/tty51  /dev/tty62
/dev/tty0   /dev/tty2   /dev/tty30  /dev/tty41  /dev/tty52  /dev/tty63
/dev/tty1   /dev/tty20  /dev/tty31  /dev/tty42  /dev/tty53  /dev/tty7
/dev/tty10  /dev/tty21  /dev/tty32  /dev/tty43  /dev/tty54  /dev/tty8
/dev/tty11  /dev/tty22  /dev/tty33  /dev/tty44  /dev/tty55  /dev/tty9
/dev/tty12  /dev/tty23  /dev/tty34  /dev/tty45  /dev/tty56  /dev/ttyAMA0
/dev/tty13  /dev/tty24  /dev/tty35  /dev/tty46  /dev/tty57  /dev/ttyprintk
/dev/tty14  /dev/tty25  /dev/tty36  /dev/tty47  /dev/tty58  /dev/ttyS0
/dev/tty15  /dev/tty26  /dev/tty37  /dev/tty48  /dev/tty59
/dev/tty16  /dev/tty27  /dev/tty38  /dev/tty49  /dev/tty6
/dev/tty17  /dev/tty28  /dev/tty39  /dev/tty5   /dev/tty60
/dev/tty18  /dev/tty29  /dev/tty4   /dev/tty50  /dev/tty61

ttyS0 doesn't work and ttyAMA0 is the port for the Nextion screen so I set the Ramps USB/Serial Port Address to ttyprintk.  It allows me to do this but neihter z-axis control nor the touchscreen move the motor.  Any thoughts on what I may be doing wrong?

Offline

#2 2020-12-10 05:38:02

sinned6915
Member
Registered: 2019-08-22
Posts: 52

Re: Z-axis not working

I think you might have the ports flip-flopped.

How is your Nextion connected? If its through the conventional GPIO pins 15 & 16, it should be on /dev/ttyS0. Have a look at the sticky for connection Nextion in the Tips & Tricks pages

if you leave your printer disconnected, what is the output of 'lsusb' ?

the 3B+, the physical ports are ganged togther.   you will only see 1 USB port to show up if you ls /dev, I am pretty sure it is the root USB of the hub. 
( see https://github.com/mvp/uhubctl#raspberry-pi-b2b3b)
for me, its /dev/ttyAMA0 and /dev/ttyS0 which is the Nextion
for my setup -  with 3B+, lsusb yields

pi@D7nanoDLP:~ $ lsusb
Bus 001 Device 004: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

when my printer is connected and on-

pi@D7nanoDLP:~ $ lsusb
Bus 001 Device 005: ID 2341:0010 Arduino SA Mega 2560 (CDC ACM)
Bus 001 Device 004: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and I get 2 ports in /dev
ttyACM0 and ttyAMA0 in additon to ttyS0

Offline

#3 2020-12-10 20:37:26

stevesherrin
Member
Registered: 2020-12-09
Posts: 8

Re: Z-axis not working

Thank you!  Turns out I was looking in completely the wrong place... using the NanoDLP Shield 1.1 (not sure about 2.0) i had to access it via gpio, not serial.  If anyone else runs into this issue here are the key gpio ports on the 1.1:

Step: 25
Dir: 23
Limit Top: 18
Limit Bottom: 24
PWM: 17
UV LED (Shutter): 5

Offline

#4 2020-12-10 23:40:52

sinned6915
Member
Registered: 2019-08-22
Posts: 52

Re: Z-axis not working

Please accept my apologies- I missed that you were using the sheild.
Its great that you got it worked out.

Can you post a screenshot or two of your config settings pages? That might help people to see where they have to enter this info.

stevesherrin wrote:

Thank you!  Turns out I was looking in completely the wrong place... using the NanoDLP Shield 1.1 (not sure about 2.0) i had to access it via gpio, not serial.  If anyone else runs into this issue here are the key gpio ports on the 1.1:

Step: 25
Dir: 23
Limit Top: 18
Limit Bottom: 24
PWM: 17
UV LED (Shutter): 5

Offline

Board footer

Powered by FluxBB