Menu

Arduino Nano + Easydriver and just 2 PButtons no more

JoBarTeam
2016-03-11
2016-03-23
1 2 > >> (Page 1 of 2)
  • JoBarTeam

    JoBarTeam - 2016-03-11

    Hello,

    Sorry it's my first post.....and i've a poor english.

    I want to build a arduino focuser pro2 without LCD,TEMP. I just want to control focuser by PC and add 2 push buttons for manual control, no more.
    Is it possible to find the graph and the sketch to wire the arduino and Easydriver without the LCD, buzzer, reset switch.... I'm lost in all those wires and i'm not a good technician in electricity.

    I think if i use the full easydriver schem whitout wiring LCD, buzzer and other, the focuser will not work.

    Thanks a lot for help

     
  • brownrb

    brownrb - 2016-03-11

    Hi Mathieu

    Yes, you can build the easydriver full version, and leave out the lcd, buzzer etc, it would still work.
    Let me know the easydriver layout you selected and I will send you the code you will need.

    There are many versions here, I would need to know what one you suse, so if you send me the you used to download the layout board you are using that is helpful.

    Regards
    Robert

     
  • JoBarTeam

    JoBarTeam - 2016-03-12

    hi robert !

    thx for answer.
    the easydriver layout ? I´ve buy this one http://www.ebay.fr/itm/EasyDriver-Shield-stepping-Stepper-Motor-Driver-V44-A3967-For-Arduino-/400522271040
    it's a easydriver V44 A3967.

    is the info you need ?

    I've buy 2 momentary push button, x1 led red x1 led green, subD9 connector, Nema14

    thx

     

    Last edit: JoBarTeam 2016-03-12
  • JoBarTeam

    JoBarTeam - 2016-03-12

    i've connect Arduino and easydriver, transfer the code.
    When I connect the motor the shaft make a clak clak clak sound, i see it shaking but not rotating do you understand ?
    If I use the windows software, i connect to com8 and when i use the <<< >>> buttons, the shaft make the same shaking but faster and don't rotate.

    Have i missed something when connect the Nema14 (same wire color than nema17) on A1 A2 B1 B2 ?
    I've used this code Focuserv219_DRV8825_F and eepromanything file.
    
    Thx for help
    
     
  • JoBarTeam

    JoBarTeam - 2016-03-12

    sorry for multi post.....

    I've inverted green & red wire like nema17 & nema17 hybrid. Now, it ok, the motor rotate but never stop rotate. I've to set the voltage on the Easydriver is this ?

     
  • brownrb

    brownrb - 2016-03-13

    A nema 14 I do not know. Never used one. And yesa high chance the color wires will be very different. I cannot help you with the Nema14 unless you have the manufacture spec sheet on the nema14 you purchased.

    The rotating nema is more than likely due to incorrect wiring. And you must set the current limit pot on the easydriver board - details in PDF, and you must hae an external power source to the easydriver board, I cannot tell you what voltage as I dont know anything about your Nema14

    If the nema is rotating all the time you have an issue with the nema wiring

     
  • JoBarTeam

    JoBarTeam - 2016-03-13

    thank's Rob,

    It's working !!!

    Is it possible to give me datasheet of your buzzer, mine just make a very little sound (clik).
    Another question, is it possible de make the 2 leds not flash but just power when in & out or flash brighter....
    When power up the focuser, the 2 leds light at max power but when moving focuser it's difficult to see the leds.

    I've try to modify this lines
    analogWrite(gledOUT, 1023 ) but no result....

    thx

     
  • brownrb

    brownrb - 2016-03-14

    Hi Mathieu

    The buzzer - reduce resistor from 100 ohm to less, like 47 , this will make a bit louder

    LEDS - hmmm, maybe

    try these changes -
    change these

    // Move stepper anticlockwise
    void anticlockwise()
    {
    if ( !myfocuser.ReverseDirection )
    {
    analogWrite(gledOUT, 1023 ); // indicate a pulse by lighting the green LED
    digitalWrite(myDir, LOW );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    analogWrite(gledOUT, 0 ); // turn LED off
    }
    else
    {
    analogWrite(bledIN, 1023 ); // indicate a pulse by lighting the blue LED
    digitalWrite(myDir, HIGH );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    analogWrite(bledIN, 0 ); // turn LED off
    }
    }

    // Move stepper clockwise
    void clockwise()
    {
    if ( !myfocuser.ReverseDirection )
    {
    analogWrite(bledIN, 1023 ); // indicate a pulse by lighting the blue LED
    digitalWrite(myDir, HIGH );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    analogWrite(bledIN, 0 ); // turn LED off
    }
    else
    {
    analogWrite(gledOUT, 1023 ); // indicate a pulse by lighting the green LED
    digitalWrite(myDir, LOW );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    analogWrite(gledOUT, 0 ); // turn LED off
    }
    }

    new code - replace above with

    // Move stepper anticlockwise
    void anticlockwise()
    {
    if ( !myfocuser.ReverseDirection )
    {
    analogWrite(gledOUT, 1023 ); // indicate a pulse by lighting the green LED
    digitalWrite(myDir, LOW );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    }
    else
    {
    analogWrite(bledIN, 1023 ); // indicate a pulse by lighting the blue LED
    digitalWrite(myDir, HIGH );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    }
    }

    // Move stepper clockwise
    void clockwise()
    {
    if ( !myfocuser.ReverseDirection )
    {
    analogWrite(bledIN, 1023 ); // indicate a pulse by lighting the blue LED
    digitalWrite(myDir, HIGH );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    }
    else
    {
    analogWrite(gledOUT, 1023 ); // indicate a pulse by lighting the green LED
    digitalWrite(myDir, LOW );
    digitalWrite(myStep, 1 );
    delayMicroseconds(stepontime);
    digitalWrite(myStep, 0 );
    }
    }

    AND then change this -found in loop() - find these lines
    else
    {
    // focuser is NOT moving now, move is completed
    isMoving = false;
    gotonewposition = false;

    and replace these 4 lines with this code
    else
    {
    // focuser is NOT moving now, move is completed
    analogWrite(bledIN, 0 );
    analogWrite(gledOUT, 0 );
    isMoving = false;
    gotonewposition = false;

     
  • JoBarTeam

    JoBarTeam - 2016-03-16

    Hi Rob !

    I've don't test because:

    1/ I try to connect 2 push button and i burn the Arduino USB plug, after connecting Nano by 12V from Easydriver it work again....

    2/ After this issue, another comes, during testing the stepper, the DB9 unplug and i burn the Easydriver....

    Waiting for new components for testing your code

     
  • brownrb

    brownrb - 2016-03-17

    Yes, its happened to me as well a few times. Ive managed to keep those chinese manufacturers of Nano chips in business. So very easy to make a mistake and blow them up. Ive seen the easydriver catch fire on the bench.

    When making new hardware, I normally test it out without the 12V and no stepper connected. I trust the code enough to know it will drive a stepper when connected, so it lets one see if the code is working by using the windows app etc without fear of something unplugging.

    Cheers
    R

     
  • JoBarTeam

    JoBarTeam - 2016-03-17

    Hi,

    Received the new components, connect the wire and test.....

    The system is ok but i got always a issue with the stepper (clack clack clack:

    The stepper made a clack, rotation is not smooth, it shake the telescope...
    Stepper and driver are extremely hot, i've test to set the pot to 250mA (nema 11 run at current/phase 0,4A 10V) but impossible to get a value with my multimeter.
    I measure 10,2V between A1/A2 and same for B1/B2 but when i place my multimeter on 20µA 200µA 2mA 20mA 200mA it show 0.00.... My TP1 have no iron so i can't take measure at this point.

    I also try to turn the pot for stopping the motor but it never stop. I ve turn XXX time clockwise and anticlockwise and no effect.

    [EDIT] i have not change anything in the sketch and check my wires, when i connect +12V on stepper, the shaft block, i go on the win app, uncheck coil power, rotate the focuser and disapointing because coil power is ON....

     

    Last edit: JoBarTeam 2016-03-17
  • brownrb

    brownrb - 2016-03-17
    1. Can you send me the link where u got the stepper.
      I think perhaps the wiring is wrong.

    2. uncheck coil power - rotate focuser - coil power on?
      I would need some more info to track this down. I would need to know what arduino firmware you are using (actual filename), what version of the windows app you are using, as well as the logfile (you would have to start the win app, enable logging, then connect to the focuser, then do the commands that generate the problem, then close the windows app and then send me the logfile)

    Cheers
    Robert

     
  • JoBarTeam

    JoBarTeam - 2016-03-17

    Hi Rob,

    Thx !

    I've check all my wires and it looks it's "good" now.
    The motor make this clack but i think it's ok.... If i change full, half, 1/4.... I notice that the sound is the same but i see the shaft rotating at "diferent speed", i've test with other easydrive and it's the same thing.

    this is what i use:

    http://img4.hostingpics.net/pics/78212712767773102043531321885941461073210n.jpg

    +A1 A2 A3 for led and buzzer

    Focuserv151_DRV8825_M because all over don't work for me.

    windows app 1.7.2.7

    for the log file, i see it's not activited on my laptop....

    I'm going to test the skectch you send me for led stop flashing and make you a video of the "clack clack clack"

    [EDIT] I modify the sketch and now, when focusing in or out, leds don't flash but light at max power, exactly what i want, now i can see the leds ! thanks a lot.

    here is the link for my video on youtube, listen to the sound of the vibration on the table, but also when i've in my hand
    https://youtu.be/OdN95SocCzo

     

    Last edit: JoBarTeam 2016-03-17
  • brownrb

    brownrb - 2016-03-18

    Is that right?12V+ and 12V-
    That would be 24V, if its correct no wonder it got hot
    It should be 12V+ and Gnd. And then you need to tie that GND to the Arduino GND?

     
  • JoBarTeam

    JoBarTeam - 2016-03-18

    i've a power supply, 12V 6A with 2 wires, one red and one black.
    The red is +12V, i connect it on Easydriver power in M+
    The black (in my mind) is -12V i connect it on Easydriver power in GND
    I lie the Arduino GND to Easydriver second GND (at the left of STEP)

    The motor don't warm so hot and i've add heat sink + fan on Easydriver.

    I found in the win app the setting for rotary speed, slow medium fast.
    When fast is check the stepper is very smooth, i think my sound is normal for a stepper motor.

    If i buy the IR option, it's less difficult to wire than the push button ?

     
  • brownrb

    brownrb - 2016-03-18

    yes the ir is much simpler

     
  • brownrb

    brownrb - 2016-03-18

    yes the ir is much simpler

     
  • brownrb

    brownrb - 2016-03-18

    The sound issue: yes it might be a mounting issue? IHave you tried those vibration dampers at the end of the pdf? They are cheap and will get rid of most of that.

     
  • JoBarTeam

    JoBarTeam - 2016-03-18

    Ok, i buy the ir component.....and no i don't try the dampers, i'll test them

    thx a lot

     
  • brownrb

    brownrb - 2016-03-18

    The ir is line of site (wont go through doors or around corners) but good if near scope.
    The dampers work ok. One of my steppers makes a sound like that too, others do not. I can swap steppers and sound moves with that stepper motor. But the damper helps

     
  • JoBarTeam

    JoBarTeam - 2016-03-19

    Hi !

    I'm at 3 meters from my telescope, IR will be a good help.

    I received my new 5v piezzo buzzer but i ve got the same issue, it make a small CLIK and note a real BIP, with or without resistor.
    it make exactly the same sound has my previous 12V buzzer. It's beacause i ask for your buzzer datashit in an another post.
    i don't plug it in my 2nd focuser because it don't work and for my first one, when it's in the plastic box i don't heard to the clik.

    your buzzer make a real audible bip sound ?

    thx

     
  • brownrb

    brownrb - 2016-03-19

    yes, mine makes a loud sound at constant frequency,

    you can try by making a skecth like this

    void setup()
    {
    }

    void loop()
    {
    analogWrite( 3, 1023);
    delay( 3000);
    analogWrite( 3, 0 );
    delay(3000);
    }

    Note that this turns buzzer on for 3 seconds, then off for 3 seconds. Upload to your arduino
    If speaker makes a click then its not a "continous tone buzzer" but a different kind.

    Specifications:
    Voltage: 5V
    Current: less than 32mA
    Frequency: 2300Hz(around)
    Diameter: 12mm
    Thickness 9.6mm
    Color: Black
    Weight: 35g

    about 150ohms to limit current to 20ma would require 100 ohm series limiting resistor

    Enable by sending +5V and it generates note

    use this search on ebay
    buzzer continous sound 5v

    http://www.ebay.com/itm/5V-Continuous-Sound-Piezo-Buzzers-Fit-for-Computers-Printers-20-PCS-/251960873157?hash=item3aaa09d0c5:g:BNUAAOSwv0tVP0el

    cheers
    robert

     
  • JoBarTeam

    JoBarTeam - 2016-03-19

    Thanks for details, very strange I've got the same buzzer, continous sound, 85db 5v 2731hz 9mm;
    possible to give me your lines of code where the buzzer is used, i want to compare with my sketch. I ve test 3 buzzer and always the same issue...

    thx

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.