This weeks task was to connect and test an output device to my the microcontroller board that I designed and built in previous assignments.
## Group work - Power consumption
## Group work
- This weeks group assignment was to measure the power consumption of an output device. Our groups work was documented here: [Output devices- Group assignment](https://fabacademy.org/2022/labs/vancouver/students/marvin-holloway/assignments/week21/)
## In
## Individual assignment
- This week individual assignemt is to connect, test and program an output device with the board I designed in [Electronics design week](https://fabacademy.org/2021/labs/vancouver/students/james-khan/assignments/week08/) and made in [Electronics production week](https://fabacademy.org/2021/labs/vancouver/students/james-khan/assignments/week04/).
### Output Device
- My final projects design will be using an output screen primarily to display a timer. It would potentially be used for other things, like displaying a menu, but the main use is for displaying a recorded time. So I chose to use an display screen as my output for this assignment.
- I had a couple different options to chose from for my screen, but I decided on using the [0.96 inch OLED IIC Display Module 128x64](https://www.amazon.com/EPLZON-Display-Self-Luminous-Projects-Raspberry/dp/B0DTS8K9XB/ref=sr_1_2_sspa?crid=1J6RWN85WGHY4&dib=eyJ2IjoiMSJ9.kqkv7QkjdNw6R9E-13YaCbn3T2nL7k0ACarNxhNK9bZstKIJmjRH4MSp6RNd40xto7KzcmxjCARV-D3V5BS-GM1VagCMFukYkuVuNlybFDAFWpAUPtZmqHzP2Z-1Rv-qyQlQQ5-2b-ALmtBsWl7iN2OJ6IfsouS1swufoJ92GdKGQbEjC7EkyLI_9OSQK0joUnFN6MkMwZdiu71MFrzEo9cHPQ_Hw7faXIi1J8H71XU.t_XV8V5jo0OmAqP1IIIEn860ko1liayoNwUvLPDUXX8&dib_tag=se&keywords=Frienda%2B10%2BPieces%2B0.91%2BInch%2BOLED%2BDisplay%2BModule%2BDriver%2BIIC%2BI2C%2BSerial%2BSelf-Luminous%2BDisplayBoard%2BCompatible%2Bwith%2BArduino%2BRaspberry%2BPI&qid=1742985123&sprefix=frienda%2B10%2Bpieces%2B0.91%2Binch%2Boled%2Bdisplay%2Bmodule%2Bdriver%2Biic%2Bi2c%2Bserial%2Bself-luminous%2Bdisplayboard%2Bcompatible%2Bwith%2Barduino%2Braspberry%2Bpi%2Caps%2C508&sr=8-2-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&th=1). I chose this one because I preffered this aspect ratio to the others we had on hand.
- These screens come bare as seen here, without any pins attached. However they also come with 4 male pins that you can solder on if you would rather use pins (instead of soldering directly to the board).

- I preffered to use the male pins in my setup, so the first thing to do was to solder them to the display board.


### Connecting Output
- These display boards only need 2 data wires, plus a Power (Vcc) and Ground (GND). This display uses IIC (also called I2C) ports for communication. So these are the only ports it can use from the microprocessor. I designed my board with these 4 connectors together with labels
- The only other thing needed to connect the screen to my board was to use 4 wires of [M/F jumper wires](https://www.digikey.com/en/products/detail/adafruit-industries-llc/826/5353622)

### Programming
### Major Setback
- problems programming RP2040 to work with output screen... troubleshooting... swapping with ESP32 board instead. (heavy documentation)
- swapped to different display than from Elecronic design phase [I2C OLED display 0.96 inch (128x64)](https://www.amazon.com/Frienda-Tabellone-Auto-Luminoso-Compatibile-Raspberry/dp/B08VNNCLHD/ref=sr_1_3?crid=36TC3CM7VLEDP&dib=eyJ2IjoiMSJ9.j0hIApaoRUriWJTY34aXqTX6CmqwjMrYcUpd3XbRDHxoNvceKFyZoNEP24CYo1tmB3Loee1b9OXU1c0nkcCvvcmcHaWBSkW20YoLHwDr4CIqoLOyS5A3ecQ5WiJ-Q4KHWMuj0wKzLCLJiwZz5wQT1yyWHMniLTqw2ctSH2qDW_OiwRetPxHDJ7aQ8wPzQjt4ptQeoUpru1pYibKzP6_ZgIKcvQD0ouUI8OvrK8Tlryg.Y-m-2xB5ntqSFrhfnHPEJrnyESxZwNqUqeseYPD3t-Y&dib_tag=se&keywords=10%2BPieces%2BI2C%2BOLED%2BDisplay%2BModule%2BOLED%2BDisplay%2BScreen%2BDriver%2BIIC%2BI2C%2BTabellone%2BSeriale%2BconDisplay%2BAuto-Luminoso%2BCompatibile%2Bwith%2BArduino%2Bcon%2BRaspberry%2BPI%2B(White)&qid=1742536347&sprefix=10%2Bpieces%2Bi2c%2Boled%2Bdisplay%2Bmodule%2Boled%2Bdisplay%2Bscreen%2Bdriver%2Biic%2Bi2c%2Btabellone%2Bseriale%2Bcondisplay%2Bauto-luminoso%2Bcompatibile%2Bwith%2Barduino%2Bcon%2Braspberry%2Bpi%2Bwhite%2B%2Caps%2C287&sr=8-3&th=1)