Arduino Electronics Findings

ATmega/ATtiny PWM tutorial

I was planning on writing a beginner’s tutorial for using PWM on raw AVR chips, but I found that Arduino already has a nice guide here: http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM The only change you need to make to their code to use it without the Arduino software is to remove calls to “pinMode”. Do so by using the appropriate …

Continue Reading
Arduino Electronics

SPI with Arduino

After a lot of hunting around, I finally found a great resource on using Arduino as a SPI slave: http://www.gammon.com.au/forum/?id=10892 Plenty of resources exist for using Arduino as a SPI master (including Arduino’s own SPI library), but I couldn’t find much on using it as a slave. That link includes information on both. I hope someone …

Continue Reading