DAY-01

On the Wednesday of nineth week, Mr. Neil sir conducted our nineth global session. He took the random generator in first 90 minutes. He gave us overall explaination about week-09 which includes Output Devices.
In this assignment, I have made documentation on-
Group Assignment
1. Measure the power consumption of an output device.
Individual Assignment
1. Add an output device to a microcontroller board you have designed and program it to do something.

DAY-02

Output Devices:-
What is output device? The name itself give an idea that the device which gives an output called as output device. An output device is a hardware component that takes information from a computer and presents it to the user in a way they can understand. This can be through a screen that shows images and text, speakers that play sounds, or a printer that makes physical copies of documents. Output devices are essential because they let us see, hear, and use the information that the computer processes.

Group Assignment
Click here to see group assignment in detail.

Individual Assignmment
In individual assignment, I designed PCB board which includes output devices - Buzzer, LCD and RGB led.
1) Buzzer


A buzzer is a small, simple output device that produces sound. It converts electrical signals into audible tones, making it an essential component in many electronic devices for alerting or signaling users. Buzzers are commonly used in alarms, timers, and various types of notification systems to provide audio feedback or warnings. They can emit different types of sounds, such as beeps, chirps, or continuous tones, depending on the design and application. Buzzers are valued for their simplicity, reliability, and effectiveness in drawing attention to a specific event or condition. Buzzer has 2 pins, one is digital and another is ground.
2) LCD


A 16 by 2 LCD (Liquid Crystal Display) is a small screen that shows text. It can display up to 16 characters across and has 2 rows of text, making a total of 32 characters visible at once. These displays are handy for projects where you need to show words or numbers clearly, like in digital clocks or small gadgets. They often have a backlight for easy viewing in different lighting. You can connect them to devices like Arduino or Raspberry Pi to control what shows up on the screen, making them useful for DIY electronics and learning projects.


Here, I designed PCB Schematic in AutoDesk Eagle Software by considering the proper connections of respective output devices.


Here is the final design of PCB board for output devices.


These are the PNG images of traces and outline exported for generating GCode for PCB Milling process.


Now, I used MIT Mods CE to generate GCode of image for PCB Milling process by inserting required parameters such as tool diameter, depth of cut and offset number.


Again, use same process to generate GCode of outline of PCB.

Here is the video of PCB Milling process of output devices PCB.


Here, I got the output.


This is the glimpse after soldering the output deevice PCB. Finally, it is ready!
Now, its time for testing. Firstly, I tested all the devices separately with PCB board.
1) Buzzer
Code:-
const int buzzerPin = 5; // Replace with your desired buzzer pin

void setup() {
pinMode(buzzerPin, OUTPUT); // Set buzzer pin as output
}

void loop() {
// Turn buzzer on
tone(buzzerPin, 1000); // Play a tone (optional, for audible indication)

// Buzzer on time
delay(1000); // Wait for 1 second (buzzer on)

// Turn buzzer off
noTone(buzzerPin);

// Buzzer off time
delay(2000); // Wait for 2 seconds (buzzer off)
}


Output:-

2) LCD
Code:-
#include // Include LiquidCrystal library

const int lcdPins[4] = {32, 33, 25, 26}; // Replace with your LCD pin connections (RS, E, D4, D5)
LiquidCrystal lcd(lcdPins[0], lcdPins[1], lcdPins[2], lcdPins[3]);

void setup() {
lcd.begin(16, 2); // Set LCD dimensions (columns, rows)
lcd.clear(); // Clear LCD display
lcd.print("SIDDHI"); // Print "SIDDHI" on the LCD
}

void loop() {
// No additional code needed here for displaying text, it's done in setup
}


Output:-

Downloads

PCB and GCode Files

Siddhi Bodhe Fab Academy😁