Tiny Stepper Controller: Difference between revisions

From lechacal
Jump to navigation Jump to search
(Created page with "'''COMING SOON'''")
 
No edit summary
 
(31 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''COMING SOON'''
=Arduino Stepper Control Board=
 
This is for board version 1.2 and below. For version 2 please refer to [[stepper_control_v2 | this link here]]
 
The tiny stepper controller is a controller board for stepper motor. It can be controlled manually (potentiometer and switches) and programmed with Arduiono IDE.
 
[[File:Detailed_tiny_stepper_control_small.png]]
 
= Technical Specifications=
 
Stepper Motor driver board: A4988<br />
Microcontroller: Attiny85.<br />
Input Power: 30Volts Maximum.<br />
Power Socket: 2.1mm Jack. Center positive.<br />
Motor connector: 4 way molex.
 
 
<br /> Manual Control ready with:<br />
 
* Potentiometer for speed.
* Push button for single step increment.
* Slider switch for direction selection.
 
<br />
 
=Hardware Controls=
 
Direction and Step can both be controlled manually or from Attiny85 mcu using jumpers on the board.<br />
 
Step resolution can be configured using DIL switches.<br />
Two digital I/O available for external use (I2C / Serial /external sensors/ external switch).<br />
Comes flashed with the basic default sketch to run the motor at various speeds.<br />
 
A short demonstration can be seen on [http://lechacal.com/stepper_control/v1.0/stepper.webm this video]
 
=Default Sketch=
 
The default sketch loaded in the Attiny85 is a basic sketch to control the motor manually. The potentiometer will be use as speed control.<br />
Direction will change every turn. However this can be overwritten by changing the jumper on the board.
 
[http://lechacal.com/stepper_control/v1.0/steppercontrol_v1.0.ino Download Sketch.]
 
=i2c Control=
 
The two i2c pins of the Attiny85 are available on the board to be controlled from an i2c master.
 
This is a sketch for the Attiny85 for speed and direction control. Commands are as follow<br />
"a" for direction 1 - e.g. Master will issue Wire.write("a")<br />
"b" for direction 2 - e.g. Master will issue Wire.write("b")<br />
"delay:" for speed control - e.g. Master will issue Wire.write("1500:")<br />
":" for stopping the motor<br />
 
Delay must be a number followed by a ":" which is the stop character.
 
[http://lechacal.com/stepper_control/steppercontrol_i2c.ino Download Slave i2c Sketch.]<br>
[http://lechacal.com/stepper_control/stepper_i2c_master_example.ino Download Master i2c Sketch.]
 
[[File:IMG_0407_small.jpg]]
 
=Related Articles=
 
[[How_to_program_an_Attiny85_or_Attiny84 | How_to_program_an_Attiny85_or_Attiny84]]

Latest revision as of 14:46, 19 December 2014

Arduino Stepper Control Board

This is for board version 1.2 and below. For version 2 please refer to this link here

The tiny stepper controller is a controller board for stepper motor. It can be controlled manually (potentiometer and switches) and programmed with Arduiono IDE.

Technical Specifications

Stepper Motor driver board: A4988
Microcontroller: Attiny85.
Input Power: 30Volts Maximum.
Power Socket: 2.1mm Jack. Center positive.
Motor connector: 4 way molex.



Manual Control ready with:

  • Potentiometer for speed.
  • Push button for single step increment.
  • Slider switch for direction selection.


Hardware Controls

Direction and Step can both be controlled manually or from Attiny85 mcu using jumpers on the board.

Step resolution can be configured using DIL switches.
Two digital I/O available for external use (I2C / Serial /external sensors/ external switch).
Comes flashed with the basic default sketch to run the motor at various speeds.

A short demonstration can be seen on this video

Default Sketch

The default sketch loaded in the Attiny85 is a basic sketch to control the motor manually. The potentiometer will be use as speed control.
Direction will change every turn. However this can be overwritten by changing the jumper on the board.

Download Sketch.

i2c Control

The two i2c pins of the Attiny85 are available on the board to be controlled from an i2c master.

This is a sketch for the Attiny85 for speed and direction control. Commands are as follow
"a" for direction 1 - e.g. Master will issue Wire.write("a")
"b" for direction 2 - e.g. Master will issue Wire.write("b")
"delay:" for speed control - e.g. Master will issue Wire.write("1500:")
":" for stopping the motor

Delay must be a number followed by a ":" which is the stop character.

Download Slave i2c Sketch.
Download Master i2c Sketch.

Related Articles

How_to_program_an_Attiny85_or_Attiny84