diff --git a/README.md b/README.md index 015fa18..1fdd77a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # AVR ATiny13 Project 002 This is the firmware for a latching dual relay system. It allows the user to -switch two DPDT relays by with two seperate switches. +switch two DPDT relays by with two separate switches. -## Componets: +## Components: **Micro:** AVR ATiny13, ATiny25/45/85 @@ -28,7 +28,7 @@ switch two DPDT relays by with two seperate switches. 1. Press and hold the target button. 2. While holding the button power cycle the device. -3. When the setting is sucessfully saved the relay/led will blink/toggle. +3. When the setting is successfully saved the relay/led will blink/toggle. 4. repeat until desired preset is saved. @@ -47,15 +47,17 @@ with no changes. ## Timings The current setup is calculated for a attiny13/a running at 4.8Mhz without the -clock divder fuse set. +clock divider fuse set. This means that the actual f_cpu is 4.8Mhz to calculate the delay times we can use this formula: $$ -msPerOverflow = 1000ms / (\frac{4.8Mhz}{64} / 256) \aprox 6.8ms +msPerOverflow = 1000ms / (\frac{4.8Mhz}{64} / 256) \approx 6.8ms $$ +Where $64$ is the pre scaler setting and $256$ is the maximum value of the 8bit +timer. ## BUILDING PROJECT: @@ -73,8 +75,8 @@ make flash 1. Install the usbtiny driver: 1. plug in usbtiny device - 2. Intall the drivers from: [adafruit](https://learn.adafruit.com/usbtinyisp/drivers) -2. open powershell + 2. Install the drivers from: [adafruit](https://learn.adafruit.com/usbtinyisp/drivers) +2. open Powershell 3. navigate to the repo directory *cd Downloads\gf_002* 4. enter the command below. @@ -89,7 +91,7 @@ make flash 1. plug in usbasp device 2. run the 'zadig-2.8.exe' program 3. select the libusb 32 on the right by clicking the down arrow to select. -2. open powershell +2. open Powershell 3. navigate to the repo directory *cd Downloads\gf_002* 4. enter the command below.