updated with latex syntax for the formula

This commit is contained in:
jakeg00dwin 2024-01-03 17:43:15 -08:00
parent ad9b595013
commit ebcaa7cc67
1 changed files with 10 additions and 8 deletions

View File

@ -1,10 +1,10 @@
# AVR ATiny13 Project 002 # AVR ATiny13 Project 002
This is the firmware for a latching dual relay system. It allows the user to 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 **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. 1. Press and hold the target button.
2. While holding the button power cycle the device. 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. 4. repeat until desired preset is saved.
@ -47,15 +47,17 @@ with no changes.
## Timings ## Timings
The current setup is calculated for a attiny13/a running at 4.8Mhz without the 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 This means that the actual f_cpu is 4.8Mhz to calculate the delay times
we can use this formula: 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: ## BUILDING PROJECT:
@ -73,8 +75,8 @@ make flash
1. Install the usbtiny driver: 1. Install the usbtiny driver:
1. plug in usbtiny device 1. plug in usbtiny device
2. Intall the drivers from: [adafruit](https://learn.adafruit.com/usbtinyisp/drivers) 2. Install the drivers from: [adafruit](https://learn.adafruit.com/usbtinyisp/drivers)
2. open powershell 2. open Powershell
3. navigate to the repo directory *cd Downloads\gf_002* 3. navigate to the repo directory *cd Downloads\gf_002*
4. enter the command below. 4. enter the command below.
@ -89,7 +91,7 @@ make flash
1. plug in usbasp device 1. plug in usbasp device
2. run the 'zadig-2.8.exe' program 2. run the 'zadig-2.8.exe' program
3. select the libusb 32 on the right by clicking the down arrow to select. 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* 3. navigate to the repo directory *cd Downloads\gf_002*
4. enter the command below. 4. enter the command below.