Jump to content

SkySurveyBanner.jpg.21855908fce40597655603b6c9af720d.jpg

Arduino focus control for DC AND stepper motors?


michaelmorris

Recommended Posts

The push buttons have now arrived so that I can operate the focuser when I'm next to the scope.  I've read through the myDCFocuser documents and I can't for the life of me work out where to wire them in. Help!

Please bear in mind that I am to electronics what Jack Nicholas was to Greco-Roman wrestling!

Edited by michaelmorris
  • Like 1
Link to comment
Share on other sites

2 minutes ago, brown_rb said:

They wire to A0 as shown in circuit diagram :-)

PushButtons_schem.jpg

Thanks Rob

I get parts of the diagram, but other bits are a bit of mystery to me.

There are 3 x 1.2Kohm resistors and a 1Mohm resistor in the circuit and one end of the circuitis  attached to the 0 (Marked RXC) terminal on the Arduino. Is this correct? 

Do the other ends of the circuit attach to the 5v and one of the GND terminals on the Power section of the Arduino?

Also, what is the triangle of three lines of diminishing size symbolise?

Sorry for the numpty questions, but I'm more or less a complete newbie at his.

Link to comment
Share on other sites

4 hours ago, michaelmorris said:

Thanks Rob

I get parts of the diagram, but other bits are a bit of mystery to me.

There are 3 x 1.2Kohm resistors and a 1Mohm resistor in the circuit and one end of the circuitis  attached to the 0 (Marked RXC) terminal on the Arduino. Is this correct? 

Do the other ends of the circuit attach to the 5v and one of the GND terminals on the Power section of the Arduino?

Also, what is the triangle of three lines of diminishing size symbolise?

Sorry for the numpty questions, but I'm more or less a complete newbie at his.

 

Link to comment
Share on other sites

I guess the sawtooth lines represent a resistor.

There are 4 resistors, 3 at 1.2K ohms and 1 at 1MegOhm

There are 2 switches (probably has 3 pins, one pin in the center - if there are only 2 pins this is fine) .

Take the first 1.2k resistor and we will call it R11. Wire one end to the resistor to 5V on the arduino.

Take the next 1.2k resistor and we will call it R12. Wire one end of the resistor to GND on the arduino.

Take the next 1.2k resistor and we will call it R13. Wire one end to the spare end of R11. We will call this join R11/R13.

Take the spare end of R13 and wire it to the spare end of R12. We will call this join R13/R12.

Solder a wire from the Join R11/R13 to the center pin of switch1 (if switch1 only has 2 pins wire the Join R11/R13 to any pin of Switch1).

Solder a wire from the Join R13/R12 to the center pin of switch2 (if switch2 only has 2 pins wire the Join R11/R13 to any pin of Switch2).

Solder the remaining free pin on Switch1 to the remaining free pin on Switch2. We will call this join S1/S2. Take one end of the next resistor 1M-Ohm which we will call R10 and wire one end to this join S1/S2.

Take the spare end of the R10 resistor and solder it to the GND on the Arduino.

Solder one end a wire to the Join S1/S2 and the other end of the same wire to A0 (Analog Pin 0) of the Arduino.

 

 

PushButtons_schem_label.jpg

PushButtons_schem_label.jpg

Edited by brown_rb
Link to comment
Share on other sites

8 hours ago, michaelmorris said:

The push buttons have now arrived so that I can operate the focuser when I'm next to the scope.  I've read through the myDCFocuser documents and I can't for the life of me work out where to wire them in. Help!

Please bear in mind that I am to electronics what Jack Nicholas was to Greco-Roman wrestling!

Everybody starts somewhere Michael. Take heart, at this point you are ahead of me.

Link to comment
Share on other sites

Michael and RB,

Here is a link to some basic symbols you are encountering as you slowly sink into the mire of electronics. :wink:

http://www.electronic-symbols.com/electronic-electrical-symbols/basic-electrical-electronic-symbols.htm

I'm on my way to an electronic focuser as we speak. Parts on order as of today. I just needed a few confirmations from a friend who is using complete remote on his set-up in frozen North Dakota, U.S.A. One thing I changed about my plans is to go with a direct drive to my fine focus adjuster on my two-speed Crayford. I was concerned about the side loading a belt drive might impart to the tiny shaft (2.7 mm). Matthew (N.D.) has his direct coupled to his fine adjust shaft and assured me the tiny Unidirectional gear motors have plenty of torque to do the adjusting. So the side loading became a non-issue.

The motors I ordered are the 28byj 48, 5 volt, with Uln2003 Driver Board for Arduino. Same format as my friend has on his focuser.

Onward! Into the fog! :wacko:

  • Like 2
Link to comment
Share on other sites

7 minutes ago, SonnyE said:

Michael and RB,

Here is a link to some basic symbols you are encountering as you slowly sink into the mire of electronics. :wink:

http://www.electronic-symbols.com/electronic-electrical-symbols/basic-electrical-electronic-symbols.htm

I'm on my way to an electronic focuser as we speak. Parts on order as of today. I just needed a few confirmations from a friend who is using complete remote on his set-up in frozen North Dakota, U.S.A. One thing I changed about my plans is to go with a direct drive to my fine focus adjuster on my two-speed Crayford. I was concerned about the side loading a belt drive might impart to the tiny shaft (2.7 mm). Matthew (N.D.) has his direct coupled to his fine adjust shaft and assured me the tiny Unidirectional gear motors have plenty of torque to do the adjusting. So the side loading became a non-issue.

The motors I ordered are the 28byj 48, 5 volt, with Uln2003 Driver Board for Arduino. Same format as my friend has on his focuser.

Onward! Into the fog! :wacko:

Thanks for the link. I wish you well with your project.

  • Like 1
Link to comment
Share on other sites

46 minutes ago, michaelmorris said:

Thanks for the link. I wish you well with your project.

And you with yours, Michael. :hello2:

My parts are scheduled for next Monday. I hate the waiting... Sigh!

Link to comment
Share on other sites

The resistors arrived yesterday.  I followed Robert's excellent and clear step by step (i.e. idiot proof) instructions and wired it all up using patch cables and a breadboard.  And for the moment of truth ...

It works!!!!!! :hello2::icon_biggrin::hello2::icon_biggrin:

 

Thanks Robert, you are a true hero! :headbang:

Next to arrive is the 12v to 9v thingy, then put it all in a box.

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, brown_rb said:

Highly recommend you replace the push buttons with these - they are as solid as a rock and work significantly better

http://www.ebay.com/itm/6Pcs-Mini-12mm-Waterproof-Momentary-ON-OFF-Push-Button-Round-Switch-/201538126654?hash=item2eec9bc33e:g:PAEAAOSwvgdW4C4V

Congrats on getting it working.

Thanks for the tip.

Link to comment
Share on other sites

Are the R10 and R11 resistors shown in the myDCfocuser guide the potentiometers for manually altering the pulse interval and length?

mydcfocuserdiagram.jpg

If yes, will cheap 10kohm potentiometers from Ebay do, or is there a specific type or make I should be looking to get or avoid?

Thanks

Edited by michaelmorris
Link to comment
Share on other sites

I'm now investigating the best way for me to physically mount all this electronics hardware.

For me, I think the best set up might be to put the Arduino and driver board in one box attached to the mount head.  This would include connections for 12v power, USB and the control/power cables going to focuser motors.  Connected to this would be a separate small box used as a hand controller.  This would include potentiometers and momentary switches, along with related resistors.  Hopefully, this hand controller could be re-used when I eventually upgrade to stepper motors and a stepper motor control board (using MyFocuserPro2).  Does this sound sensible?

If the above is a feasible idea, I would need at least five wires between the hand controller and the Arduino in the main box (5v, ground and three signal cables).  I assume this could be best achieved by using a single multicore cable between the hand controller and the main box.  I would propose using a DE9 (RS232-type) connector to attach the hand controller to the main box.  Is this the best option?  If yes, can anyone recommend the most suitable multi-core cable for this connection lead?

Thanks

Edited by michaelmorris
Link to comment
Share on other sites

I would use a 6p6c modem type cable, which has 6 cores, (flat telephone cable) with the 6pin rj11 plugs on either end, it will make it much lighter, than using serial type sockets and cables.

thats what my Feathertouch motor focuser uses.... :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.