Articles Posted in the " " Category

  • setSpeed(rpms)

    setSpeed(rpms)

    Description Sets the motor speed in rotations per minute (RPMs). This function doesn’t make the motor turn, just sets the speed at which it will when you call step(). Parameters rpms: the speed at which the motor should turn in rotations per minute – a positive number (long) Returns None See also - Stepper() - […]


  • Stepper(steps, pin1, pin2)  Stepper(steps, pin1, pin2, pin3, pin4)

    Stepper(steps, pin1, pin2) Stepper(steps, pin1, pin2, pin3, pin4)

    Description This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your Arduino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you’ve wired your motor – either using two or four pins of the Arduino […]


  • Stepper(steps, pin1, pin2), Stepper(steps, pin1, pin2, pin3, pin4)

    Stepper(steps, pin1, pin2), Stepper(steps, pin1, pin2, pin3, pin4)

    Description This function creates a new instance of the Stepper class that represents a particular stepper motor attached to your 86Duino board. Use it at the top of your sketch, above setup() and loop(). The number of parameters depends on how you’ve wired your motor – either using two or four pins of the 86Duino […]


  • Circuit for Bipolar Stepper Motor

    Circuit for Bipolar Stepper Motor

    Two Pins [PIC] Four Pins [PIC] Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.


  • Circuits for Unipolar Stepper Motors

    Circuits for Unipolar Stepper Motors

    Two Pins [PIC] Four Pins [PIC] Libraries Reference Home The text of the 86Duino reference is a modification of the 86Duino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.


  • setBitOrder()

    setBitOrder()

    Description Sets the order of the bits shifted out of and into the SPI bus, either LSBFIRST (least-significant bit first) or MSBFIRST (most-significant bit first). Extended method for Arduino Due If you specify one of the Arduino Due’s Slave Select (SS) pin in the call to setBitOrder(), the bit order setting is applied only to […]


  • Extended SPI library usage with the Due

    Extended SPI library usage with the Due

    On the Arduino Due, the SAM3X has advanced SPI capabilities. It is possible to use these extended methods, or the AVR-based ones. The extended API can use pins 4, 10, and 52 for CS. Use You must specify each pin you wish to use as CS for the SPI devices. It is possible for the […]


  • transfer()

    transfer()

    Description Transfers one byte over the SPI bus, both sending and receiving. Extended method for Arduino Due If you specify one of the Arduino Due’s Slave Select (SS) pin in the call to SPI.transfer(), the specified pin is activated (pulled low) before the transfer occurs and deactivated (pulled high) when the transfer is finished. You […]


  • setDataMode()

    setDataMode()

    Description Sets the SPI data mode: that is, clock polarity and phase. See the Wikipedia article on SPI for details. Extended method for Arduino Due If you specify one of the Arduino Due’s Slave Select (SS) pin in the call to setDataMode(), the data mode setting is applied only to the device connected to the […]


  • setClockDivider()

    setClockDivider()

    Description Sets the SPI clock divider relative to the system clock. On AVR based boards, the dividers available are 2, 4, 8, 16, 32, 64 or 128. The default setting is SPI_CLOCK_DIV4, which sets the SPI clock to one-quarter the frequency of the system clock (4 Mhz for the boards at 16 MHz). Arduino Due […]