Help needed to get started.

I decided to build a Star Tracker' for my camera to allow me to take a series of long exposure shots of the heavens. (When you are retired you need to do things to keep you mind active). I bought a 12v 2-phase 4-pin Nema 17 stepper motor to open/close a gate hinge, and a generic board to control it. But the default speed range wasn't really suitable for what I want to do so I decided to reprogram it.

The only IDE I could find was the Arduino IDE so I downloaded it and after a battle with Win 10 got it working and was able to compile a program and recoginse the USB/serial COM3 port. But not surprisingly it didn't recognise my board:

Unknown board
VID: 067B
PID: 2303

This is the board, it uses the L293D chip:

Does anyone know where I can get a board definition that will allow me to download to my board?

Secondly does anyone know what pin numbers I should use in my stepper declaration? My motor has six pins but only pins 1, 3, 4 and 6 are used. Pins 1 and 4 are coil A, 6 and 3 are coil B.

Which processor is on that board ?

Hi,
Welcome to the forum and thanks for reading the intro on how to post a message.

Where did you get the "generic board" from?
What are the specs for the stepper motor?

Thanks... Tom... :slight_smile:

TomGeorge:
Hi,
Welcome to the forum and thanks for reading the intro on how to post a message.

Where did you get the "generic board" from?
What are the specs for the stepper motor?

Thanks... Tom... :slight_smile:

Hi Tom, many thanks for the welcome and prompt reply. All of the bits came from AliExpress and china - my usual source for el-cheapo bits to experiment with. The specs you get from those suppliers are rather vague and although they always work as advertised there is little help if you want to do anything out of the ordinary.
The stepper specs were:

The controller specs:

To be honest it may be easier to buy an Arduino Uno and a Pololu A4988 stepper driver and build your own controller.

...R
Stepper Motor Basics
Simple Stepper Code

Robin2:
To be honest it may be easier to buy an Arduino Uno and a Pololu A4988 stepper driver and build your own controller.

...R
Stepper Motor Basics
Simple Stepper Code

Very true, but where is the challenge? -:slight_smile:

The board has a remote control port. Do you know what it's inputs are ?

UKHeliBob:
The board has a remote control port. Do you know what it's inputs are ?

Inputs (left to right in photo) are: VT D3 D2 D1 D0 5V GND

DickyOZ:
Very true, but where is the challenge? -:slight_smile:

Indeed.

I wonder where I got the silly notion that you wanted to track stars :slight_smile: :slight_smile:

...R

DickyOZ:
Inputs (left to right in photo) are: VT D3 D2 D1 D0 5V GND

Is there a definition of these anywhere ?

UKHeliBob:
Is there a definition of these anywhere ?

Alas no, an associated ad for the controller board shows a WiFi board that plugs into the socket together with a thing like a key fob with buttons that match the controller buttons. If I ever get the correct libraries to allow me to download my program to the controller board I plan to look for a WiFi board I can plug into the controller board and access through my Android phone to control the stepper via an Android program. I can control my camera via WiFi from my phone so I don't have to disturb it by touching controls on the camera. What started as a simple project is slowly drifting to the 'over engineered department'.

It seems I have been barking up the wrong tree!

The L293DD chip is the stepper driver, not the controller as I thought. A closer look at my board's circuit diagram shows the controller chip is an STC12C2052AD. STC do provide provide programming and up/download tools. Although they have a 'C' compiler their preferred language is assembler. It must be nearly forty years since I programmed in assembler. I'm not sure I want to go down memory lane again.

Can anyone recommend which Arduino boards I should use to control a 12v Nema 17 stepper motor with reasonably fine control of speed around 60rpm?

DickyOZ:
Can anyone recommend which Arduino boards I should use to control a 12v Nema 17 stepper motor with reasonably fine control of speed around 60rpm?

Reply #4 ?

...R

Robin2:
Reply #4 ?

...R

Thank you Robin2, sorry I missed that reply - a bit too blinkered looking at the board I've got. This board would do?

https://www.ebay.com.au/itm/Nice-ATmega328P-CH340G-UNO-R3-Board-USB-Cable-for-Arduino-DIY-LQ/252849822350?epid=931054848&hash=item3adf061a8e:m:msvfXvF33DF1Z_NquXhQGAg

Regards,
Dicky.

DickyOZ:
This board would do?

Yes.

Thank you Robin2, sorry I missed that reply - a bit too blinkered looking at the board I've got.

Looks like you also missed your own Reply #5 to my Reply #4 :slight_smile: :slight_smile:

...R