Week 10
Week summary
We use output devices and measure their power consumption
During this week, we test and improve the designed microcontroller board
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
Group at Fab Lab
Process
During this week we worked on:
- Reviewing output devices on Fab Lab
- Exploring previous projects
- Solving mistakes with cables and connections
- 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
Files and links
Conclusions
We integrate input/output devices and measure power consumptions.