epson stepper em 546

Upload: gui9871

Post on 03-Jun-2018

677 views

Category:

Documents


26 download

TRANSCRIPT

  • 8/12/2019 Epson Stepper Em 546

    1/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    0 Tweet 0

    Search

    topics

    android app

    arduino

    code

    do it yourself

    Extra

    gadgets

    hacking gadgets

    3Like Share

    Arduino Tutorial Series Running

    Epson Stepper Motor EM-546

    Posted on December 27, 2012by admin

    ...

    A simple tool to run an EM-546 Stepper motor grabbed from a

    junk Epson Stylus T10

    Home Arduino Tutorials About Me

    http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://www.luntianlaboratory.com/http://www.luntianlaboratory.com/http://www.luntianlaboratory.com/http://www.luntianlaboratory.com/http://pdfcrowd.com/customize/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttps://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2F&text=Arduino%20Tutorial%20Series%20%E2%80%93%20Running%20Epson%20Stepper%20Motor%20EM-546%20%7C%20Luntian%20Laboratory&tw_p=tweetbutton&url=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2Fhttp://www.luntianlaboratory.com/http://www.luntianlaboratory.com/arduino-tutorials/http://www.luntianlaboratory.com/about/http://www.luntianlaboratory.com/http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttps://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2F&text=Arduino%20Tutorial%20Series%20%E2%80%93%20Running%20Epson%20Stepper%20Motor%20EM-546%20%7C%20Luntian%20Laboratory&tw_p=tweetbutton&url=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2Fhttp://twitter.com/search?q=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2Fhttp://www.luntianlaboratory.com/category/android-app/http://www.luntianlaboratory.com/category/arduino/http://www.luntianlaboratory.com/category/code/http://www.luntianlaboratory.com/category/diy/http://www.luntianlaboratory.com/category/extra/http://www.luntianlaboratory.com/category/gadgets/http://www.luntianlaboratory.com/category/hacking/http://www.luntianlaboratory.com/category/byte/http://www.luntianlaboratory.com/hacking/epson-stepper-em-546/http://www.luntianlaboratory.com/author/admin/http://www.luntianlaboratory.com/http://www.luntianlaboratory.com/http://www.luntianlaboratory.com/arduino-tutorials/http://www.luntianlaboratory.com/about/
  • 8/12/2019 Epson Stepper Em 546

    2/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    ust oo ng

    my projects

    Software

    recent art ic les

    Western Digital My Passport

    1TB

    Intel RST for Cooler Platform

    Controller Hub (PCH)

    I Installed a Lincensed ESET

    NOD32 Antivirus!

    The Tale of Impulsive Upgrader |

    From Windows.3x to Windows 8

    / 8.1

    Bluetooth File Transfer Protocol

    Version 2

    Blocking The Globe Tattoo

    Ghost Web Icon

    A Laptop Cooling Pad Test

    recent comments

    admin on The Huawei Mobile

    /*********************************

    Using

    -Arduino Uno

    -e-Gizmo Motor Driver Shield with

    LB11847 3XN3 IC-Epson Stepper motor EM-546

    - connect the blue pin to A neg

    - cross connect the center pins

    - connect the last pin to B normal

    *********************************/

    http://www.luntianlaboratory.com/category/software/http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.luntianlaboratory.com/category/byte/http://www.luntianlaboratory.com/category/projects/http://www.luntianlaboratory.com/category/software/http://www.luntianlaboratory.com/gadgets/western-digital-my-passport/http://www.luntianlaboratory.com/gadgets/intel-rst-cool-pch/http://www.luntianlaboratory.com/software/licensed-eset-nod32/http://www.luntianlaboratory.com/extra/from-windows-95-to-windows-8/http://www.luntianlaboratory.com/android-app/bftp-2-tutorial/http://www.luntianlaboratory.com/extra/globe-tattoo-ghost-icon/http://www.luntianlaboratory.com/gadgets/laptop-cooling-pad/http://www.luntianlaboratory.com/gadgets/huawei-e5220-pocket-wifi/#comment-2836http://www.luntianlaboratory.com/hacking/epson-stepper-em-546/attachment/connecting-epson-stepper-to-e-gizmo-motor-shield/http://www.luntianlaboratory.com/gadgets/huawei-e5220-pocket-wifi/#comment-2836
  • 8/12/2019 Epson Stepper Em 546

    3/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Pocket Wifi E5220

    Mielon The Huawei M obile

    Pocket Wifi E5220

    Mielon The Huawei M obile

    Pocket Wifi E5220

    anne on The Huawei Mobile

    Pocket Wifi E5220

    tan on Fixing the Slow Arduino

    IDE | More Than 20 Seconds

    Delay

    tags

    androidarduinobatterycameracomputerddwrt

    electricityepsonfanfreedom

    planglobehard diskhard

    drivehuaweiinternet

    laptoplcdldrledledslinux

    mmorpgmotormp3phone

    potentiometerpower supplypsu

    push buttonqosroutersamsung

    const byte Aneg = 8; //OUTPUT A BAR

    const byte Anorm = 9; //OUTPUT A NORMAL

    const byte Bneg = 10; //OUTPUT B BAR

    const byte Bnorm = 11; //OUTPU B NORMAL

    // VM to external positive input

    // Ground to external ground

    int motorspeed = 100;

    void setup(){//void setup start brace

    //initiate serial communication

    Serial.begin(9600);

    //declaring all the pins

    //as OUTPUT

    pinMode(Aneg,OUTPUT);

    pinMode(Anorm,OUTPUT);

    pinMode(Bneg,OUTPUT);

    pinMode(Bnorm,OUTPUT);

    }//void setup end brace

    /*********************************ROTATE THE MOTOR CLOCKWISE

    *********************************/

    void clockwise(){// void clockwise start

    //step 1

    digitalWrite(Aneg,HIGH);

    digitalWrite(Anorm,LOW);

    digitalWrite(Bneg,HIGH);

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.luntianlaboratory.com/gadgets/huawei-e5220-pocket-wifi/#comment-2836http://bestwifisecurity./http://www.luntianlaboratory.com/gadgets/huawei-e5220-pocket-wifi/#comment-2835http://bestwifisecurity./http://www.luntianlaboratory.com/gadgets/huawei-e5220-pocket-wifi/#comment-2834http://www.luntianlaboratory.com/gadgets/huawei-e5220-pocket-wifi/#comment-2833http://www.luntianlaboratory.com/arduino/slow-arduino-ide-fix/#comment-2832http://www.luntianlaboratory.com/tag/android/http://www.luntianlaboratory.com/tag/arduino/http://www.luntianlaboratory.com/tag/battery/http://www.luntianlaboratory.com/tag/camera/http://www.luntianlaboratory.com/tag/computer/http://www.luntianlaboratory.com/tag/ddwrt/http://www.luntianlaboratory.com/tag/electricity/http://www.luntianlaboratory.com/tag/epson/http://www.luntianlaboratory.com/tag/fan/http://www.luntianlaboratory.com/tag/freedom-plan/http://www.luntianlaboratory.com/tag/globe/http://www.luntianlaboratory.com/tag/hard-disk/http://www.luntianlaboratory.com/tag/hard-drive/http://www.luntianlaboratory.com/tag/huawei/http://www.luntianlaboratory.com/tag/internet/http://www.luntianlaboratory.com/tag/laptop/http://www.luntianlaboratory.com/tag/lcd/http://www.luntianlaboratory.com/tag/ldr/http://www.luntianlaboratory.com/tag/led/http://www.luntianlaboratory.com/tag/leds/http://www.luntianlaboratory.com/tag/linux/http://www.luntianlaboratory.com/tag/mmorpg/http://www.luntianlaboratory.com/tag/motor/http://www.luntianlaboratory.com/tag/mp3/http://www.luntianlaboratory.com/tag/phone/http://www.luntianlaboratory.com/tag/potentiometer/http://www.luntianlaboratory.com/tag/power-supply/http://www.luntianlaboratory.com/tag/psu/http://www.luntianlaboratory.com/tag/push-button/http://www.luntianlaboratory.com/tag/qos/http://www.luntianlaboratory.com/tag/router/http://www.luntianlaboratory.com/tag/samsung/
  • 8/12/2019 Epson Stepper Em 546

    4/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    sd cardseven segmentssmartsony

    stepper motorsun cellular

    tattootoshibausbwifi

    windowswirewordpress

    digitalWrite(Bnorm,LOW);

    delay(motorspeed);

    //step 2

    digitalWrite(Aneg,HIGH);

    digitalWrite(Anorm,HIGH);

    digitalWrite(Bneg,LOW);

    digitalWrite(Bnorm,HIGH);

    delay(motorspeed);

    //step 3

    digitalWrite(Aneg,LOW);

    digitalWrite(Anorm,LOW);

    digitalWrite(Bneg,HIGH);

    digitalWrite(Bnorm,HIGH);

    delay(motorspeed);

    //step 4

    digitalWrite(Aneg,LOW);

    digitalWrite(Anorm,HIGH);

    digitalWrite(Bneg,LOW);

    digitalWrite(Bnorm,LOW);

    delay(motorspeed);

    }//void clockwise end

    /*********************************ROTATE THE MOTOR COUNTERCLOCKWISE

    *********************************/

    void counterclock(){//void counterclock start

    //step 1

    digitalWrite(Aneg,LOW);

    digitalWrite(Anorm,HIGH);

    digitalWrite(Bneg,LOW);

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.luntianlaboratory.com/tag/sd-card/http://www.luntianlaboratory.com/tag/seven-segments/http://www.luntianlaboratory.com/tag/smart/http://www.luntianlaboratory.com/tag/sony/http://www.luntianlaboratory.com/tag/stepper-motor/http://www.luntianlaboratory.com/tag/sun-cellular/http://www.luntianlaboratory.com/tag/tattoo/http://www.luntianlaboratory.com/tag/toshiba/http://www.luntianlaboratory.com/tag/usb/http://www.luntianlaboratory.com/tag/wifi/http://www.luntianlaboratory.com/tag/windows/http://www.luntianlaboratory.com/tag/wire/http://www.luntianlaboratory.com/tag/wordpress/
  • 8/12/2019 Epson Stepper Em 546

    5/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    digitalWrite(Bnorm,HIGH);

    delay(motorspeed);

    //step 2

    digitalWrite(Aneg,HIGH);

    digitalWrite(Anorm,LOW);

    digitalWrite(Bneg,HIGH);

    digitalWrite(Bnorm,HIGH);

    delay(motorspeed);

    //step 3

    digitalWrite(Aneg,HIGH);

    digitalWrite(Anorm,HIGH);

    digitalWrite(Bneg,LOW);

    digitalWrite(Bnorm,LOW);

    delay(motorspeed);

    //step 4

    digitalWrite(Aneg,LOW);

    digitalWrite(Anorm,LOW);

    digitalWrite(Bneg,HIGH);

    digitalWrite(Bnorm,LOW);

    delay(motorspeed);

    }//void counterclock end

    /***********************STOP THE RUNNING MOTOR

    ***********************/

    void motorstop(){// void motorstop start

    digitalWrite(Aneg,LOW);

    digitalWrite(Anorm,LOW);

    digitalWrite(Bneg,LOW);

    digitalWrite(Bnorm,LOW);

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Epson Stepper Em 546

    6/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    }//void motorstop end

    /************************

    ENTERING THE VOID LOOP

    ************************/

    void loop(){//void loop start brace

    if (Serial.available() > 0){//if serial start br

    int motoraction = Serial.read();

    switch (motoraction){//switch start brace

    //move clockwise

    case 'a':

    clockwise();

    motorstop();

    break;

    //move counterclockwise

    case 'b':

    counterclock();

    motorstop();

    break;

    //stop

    case 'c': motorstop();

    break;

    //if none of the condition is

    //met, stop the motor

    default:

    motorstop();

    }// switch end brace

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Epson Stepper Em 546

    7/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    2 T HOUGHTS ON ARDUINO T UTORIAL SERIES RUNNING EPSON STEPPER

    MOTOR EM-546

    }//if serial end brace

    //note that switchcase statement

    //is inside if Serial.read Statement

    }//void loop end brace

    RELATED POSTS

    1. Arduino Tutorial Series Seven Segments Part 1

    2. Arduino Tutorial Series The Millis-Based Delay

    3. Simple Christmas Light Effects With Arduino

    4. Arduino Tutorial Series The Blink Timer

    ...

    0 Tweet 0

    This entry was posted in hacking gadgetsand tagged arduino, em-546,

    epson, stepper motorby admin. Bookmark the permalink.

    3Like Share

    Bob on August 27, 2013 at 3:56 amsaid:

    Good day!

    http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttps://twitter.com/intent/tweet?original_referer=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2F&text=Arduino%20Tutorial%20Series%20%E2%80%93%20Running%20Epson%20Stepper%20Motor%20EM-546%20%7C%20Luntian%20Laboratory&tw_p=tweetbutton&url=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2Fhttp://twitter.com/search?q=http%3A%2F%2Fwww.luntianlaboratory.com%2Fhacking%2Fepson-stepper-em-546%2Fhttp://www.luntianlaboratory.com/arduino/arduino-seven-segments-part-1/http://www.luntianlaboratory.com/arduino/millis-delay-base/http://www.luntianlaboratory.com/code/dancing-led-array/http://www.luntianlaboratory.com/arduino/blink-timer/http://www.luntianlaboratory.com/category/hacking/http://www.luntianlaboratory.com/tag/arduino/http://www.luntianlaboratory.com/tag/em-546/http://www.luntianlaboratory.com/tag/epson/http://www.luntianlaboratory.com/tag/stepper-motor/http://www.luntianlaboratory.com/author/admin/http://www.luntianlaboratory.com/hacking/epson-stepper-em-546/
  • 8/12/2019 Epson Stepper Em 546

    8/12

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    You did a very impressive work here and thank you for

    sharing it generously.

    I just disassembled my epson printer took this specific

    em546 motor and googled for info, and got interested in

    your blog. I need the exact thing you did but im new to

    arduino (read alot about it in the past but never owned ityet). It surprised me that your from manila! kabayan! i

    wish to contact you and inquire some questions if it wont

    be of burden to you..

    is it possible that this motor (together with the gear with

    metal bushing beside it in the printer) could hold or rotate

    if i attach a camera on it? to be used in panning.is it possible to add speed control to your code/circuit?

    thanks and God bless your generosity.

    Reply

    Saroch kamjikong on September 24, 2013 at 9:43 amsaid:

    Hello now i have EM 546 but i dont know spec it. U can

    tell me?

    I will input 24V ?

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.luntianlaboratory.com/hacking/epson-stepper-em-546/?replytocom=1678#respond
  • 8/12/2019 Epson Stepper Em 546

    9/12

    df d mi b PRO i Are you a developer? Try out the HTML to PDF API

    My code

    #include

    const int STEPS = 200;

    Stepper stepper_F(STEPS, 11, 10, 9, 8);

    void setup(){

    Serial.begin(9600);

    }

    void loop(){

    int i=0;

    if (Serial.available() > 0){

    int motoraction = Serial.read();

    switch (motoraction){

    case a:

    Serial.println(clockwise);

    stepper_F.setSpeed(140);

    for(i=0;i

  • 8/12/2019 Epson Stepper Em 546

    10/12

    df di b PRO i Are you a developer? Try out the HTML to PDF API

    delay(500);

    break;

    //move counterclockwise

    case 'b':

    stepper_F.setSpeed(5);

    stepper_F.step(-STEPS);delay(500);

    break;

    }

    }

    }

    - it slow and have a noise sound.

    Reply

    Leave a Reply

    Your email address will not be published. Required fields are

    marked *

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.luntianlaboratory.com/hacking/epson-stepper-em-546/?replytocom=1826#respond
  • 8/12/2019 Epson Stepper Em 546

    11/12

    df di b PRO i A d l ? T t th HTML t PDF API

    Post Comment

    Name *

    Email *

    Website

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.luntianlaboratory.com%2fhacking%2fepson-stepper-em-546%2f&id=ma-140328180506-6b483baahttp://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Epson Stepper Em 546

    12/12