[DIY DTG] DIY DTG with microcontroller - T-Shirt Forums
 

Hi, Unregistered. | Today's Posts

T-Shirt Forums
User Name
Password

Register Today For Free!

Forgot Your Password?





Site Navigation








+   T-Shirt Forums > T-Shirt Industry Information > Direct to Garment (DTG) Inkjet Printing > DIY DTG
Discussion, tips, pictures, reviews and peer to peer support for those do it yourselfers who are working on building their own DTG machine.



[DIY DTG] DIY DTG with microcontroller

Like Tree4Likes

 
Share This Thread Thread Tools
Old May 23rd, 2015 May 23, 2015 11:56:01 AM -   #1 (permalink)
T-Shirt Lover
T-Shirt Fan

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default DIY DTG with microcontroller

I`ve made description of all pins on stock relay board.
This board is from R1900/R2880.

To get full control with microcontroller you need to connect to microcontroller:
- PE sensor for paper detection emulation (get rid of PE sensor)
- Encoder A, B for obvious resons
- APG sensor to emulate APG unit (get rid of AGP unit)
- GND for obvious resons

The easiest way is to solder wires to selected pins and connect it directly to arduino.
Don`t forget that all sensor and encoder runs on 3,3v.

If you made that far to need above info you will compete your mod easly.
If you lack skills of basics electronics or microcontroller programing I wont help you. All you need is to read 2 books.
First about basics electronics and second about programing microcontroler of your choice (AVR, ARM, etc).

My code won`t run on your AVR so I don`t share my code.
To run it you will have to have the same configuration (limit switches, control buttons, stepper driver, correct pinouts, etc.).



For basic configuration you will need 11 pins (9 digital, and 2 analog) on microcontroller so arduino uno is just fine.
- 3 for stepper driver (step, dir, and enable signals) - digital pins
- 2 for limit switches - digital pins
- 2 for encoder - digital pins
- 2 for APG and PE sensor emulation - analog pins (or digital, depending on design)
- 2 for buttons (load, unload) - digital pins

Adding other features need more pins so arduino MEGA is better.
- 2 for LCD (on i2C bus)
- 3 for another stepper driver (height adjustments of plate) - digital pins
- 3 for joystick (easier control than adding more buttons or keypad) - analogpins
- 1 for printer pause (cover open sensor) - digital pin

Cheap and simple AVR have enough power to run it but you have to use hardware timers, interrupts, and direct port manipulation on ISR routines.

Last edited by john2880; May 24th, 2015 at 04:38 AM..
 
The Following 4 Users Say Thank You to john2880 For This Useful Post:
alin3117 (September 12th, 2015), camposz (May 23rd, 2015), HobbyPrint (June 2nd, 2015), zamorasf (September 22nd, 2015)
Sponsored Links
Advertisement
 
Old May 23rd, 2015 May 23, 2015 5:35:05 PM -   #2 (permalink)
T-Shirt Lover
T-Shirt Aficionado

camposz's Avatar
 
You can call me: mike
Member Since: Nov 2010
Location: cd. del carmen, campeche, mexico
Posts: 110
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 71
Thanked 23 Times in 19 Posts


Default Re: DIY DTG with microcontroller

what is the code, or sketch of arduino, for run the printer in mode microcontroller?
 
Old May 24th, 2015 May 24, 2015 1:45:27 AM -   #3 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

Quote:
Originally Posted by camposz
what is the code, or sketch of arduino, for run the printer in mode microcontroller?
My code won`t run on your AVR so I don`t share my code.
To run it you will have to have the same configuration (limit switches, control buttons, stepper driver, correct pinouts, etc.).

Just read 2 books. First about basics electronics and second about programing microcontroler of your choice (AVR, ARM, etc). There is no complete solution for free.
 
The Following User Says Thank You to john2880 For This Useful Post:
camposz (May 24th, 2015)
 
Old May 24th, 2015 May 24, 2015 1:54:09 AM -   #4 (permalink)
T-Shirt Lover
T-Shirt Fan

devahoch's Avatar
 
You can call me: Pete
Member Since: Jan 2012
Location: Slovakia
Posts: 30
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Thanks: 10
Thanked 8 Times in 7 Posts


Default Re: DIY DTG with microcontroller

Hi John2880!
Thank you for foto. I have r1400 and relay board is simily, but for me, I have on pinout to ASF and PE still +3.3V on state without paper. When ASF turn, is 0V (that is ok, I need only read from ASF for make simulate PE). That I have a problem to make signal for PE input to mainboard, becouse on state without paper, pin out have +3.3V, on state with paper - proses with print- (switch is open), on the pinout from PE switch I meansured 0V.
Do you have some idea ( I'm surprised for different with r1900).
__________________
Dcmedia.sk
Signmaking company
 
Old May 24th, 2015 May 24, 2015 2:14:01 AM -   #5 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

Quote:
Originally Posted by devahoch
Hi John2880!
Thank you for foto. I have r1400 and relay board is simily, but for me, I have on pinout to ASF and PE still +3.3V on state without paper. When ASF turn, is 0V (that is ok, I need only read from ASF for make simulate PE). That I have a problem to make signal for PE input to mainboard, becouse on state without paper, pin out have +3.3V, on state with paper - proses with print- (switch is open), on the pinout from PE switch I meansured 0V.
Do you have some idea ( I'm surprised for different with r1900).
It`s easy.
I have 2 limit switches on my build.
When powering up I get my plate to first one (load/unload tshirt position) and when I loaded new tshirt, plate go to second limit switch (ready to print position).

The distance between them is 95000 steps (for stepper).
In ready for print position I reset steps counter (zeroing) and enable encoder signals from printer.

When I click print printer loads plate so microcontroller trigger PE switch for >3000 steps and <76000 steps). It`s 100% error free in sheet mode. When printer finish printing it eject plate. It stops automatically at first limit switch and disable encoder signal.
 
The Following User Says Thank You to john2880 For This Useful Post:
devahoch (May 24th, 2015)
Old May 24th, 2015 May 24, 2015 2:34:46 AM -   #6 (permalink)
T-Shirt Lover
T-Shirt Fan

devahoch's Avatar
 
You can call me: Pete
Member Since: Jan 2012
Location: Slovakia
Posts: 30
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Thanks: 10
Thanked 8 Times in 7 Posts


Default Re: DIY DTG with microcontroller

I look for inspiration of HIGH ADJUSMENT OF PLATEN, Sorry John, you have a automatic mechanism, please, can you show to me image of this mechanism, I need only inspiration, I can construct this with automatic drive with steeper and sensor.
by the way, my base construct is fully function for print with limits and LOAD, EJECT platen. I have Adruino Uno R3 with one stepper, belt drive very simily as X-base from UFO.
Thank you.
__________________
Dcmedia.sk
Signmaking company
 
The Following User Says Thank You to devahoch For This Useful Post:
skip20 (May 31st, 2015)
Old May 24th, 2015 May 24, 2015 2:49:54 AM -   #7 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

buy cheap labjack and add stepper.
It cost me about 120 USD (labjack + stepper).

There are complete solution on the market but they are expensive.

yaman2164 likes this.
 
The Following 2 Users Say Thank You to john2880 For This Useful Post:
devahoch (May 24th, 2015), renbis (October 16th, 2015)
Old May 24th, 2015 May 24, 2015 2:52:55 AM -   #8 (permalink)
T-Shirt Lover
T-Shirt Fan

devahoch's Avatar
 
You can call me: Pete
Member Since: Jan 2012
Location: Slovakia
Posts: 30
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Thanks: 10
Thanked 8 Times in 7 Posts


Default Re: DIY DTG with microcontroller

Quote:
Originally Posted by john2880
buy cheap labjack and add stepper.
thank you, I don't think, that I can buy this thing on the net.
__________________
Dcmedia.sk
Signmaking company
 
Old May 24th, 2015 May 24, 2015 3:12:02 AM -   #9 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

Quote:
Originally Posted by devahoch
thank you, I don't think, that I can buy this thing on the net.
Yes you can. - 4*4" Aluminum Lab Lift Lifting Platforms Stand Rack Scissor Lab Jack Lab Lifting-in Laboratory Clamp from Office & School Supplies on Aliexpress.com | Alibaba Group
This one is not very stable but very cheap - 34USD.

Find it on online shop in your country.
 
The Following User Says Thank You to john2880 For This Useful Post:
devahoch (May 24th, 2015)
Old May 27th, 2015 May 27, 2015 11:54:22 AM -   #10 (permalink)
T-Shirt Lover
T-Shirt Aficionado

adytt's Avatar
 
Member Since: Dec 2011
Posts: 101
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 8
Thanked 10 Times in 9 Posts


Default Re: DIY DTG with microcontroller

Hello John could you please tell me what kind of liniar guides rails did you choose for your build.
I have to decide between this two:

2pcs SBR16 L1000mm cnc Linear slide guide rail with 4pcs SBR16UU Linear Motion sliding bearing block for 16mm Shaft Support rod-in Linear Guides from Industry & Business on Aliexpress.com | Alibaba Group

HIWIN Taiwan made 2pcs HGR15 L 1000mm 15mm linear guide rail with 4pcs HGH15CA narrow carriage sliding block cnc part-in Linear Guides from Industry & Business on Aliexpress.com | Alibaba Group

You help would be kindly appreciated.
Regards!
 
Old May 28th, 2015 May 28, 2015 1:15:45 AM -   #11 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

I used this in all my builds:



They`are a lot cheaper in my country than hiwin linear guide. But if you can buy hiwin and price is resonable get hiwin. Both will be working fine in DTG.
 
The Following User Says Thank You to john2880 For This Useful Post:
adytt (May 28th, 2015)
Old May 28th, 2015 May 28, 2015 5:23:22 AM -   #12 (permalink)
T-Shirt Lover
T-Shirt Aficionado

adytt's Avatar
 
Member Since: Dec 2011
Posts: 101
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 8
Thanked 10 Times in 9 Posts


Default Re: DIY DTG with microcontroller

Quote:
Originally Posted by john2880
I used this in all my builds:



They`are a lot cheaper in my country than hiwin linear guide. But if you can buy hiwin and price is resonable get hiwin. Both will be working fine in DTG.
Thank you for sharing details, I also wanted to choose the same version as you did, yet before I procced ordering this, I want to know if this kind of rails produce high noise when the bearings slide on them. I know that highwin setup is almost perfectly silent.
Looking forward for your reply.
Regards!
 
Old May 28th, 2015 May 28, 2015 8:04:36 AM -   #13 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

You can hear when the bearings are moving.
They are noiser than hiwin but still quieter than working printer.
I use them because the`re 50% cheaper than hiwin in my country so quality/price ratio is OK.
If I can get cheaper hiwin I will definitely use hiwin.
Hiwin is generaly better, and more compact in size.
 
Old May 29th, 2015 May 29, 2015 6:07:31 AM -   #14 (permalink)
T-Shirt Lover
T-Shirt Master

dragonknight's Avatar
 
You can call me: Benny
Member Since: May 2009
Location: Surabaya, Indonesia
Posts: 440
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 258
Thanked 98 Times in 77 Posts


Default Re: DIY DTG with microcontroller

where you at john2880?
__________________
DTGPrinters DTG, Embroidery, Screen Print, Vinyl, Blank T-Shirts Services from Indonesia; Discovery-Jet / Purikura Digital Printing
 
Old May 29th, 2015 May 29, 2015 12:41:15 PM -   #15 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

john2880's Avatar
 
Member Since: Feb 2015
Posts: 95
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 3
Thanked 30 Times in 20 Posts


Default Re: DIY DTG with microcontroller

Quote:
Originally Posted by dragonknight
where you at john2880?
Central Europe.
 






This is a discussion about DIY DTG with microcontroller that was posted in the DIY DTG section of the forums.

Quick Reply
Type Your Message Below:
Do NOT Post Self Promotional URLs, Advertisements, Sales Offers or Requests. It is against our Forum Guidelines.
Options

Register Now

In order to be able to post messages on the T-Shirt Forums, you must first register.


Please enter your desired user name, your email address and other required details in the form below.

Your username must be between 2 and 16 characters and contain only letters and numbers (no special characters like hyphens, *, ', ~, etc)
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.

A confirmation email will be sent to this address, so please make sure it is accurate and that your email software is set to allow emails from our domain: t-shirtforums.com (sometimes the confirmation email gets accidently filtered into Yahoo/AOL/Hotmail/Gmail spam folders)
.

You won't be able to post until your email address has been confirmed. We take your privacy very seriously. Feel free to review our Privacy Policy in a new window.
Email Address:
First Name
It's nice to be able to be on a "first name" basis with the people you talk to in a forum. This is a totally optional field; if you like being on a first name basis, please enter your first name below :)

Log-in



Posting Rules

Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thinking of buying a DTG printer. Read first! bertie2000 Direct to Garment (DTG) Inkjet Printing 58 January 2nd, 2018 03:49 AM
[DIY DTG] I am planning to buy 8 months used Epson R2000 based DTG Printer. Give me suggestions and input on this. offbeatzombie DIY DTG 0 April 15th, 2015 11:55 PM
[DIY DTG] Shall I buy DIY Epson R3000 DTG Printer? offbeatzombie DIY DTG 3 April 9th, 2015 10:19 PM
Shall I buy DIY Epson R3000 DTG Printer? offbeatzombie Direct to Garment (DTG) Inkjet Printing 1 April 6th, 2015 10:51 AM
R3000 Epson DTG Printer lmcclain6 Direct to Garment (DTG) Inkjet Printing 13 October 31st, 2014 08:17 AM


All times are GMT -8. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2004-2014 T-ShirtForums.com. All rights reserved.