commit 3e4fb489ffa4bf9820dce9f7c571326b3488ff98
parent 18add260ad49271e3f70086ae85b6eaed5005101
Author: William Lindholm <85635561+LindholmLabs@users.noreply.github.com>
Date: Mon, 14 Oct 2024 22:32:16 +0100
Create README.md
Added an initial draft of readme
Diffstat:
1 file changed, 27 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -0,0 +1,27 @@
+# Projects in Embedded Software
+## Hardware
+For these projects, an Arduino Every with an ATmega4809 microcontroller was used. The microcontroller was mounted on a custom adapter board to allow compatibility with Arduino UNO R3 Shields. A custom board was attached to the adapter, which included 10 LEDs, 1 potentiometer, 2 buttons, and 1 variable frequency generator.
+
+## Project 1
+**Cylon animation with voltage reading**
+
+The board is programmed to do the following
+- Show a cylon animation (See [appendix 1](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega4808-4809-Data-Sheet-DS40002173A.pdf)).
+- When a button on the board is held, show voltage reading from potentiometer.
+- Every 16 seconds, show a split view, voltage on the right, and cylon on the left.
+- If voltage reading <= 3V, set cylon animation speed to 0.125S.
+- If voltage reading > 3V, set cylon animation speed to 0.5S.
+
+All time based functionality was implemented using interrupts.
+
+## Appendix
+### Appendix 1: Cylon
+A cylon is a sequential activation of the LED:s.
+1. Turn on LED 1
+2. Turn off LED 1, and turn on LED 2.
+3. Turn off LED 2, and turn on LED 3.
+4. Repeat until you reach the end.
+5. Reverse procedure
+
+### Appendix 2: ATmega 4809
+For more information, see [datasheet](https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega4808-4809-Data-Sheet-DS40002173A.pdf).