[DIY DTG] Build DTG printer A3+ with Epson R1900 - Page 5 - 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] Build DTG printer A3+ with Epson R1900

Like Tree18Likes

 
Share This Thread Thread Tools
Old July 4th, 2014 Jul 4, 2014 4:44:15 AM -   #61 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

I have a few DQ542MA which are the same as the 2M542 4.2A
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com
 
Sponsored Links
Advertisement
 
Old July 8th, 2014 Jul 8, 2014 12:25:47 AM -   #62 (permalink)
T-Shirt Lover
T-Shirt Fan

binjoder's Avatar
 
Member Since: Apr 2014
Posts: 68
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 5
Thanked 4 Times in 4 Posts


Default Re: Build DTG printer A3+ with Epson R1900

Quote:
Originally Posted by Mikistromar
If use arduino mini must write delay.h
If use due remove delay.h

Can you provide the delay.h code ?


and how about epson 1430 arduino source code? is it 360 cycle same as r1900 and r1400 ?? please instruct me


Quote:
Originally Posted by Mikistromar
Hi guy,
If you are interested so you enclose the underlying code for controlling Epson encoder on the stepper motor driver. I will share with you but you are cautiously examine my post.
All I show you, analysis and the rest you have to do it yourself.
I do not exactly one display case as well as dragonknight did not want anything more to answer the Functioning of the DTG. Therefore, I myself studied some with your help and some on other forum.
This is code:

Code:
#define encoder_a 2 //keep this on and interrupt pin
#define encoder_b 3 //keep this on and interrupt pin
#define motor_step 4 //can be any pin
#define motor_direction 5 //can be any pin

#include <delay.h>
volatile long motor_position, encoder;

void setup () {
  //set up the various outputs
  pinMode(motor_step, OUTPUT);
  pinMode(motor_direction, OUTPUT);
  
  // then the encoder inputs
  pinMode(encoder_a, INPUT);
  pinMode(encoder_b, INPUT);
  // enable pullup as we are using an open collector encoder
  digitalWrite(encoder_a, HIGH); 
  digitalWrite(encoder_b, HIGH); 
  
  // encoder pin on interrupt 0 (pin 2)
  attachInterrupt(0, encoderPinChangeA, CHANGE);
  // encoder pin on interrupt 1 (pin 3)
  attachInterrupt(1, encoderPinChangeB, CHANGE);
  encoder = 0; //reseet the encoder position to 0
}

void loop() {
  //do stuff dependent on encoder position here
  //such as move a stepper motor to match encoder position
  //if you want to make it 1:1 ensure the encoder res matches the motor res by dividing/multiplying
  if (encoder > 0) {
    digitalWrite(motor_direction, HIGH);// move stepper in reverse
    digitalWrite(motor_step, HIGH);
    digitalWrite(motor_step, LOW);
    delayMicroseconds(10); //_delay_us(200); //modify to alter speed
    motor_position++;
    encoder = 0; //encoder--;
  }
  else if (encoder < 0) {
    digitalWrite (motor_direction, LOW); //move stepper forward
    digitalWrite (motor_step, HIGH);
    digitalWrite (motor_step, LOW);
    delayMicroseconds(10); //_delay_us(200); //modify to alter speed
    motor_position--;
    encoder = 0; //encoder++;
  }
}

void encoderPinChangeA() {
  if (digitalRead(encoder_a)==digitalRead(encoder_b)) {
    encoder--;
  }
  else{
      encoder++;
  }
}

void encoderPinChangeB() {
  if (digitalRead(encoder_a) != digitalRead(encoder_b)) {
    encoder--;
  }
  else {
    encoder++;
  }
 }
These are the basic code but happily explore
 
Old July 8th, 2014 Jul 8, 2014 3:17:56 AM -   #63 (permalink)
T-Shirt Lover
T-Shirt Fan
Thread Starter

Mikistromar's Avatar
 
You can call me: Miki
Member Since: Jan 2014
Location: Slovenia
Posts: 72
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 1
Thanked 23 Times in 15 Posts


Default Re: Build DTG printer A3+ with Epson R1900

These are the basic code and run only on slow print 1400x1400. For quick move and it works as it should is very different code and 3 times higher. This is the basis from here I started. Good luck.
 
 
Old July 8th, 2014 Jul 8, 2014 4:08:47 AM -   #64 (permalink)
T-Shirt Lover
T-Shirt Fan

binjoder's Avatar
 
Member Since: Apr 2014
Posts: 68
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 5
Thanked 4 Times in 4 Posts


Default Re: Build DTG printer A3+ with Epson R1900

cant you make it easier to us and open source the codes please ????

in case of ufoprinter what type of motor do you think he use ?
 
Old July 8th, 2014 Jul 8, 2014 4:23:21 AM -   #65 (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: Build DTG printer A3+ with Epson R1900

That would be really great.
 
Old July 8th, 2014 Jul 8, 2014 5:42:59 AM -   #66 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

Miki has worked on this for more than a year and I can understand where he is coming from. It is not easy giving up hard work for nothing. Perhaps an email or pm to negotiate something with him would work out.

On the other hand you can experiment with the code.
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com

Last edited by priest; July 8th, 2014 at 05:52 AM..
 
Old July 8th, 2014 Jul 8, 2014 6:14:28 AM -   #67 (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: Build DTG printer A3+ with Epson R1900

you are right Priest, Miki sure deserves something in return for his great work.
 
Old July 8th, 2014 Jul 8, 2014 7:51:45 AM -   #68 (permalink)
T-Shirt Lover
T-Shirt Fan

binjoder's Avatar
 
Member Since: Apr 2014
Posts: 68
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 5
Thanked 4 Times in 4 Posts


Default Re: Build DTG printer A3+ with Epson R1900

I do understand he spent lots of time in arduino.cc forum. he was struggling asking here and there. the result he achieved is great.

but real as we dedicated our self in this forum and specially in DIY's DTG section. I was really thinking that we are working in team and open source.

plus replacing the printer motor with stepper motor is not major role to do the DIY DTG printer. although in some cases important to have strong motor that capable of moving heavy object on the platen, but Mikistromar are free to share or not the source code that support high speed encoder signal.

thank you Mikistromar for sharing the basic code
 
Old July 8th, 2014 Jul 8, 2014 9:26:42 AM -   #69 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

There are individuals who have taken people's generosity and take designs here and sell as their own commercially. The tdozer is one that clearly comes to mind.
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com
 
Old July 8th, 2014 Jul 8, 2014 1:47:05 PM -   #70 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

Quote:
Originally Posted by binjoder
thank you Mikistromar for sharing the basic code
You guys must understand that the code is very simple and does one basic thing. Get the arduino to sense an analog signal on two pins and go high or low on two other pins to drive a stepper controller. If both signals are high or one is high and the other is low (pulse) the arduio control the motor to go forward or backward.

Hence getting the code right is just a small part of the equation. Like I said in an ealier post in the thread the diagram that was provided is a general configuration. To use an easydriver controller the code would need more instructions.

Make this thing a project and prove to yourself that "DIY" is Do It Yourself. [DIY DTG]
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com
 
Old July 8th, 2014 Jul 8, 2014 2:25:05 PM -   #71 (permalink)
T-Shirt Lover
T-Shirt Fan

binjoder's Avatar
 
Member Since: Apr 2014
Posts: 68
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 5
Thanked 4 Times in 4 Posts


Default Re: Build DTG printer A3+ with Epson R1900

Quote:
Originally Posted by priest
You guys must understand that the code is very simple and does one basic thing. Get the arduino to sense an analog signal on two pins and go high or low on two other pins to drive a stepper controller. If both signals are high or one is high and the other is low (pulse) the arduio control the motor to go forward or backward.

Hence getting the code right is just a small part of the equation. Like I said in an ealier post in the thread the diagram that was provided is a general configuration. To use an easydriver controller the code would need more instructions.

Make this thing a project and prove to yourself that "DIY" is Do It Yourself. [DIY DTG]

Mikistromar's thread in arduino forums (I used a direct port manipulation code but no change. Still stepper motor is losing the signal.
With an oscilloscope I measured the signal from the encoder and produces signals from 1000ms to 50microS depending on how fast you turn. If you turn encoder to 1300rpm produces signal 50microS. Error occurs when the encoder sends pulse of 600 microS. Does anybody know where the problem.
 
Old July 8th, 2014 Jul 8, 2014 3:14:30 PM -   #72 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

Think of it like this. Let us say you're in a relay race. If your team is the front runner in a race and you are waiting for the baton to be given to you. After the runner gets to you he has to wait 10 minutes before giving you (long delay). What if he does not have to wait and hand it straightaway (short delay). If the delay is too long you get left behind (lost pulses, lost steps). A delay in coding causes operations to stop until the delay is completed.

The problem he tough he had in those posts were incorrect. He found out later on after doing more testing.
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com
 
Old July 8th, 2014 Jul 8, 2014 3:41:46 PM -   #73 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

I must also mention he may have changed the delay instruction to something else less intrusive that will not stop the program. Also his native language is not english he may use words incorrectly.
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com
 
Old July 8th, 2014 Jul 8, 2014 7:02:35 PM -   #74 (permalink)
T-Shirt Lover
T-Shirt Fan

binjoder's Avatar
 
Member Since: Apr 2014
Posts: 68
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Thanks: 5
Thanked 4 Times in 4 Posts


Default Re: Build DTG printer A3+ with Epson R1900

do you mean delay.h has to be modified ????

he removed the delay.h in arduino due
 
Old July 8th, 2014 Jul 8, 2014 7:09:08 PM -   #75 (permalink)
T-Shirt Lover
T-Shirt Master

priest's Avatar
 
You can call me: Rudy
Member Since: Sep 2011
Location: USVI
Posts: 471
Mentioned: 5 Post(s)
Tagged: 0 Thread(s)
Thanks: 9
Thanked 127 Times in 99 Posts


Default Re: Build DTG printer A3+ with Epson R1900

delay.h is a library call. In the more advance versions like duo it is not needed.
__________________
Live the life you love, Else love the life you live!
http://www.caribprints.com
 






This is a discussion about Build DTG printer A3+ with Epson R1900 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


Thread Tools

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
Epson R1900 DTG build Darkcityx6 Direct to Garment (DTG) Inkjet Printing 1 September 8th, 2013 12:12 AM
Epson r1900 dtg build Darkcityx6 Direct to Garment (DTG) Inkjet Printing 0 September 7th, 2013 02:38 PM
[DIY DTG] Need Help DIY DTG epson R1900 bpraj DIY DTG 1 February 15th, 2011 05:44 AM
[Anajet] r1900 dtg build 102557 Anajet 0 May 22nd, 2010 03:37 PM


All times are GMT -8. The time now is 10:41 AM.


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