The best any microcontroller can create is a pseudo random number based upon a seed value. For a true random value, an external influence is required. In our case, we'll use an open ADC channel to create a random bit, with which, we'll create a random byte or random word.
...
Accelerometers are fascinating devices, combining tiny moving mechanical parts with electronics to produce truly amazing results. They are part of the semiconductor family named MEMS (Microelectromechanical systems). The freescale MMA7260Q is a 3-axis accelerometer, meaning it can detect a gravity force in X, Y and Z axes.
...
RAM and I/O lines are two of the items that are usually in short supply on a microcontroller, therefore with this handy little SRAM device we can address both these issues, as it will give us an extra 32 kbytes of RAM, and only use four of our precious I/O lines, three of which can also be used for other purposes when not accessing the device. The chip in question is the Microchiptm 23K256 SPI SRAM.
...
PID using integer math.
Thread Starter: keytapperHello Forum, I'm struggling to implement a PID controller for my oven. The sampling rate is dictated by the time to read a MAX6675, which is 0.25...
keytapper Yesterday, 07:53