Using Random Numbers with Arduino

This video tutorial talks about using the random() and randomSeed() functions with Arduino.  It is pretty straight forward but there are some intricacies worth noting.

Creating truly random numbers is harder than you might think.  The closest we can get in Arduino and just about anywhere else is using pseudo random numbers.  That is, numbers that mimic randomness, but in fact do have a pattern if analyzed for a long enough period.

Continue reading

3 Ways to Use Acceleration in an Arduino Sketch

This tutorial covers three easy ways to implement some form of acceleration in your Arduino sketches.  It will cover the following:

  1. Linear Acceleration
  2. Exponential Acceleration
  3. Messing Around with the Square Root function

What is Acceleration?

Acceleration is the rate of change of something over time.  Acceleration would help describe things like:

Continue reading