Posts

Showing posts with the label Embedded System

Pulse Oximeter Sensor with Arduino

Image
Pulse Oximeter Sensor with Arduino Interfacing MAX30100 Pulse Oximeter Sensor with Arduino & LCD Display A pulse oximeter is a device used to monitor both your heart rate and blood oxygen concentration. This device is especially important for people who need to monitor these parameters due to certain health conditions, such as asthma or congestive heart failure. In this project, 16X2 LCD Display is used to see the value of BPM & SpO2 instead of Serial Monitor. Assemble the circuit as shown in the circuit diagram below. Connect the Vin pin of MAX30100 to Arduino 5V or 3.3V pin, GND to GND. Connect the I2C Pin, SCL & SDA of MAX30100 to A5 & A4 of Arduino. Similarly connect the LCD pin 1, 5, 16 to GND of Arduino and 2, 15 to 5V VCC. Similarly connect LCD pin 4, 6, 11, 12, 13, 14 to Arduino pin 13, 12, 11, 10, 9, 8. Use 2-10K Potentiometer at pin 3 of LCD to adjust the contrast of LCD. CONNECTIONS:- MAX30100- If you purchased the MAX30100 Module shown below, then it might n

LCD Interfacing with 8051 Microcontroller

Image
LCD Interfacing with 8051 Microcontroller Hex Code Command to LCD Instruction Register 0F LCD ON, cursor ON 01 Clear display screen 02 Return home 04 Decrement cursor (shift cursor to left) 06 Increment cursor (shift cursor to right) 05 Shift display right 07 Shift display left 0E Display ON, cursor blinking 80 Force cursor to the beginning of the first line C0 Force cursor to the beginning of the second line 38 2 lines and 5×7 matrix 83 Cursor line 1 position 3 3C Activate the second line 08 Display OFF, cursor OFF C1 Jump to the second line, position 1 OC Display ON, cursor OFF C1 Jump to the second line, position 1 C2 Jump to a second line, position 2 Circuit Diagram : Source Code: // Program for LCD Interfacing with 8051 Microcontroller (P89V51RD2) #include<reg51.h> #include <string.h> #define display_port P2 //Data pins connected to port 2 on microcontroller sbit rs = P0^0; //Register Select pin connected to pin 0 of port 0 sbit rw = P0^1; // Read/Write pin c

Control LEDs with Voice Command

Image
Control LEDs with Voice Command This is a very basic project for controlling LED (Red) using voice control. To accomplish this we have used the Bluetooth HC-05 module and android apps are available on the play store. LEDs will be On/Off on your voice command. Procedure:- Make the connections as shown in the connection image. Don’t connect the RX & TX pins WHILE/BEFORE  uploading the code! Copy the code given below. Download any app called  BT Voice Control. Open the app   (It will automatically turn on the device’s Bluetooth). Go to options. Click on  “Connect”.  Choose the device – HC 05. When you are connecting to the Bluetooth module for the first time, it will ask you for the password. Enter  0000  OR  1234.  When the device gets successfully paired with the sensor, the LED lights on the sensor will start blinking at a slower rate than usual. DONE. Copy the code given below & test it out! Source Code:- String voice; #define RED 8 void setup() { Serial.begin(9600); pinM

Interfacing LED with 8051 Microcontroller in Assembly

Image
Blinking 1 LED using 8051 This is the first project regarding 8051 and of course one of the simplest, blinking LEDs using 8051. The microcontroller used here is AT89S51 In the circuit, push-button switch S1, capacitor C3 and resistor R3 form the reset circuitry. When S1 is pressed, the voltage at the reset pin (pin9) goes high and this resets the chip. C1, C2, and X1 are related to the on-chip oscillator which produces the required clock frequency. P1.0 (pin1) is selected as the output pin. When P1.o goes high the transistor Q1 is forward biased and LED goes ON. When P1.0 goes low the transistor goes to cut off and the LED extinguishes. The transistor driver circuit for the LED can be avoided and the LED can be connected directly to the P1.0 pin with a series current limiting resistor(~1K).  The time for which P1.o goes high and low (the time period of the LED)  is determined by the program. The circuit diagram for blinking 1 LED is shown below. Program. START: CPL P1.0 ACALL WA