[ Log In ]
NEMA 23 Stepping Motor 100 oz

NEMA 23 Stepping Motor

$24.95
Qty:
Nema 11 stepper motor

NEMA 11 Stepping Motor (16.7 oz-in)

$17.95
Qty:
NEMA 14 stepper motor

NEMA 14 Stepping Motor (17 oz-in)

$15.95
Qty:
Hex Inverter

Hex Inverter 6 Input and Outputs 2-5.5v Operation

$0.95
Qty:
small aluminum heat sink and a packet of thermal compound
Image of the Atmega324p

Atmega324P

$8.50
Qty:
Thumbnail: Crystal Oscillator 18.432 MHz for UART

18.432 MHz Crystal Oscillator 18pf 30ppm

$0.94
Qty:
Thumbnail: 22 pF Capacitor

22 pF Multilayer Ceramic Capacitor

$0.43
Qty:
Thumbnail: Quartz crystal oscillator - 16 MHz

16 MHz Crystal Oscillator 20 pF Through Hole

$0.75
Qty:
Microcontroller Kit with DVD

Microcontroller Beginner Kit with Beginning Microcontrollers DVD

$49.95
Qty:

Stepper with ATmega32A

Thanks for the push button code and ADC examples Patrick. Your website motivated me to transition from Arduino and Intel Edison (in mraa) to the real deal.

Best wishes,
Jordan
//This is the basic running function
void go(struct stepPins* myStepper)
{
    if (TIFR & (1 << OCF1A))
    {

        if (myStepper->step%4== 1)
        {
            motorPORT = myStepper-> F1;
            
        }
        else if (myStepper-> step%4 == 2)
        {
            motorPORT = myStepper-> F2;

        }
        else if (myStepper->step%4 == 3)
        {
            motorPORT = myStepper-> F3;

            
        }
        else if (myStepper->step%4 == 0)
        {
            motorPORT = myStepper-> F4;
            myStepper->fourthStep = '1';

            myStepper-> step=0;

        }
        myStepper->step= myStepper->step+1;
        TIFR = (1 << OCF1A); // Clear the CTC Flag by writing a logic 1 to it
        myStepper->stepCount = (myStepper->stepCount)+1;
    }
}

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):