Week 10

Output devices

This week focus on demonstrate workflows used in controlling an output device(s) with our MCU board

Fab Lab Peru icon

Keep only current content: summary, deliverables, evidence, conclusions and downloadable files.

Week 10

Week summary

We use output devices and measure their power consumption

During this week, we test and improve the designed microcontroller board
Group

Quick data

  • Topic: Output devices
  • Student: Carmen Elena Gutierrez Apolinario, David Avila Pimentel, Esteban M. Valladares, Jianfranco Bazan J., Mario Chong, Rocio Maravi, Grace Schwan, Cindy Marilyn Crispin, Jennifer Wong
  • Software: Arduino IDE, MQTT
  • Machine / Process: PCB, Xiao RP2040, multitester, LCD, computers

Assignments and deliverables

  • Test an output device and measure its power consumption
  • Document the work to the group work page and reflect it

Checklist

  • Document the process with current photos or screenshots
  • Upload source files, exports and final outputs
  • Close with a short reflection or lessons learned

Fab Lab at UP

Group challenges

  • Interact with the designed PCB
  • Connections mistakes
  • Error and conflict with different libraries
  • Learn with videos (YouTube) and ChatGPT
Test code
Group at Fab Lab

Process

During this week we worked on:

  1. Reviewing output devices on Fab Lab
  2. Exploring previous projects
  3. Solving mistakes with cables and connections
  4. Interacting with Arduino IDE and libraries
Reviewing output devices on lab
Reviewing other projects
Testing cables
Connection with screen - download RP2040 libraries
Arduino IDE Code
Uploading code to Xiao RP2040

    #include  
    #include 

                // Set the LCD address to 0x27 for a 16 chars and 2 line display
                // If 0x27 doesn't work, try 0x3F. You may need an I2C scanner.
                LiquidCrystal_I2C lcd(0x27, 16, 2); 

                void setup() {
                  Wire.setSDA(D4); //D4
                  Wire.setSCL(D5); //D5
                  // Initialize the I2C bus
                   Wire.begin(); 
                  
                  // Initialize the LCD screen
                  lcd.init();

                  // Turn on the backlight
                  lcd.backlight();
                  
                  // Set the cursor to column 0, row 0 (0-indexed)
                  lcd.setCursor(0, 0);
                  // Print a message to the LCD.
                  lcd.print("Fab Academy");
                  
                  // Set the cursor to column 0, row 1
                  lcd.setCursor(0, 1);
                  lcd.print("Fab Academy Peru");
                }

                void loop() {
                  // Main loop is empty, display updates once in setup
          }


Connecting multimeter
Measuring voltage
Measuring voltage and changing resistance
Multimeter in use
Video demonstration

Conclusions

We integrate input/output devices and measure power consumptions.