clough42 / electronic-leadscrew

Lathe electronic leadscrew controller
MIT License
321 stars 117 forks source link

Touch screen controller #35

Open broke-again opened 4 years ago

broke-again commented 4 years ago

Is there room (on board and in code) to incorporate an lcd touch-screen control panel ?

clough42 commented 4 years ago

A touchscreen UI would be possible. The existing interface PCB provides a level-shifted open-drain SPI bus, so it might be possible to connect a touchscreen that uses that protocol and write new code in the firmware to drive it. If the LCD uses a different protocol, a different connection would be required. I'm sure the microcontroller has enough pins, but it isn't currently accommodated on the PC board.

James

On Fri, Dec 6, 2019 at 4:30 AM broke-again notifications@github.com wrote:

Is there room (on board and in code) to incorporate an lcd touch-screen control panel ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clough42/electronic-leadscrew/issues/35?email_source=notifications&email_token=AAZLSHBCGDXS4ILAQGTHQBTQXIZURA5CNFSM4JWUHTQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H6SZWNA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZLSHHHLUKP27GCA4YYG6TQXIZURANCNFSM4JWUHTQQ .

broke-again commented 4 years ago

Is your installed code editable or is it locked? Please excuse my ignorance as I've not yet received your product. Thanks, in advance, for your cooperation

gadjet commented 4 years ago

How about a Nextion display which uses the serial port and comes in different sizes.

clough42 commented 4 years ago

The code is offered under the MIT license, so you can modify it as you wish.

James

On Sat, Dec 7, 2019, 8:28 PM broke-again notifications@github.com wrote:

Is your installed code editable or is it locked? Please excuse my ignorance as I've not yet received your product. Thanks, in advance, for your cooperation

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/clough42/electronic-leadscrew/issues/35?email_source=notifications&email_token=AAZLSHEGYJGSPN45AP5O5ZDQXRSXHA5CNFSM4JWUHTQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGU7NQ#issuecomment-562909110, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZLSHCCWX3GWBEDOSAKNMDQXRSXHANCNFSM4JWUHTQQ .

clough42 commented 4 years ago

The nextion display uses separate tx and rx lines. The microcontroller can handle it easily, but I haven't provided connections for it on the interface PCB.

Though I think it uses 3.3v logic, IIRC, so it might not require any interface circuitry.

On Sun, Dec 8, 2019, 2:11 AM Phil Grant notifications@github.com wrote:

How about a Nextion display which uses the serial port and comes in different sizes.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/clough42/electronic-leadscrew/issues/35?email_source=notifications&email_token=AAZLSHANHHUMI2GZNURRZ33QXS225A5CNFSM4JWUHTQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGZHTY#issuecomment-562926543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZLSHHWWZ4WBIDFXNPKB2DQXS225ANCNFSM4JWUHTQQ .

gadjet commented 4 years ago

Yes, from what I can find out the Nextion display has a 5V feed but uses an on-board 3.3V regulator for the logic.

alexphredorg commented 4 years ago

I'm going to move over to this display from Matrix Orbital: https://www.matrixorbital.com/glk19264a-7t-1u

There are some cheap ones on eBay (I paid about $25). It looks easy to drive but I'll need to move over to the UART. It handles 5V so it's still an easy to do 4 wire interface. It isn't touchscreen, but in a shop I prefer real buttons to touchscreen.

The full text display will allow me to add some improved threading modes to work on a lathe with no compound. I'm going to remove the compound on my lathe to get better rigidity and a little more height clearance for my toolpost.