diff --git a/README.md b/README.md index 31a2783..bda8ba5 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,6 @@ ## [Lab0](./lab0/lab0.md) -## [Lab1](./lab1/lab1.md) \ No newline at end of file +## [Lab1](./lab1/lab1.md) + +## [Lab2](./lab2/lab2.md) \ No newline at end of file diff --git a/lab2/1.jpg b/lab2/1.jpg new file mode 100644 index 0000000..1f62678 Binary files /dev/null and b/lab2/1.jpg differ diff --git a/lab2/2.jpg b/lab2/2.jpg new file mode 100644 index 0000000..f135601 Binary files /dev/null and b/lab2/2.jpg differ diff --git a/lab2/3.jpg b/lab2/3.jpg new file mode 100755 index 0000000..520bc02 Binary files /dev/null and b/lab2/3.jpg differ diff --git a/lab2/4.png b/lab2/4.png new file mode 100644 index 0000000..7a613fc Binary files /dev/null and b/lab2/4.png differ diff --git a/lab2/5.png b/lab2/5.png new file mode 100644 index 0000000..bc02f8e Binary files /dev/null and b/lab2/5.png differ diff --git a/lab2/6.png b/lab2/6.png new file mode 100644 index 0000000..fc3167b Binary files /dev/null and b/lab2/6.png differ diff --git a/lab2/7.png b/lab2/7.png new file mode 100644 index 0000000..88758e1 Binary files /dev/null and b/lab2/7.png differ diff --git a/lab2/8.png b/lab2/8.png new file mode 100644 index 0000000..5b7e093 Binary files /dev/null and b/lab2/8.png differ diff --git a/lab2/lab2.md b/lab2/lab2.md new file mode 100644 index 0000000..b51297f --- /dev/null +++ b/lab2/lab2.md @@ -0,0 +1,42 @@ +## Lab 1: BLE Microcontroller programming + +### Part 0: Setup + +To prepare for this lab, I am working with the following setup + +![1.jpg](./1.jpg) + +* Blue - Bluetooth capable Android phone runing the Ada Bluefruit Connect App (mirrored via scrcpy) +* Red - My assembled featherboard connected to my machine via USB +* Yellow - The python code downloaded from the provided link for this lab, in my downloads folder +* Purple - The filesystem of my RP2040 board, with Circuit Pi files present from the last lab. + +### Part 1: Copy code + +I now copy the new supplied code to the CircuitPy device + +![2.jpg](./2.jpg) + +### Part 2: Solder + +After reviewing the [technical documentation](https://learn.adafruit.com/adafruit-airlift-featherwing-esp32-wifi-co-processor-featherwing/pinouts) for the pinouts of the EPS32 featherboard, it has become apparent that I will need to solder some pads for this device to work with bluetooth. Specifically, I have soldered the ESPGPIO0, ESPRX and ESPTX pads. + +![3.jpg](./3.jpg) + +### Part 3: Profit + +The device now appears available as `CIRCUITPYf1ea` on the Bluefruit Connect App +![4.png](./4.png) + +I can connect to the device with a strong signal +![5.png](./5.png) + +Finally, I can control the LED colors as required. Below I demonstrate setting simple Red, Blue and Green colors + +![6.png](./6.png) +![7.png](./7.png) +![8.png](./8.png) + +### Reflections + +The biggest challenge of this lab was figuring out what it took to enable bluetooth on the ESP32 board. My initial thought was that I would need to solder the various connections betwen the RP2040 board and the ESP32. At first, I did not realize that the featherboard already bridges those connections. With some advice, I took a closer look at the documentation to notice all that was needed was to solder the pads mentioned. Overall, it was fun to bring some new practical functionality to my hardware kit \ No newline at end of file