Thursday, November 24, 2016

Arduino Stepper with ULN2003 driver

// stepper1 -- repeat 1 CW and CCW revolution
5v 28YBJ-48 Stepper Motor with Gear Reduction
ULN2003 driver board


// internal motor steps per revolution in 4-step mode

// steps per OUTPUT SHAFT of gear reduction

//The pin connections need to be 4 pins connected
// to Motor Driver In1, In2, In3, In4  and then the pins entered
// here in the sequence 1-3-2-4 for proper sequencing
Stepper s(STEPS_PER_MOTOR_REVOLUTION, 8, 10, 9, 11);

void setup()
  s.setSpeed(500);  // 700 good max?

void loop()
  s.step(2 * STEPS_PER_OUTPUT_REVOLUTION);  // CW 1 turn

Friday, November 4, 2016

Perfect SSL Score with Go

Peter Lambert makes it look easy!

Arduino Encryption

I've been looking at encryption libraries that would run on an Arduino.  This looks like something worth looking into.
This library contains a cryptographic pseudo-random number generator, cryptographic hash and message authentication code (MAC) functions, can perform symmetric-key authenticated data encryption, and general-purpose functions for timing-safe comparison and wiping data from memory.