Skip to content

Releases: luni64/EncSim

v2.3.0 Multiple Simulators

04 Oct 07:18
Compare
Choose a tag to compare

Encapsulated the underlying main timer to the simulator class to enable up to four simulator objects

Index pulse generation added

19 Aug 18:53
Compare
Choose a tag to compare

New features:

This release added a possibility to generate periodic index pulses. To enable this feature pass the pin for the index signal as third parameter to the constructor. The period of the index pulses can be set with setPeriod(unsigned p);

Example:

#include "EncSim.h"

EncSim encSim(0, 1, 2);             // A=0, B=1, Z=2

void setup()
{
    encSim.begin();
    encSim                          // setup parameters
        .setFrequency(100'000)      // 100 kCounts per second
        .setPeriod(4096)            // Index pulse every 4096 counts
        .setPhase(90)               // 90° phase signal
        .setTotalBounceDuration(0); // no bouncing

    encSim.moveRelAsync(INT32_MAX); // run for some time
}

void loop()
{
    Serial.println(encSim.current); // print current 'position'    
    delay(100);
}

Precompiled binaries for the SerialControl example can be found here: https://github.com/luni64/EncSim/tree/master/examples/SerialControl/precompiled_binaries

Added compatibility to T4.0 and T4.1

09 Aug 10:56
Compare
Choose a tag to compare

This release replaces TeensyDelay by the TeensyTimerTool which is compatible to all ARM Teensies.

Binaries for the SerialControl example are attached below

First release

08 Jun 11:51
Compare
Choose a tag to compare
First release Pre-release
Pre-release

Precompiled .hex files for direct upload without installing the library.

Nomenclature of the files: EncSimSerial_TTT_CCC_BBB_VVV.hex

  • TTT: Type of Teensy board
  • CCC: CPU frequency
  • BBB: Bus frequency
  • VVV: Version