From 7ce9c696d50fecac6b630692ea29a6592b65273a Mon Sep 17 00:00:00 2001
From: Akseli Uunila <akseli.uunila@gmail.com>
Date: Thu, 16 Feb 2023 20:21:28 +0200
Subject: [PATCH] Add and move text

---
 docs/group_assignments/group2/assignment4.md | 22 ++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/docs/group_assignments/group2/assignment4.md b/docs/group_assignments/group2/assignment4.md
index e2f0b59..205a149 100644
--- a/docs/group_assignments/group2/assignment4.md
+++ b/docs/group_assignments/group2/assignment4.md
@@ -15,13 +15,14 @@ authors:
 
 In this group assignment, we learned about different tools for embedded programming.
 
-We first soldered microcontrollers (XIAO RP2040, XIAO ESP32C3, and XIAO SAMD21 with pin connectors. Then, we were smoothly able to plug it into the breadboard for a group assignment with ring oscillators.
-
-We first load the program into microcontrollers. We used programs given by our instructor. Detailed steps of this process could be found in our individual documentation for this week.
+We used three different microcontrollers all in the Seeed XIAO form factor.
+We first learned putting simple sample codes to those
+and later used the "ring oscillator" codes and measured the signal frequencies.
 
-We used Keysight InfiniiVision DSOX3102A, a digital storage oscilloscope.
+## Programming the microcontrollers
 
-## Code used
+We first load the program into microcontrollers. We used programs given by our instructor. Detailed steps of this process could be found in **our individual documentation** for this week
+as each one of us did one microcontroller.
 
 We used these "ring oscillator" codes from Neil:
 
@@ -33,7 +34,10 @@ We used these "ring oscillator" codes from Neil:
 
 ## Pin connections
 
-Write here which pins were used for each 
+We first soldered microcontrollers (XIAO RP2040, XIAO ESP32C3, and XIAO SAMD21 with pin connectors. Then, we were smoothly able to plug it into the breadboard for a group assignment with ring oscillators.
+
+The idea is to connect one input and one output pin together. In the programmed code the input will be read and the output will be set to the opposite boolean value.
+This will result in a square wave of which frequency we will measure with the oscilloscope.
 
 [rp2040 schematic](https://files.seeedstudio.com/wiki/XIAO-RP2040/res/rp2040_datasheet.pdf)
 
@@ -44,6 +48,10 @@ Write here which pins were used for each
 
 ## Measurements 
 
+We used Keysight InfiniiVision DSOX3102A, a digital storage oscilloscope to measure the frequencies of the square waves.
+
+### Images of the procedure
+
 The following figures (Figures 1, 2, 3) show schematics of the connection between the programmed microcontroller and oscilloscope.
 
 The following figures (Figures 4, 5, and 6) show measurements at the oscilloscope.
@@ -60,6 +68,8 @@ The following figures (Figures 4, 5, and 6) show measurements at the oscilloscop
 
 ![Measurementphoto](./assets/assignment4/schematic_photos/RP22connections.jpg)
 
+### Results
+
 ![oscilloscope measurement](./assets/assignment4/oscilloscope/RP2040.png)
 
 ![oscilloscope measurement](./assets/assignment4/oscilloscope/ESP32C3.png)
-- 
GitLab