Embedded world

Embedded,C Programming,C,Linux

Monday, May 17, 2021

Finding COM PORT in ubuntu

May 17, 2021

 Hello ,In this post we see how to find COM port/Serial port in Ubuntu.


Items Required


1.Usb to TTL cable 



Step 1: Finding COM Port in Computer in Device manager.

 

      1.a Insert  USB to TTL in USB Port of computer/Laptop. 


     


    1.b Open Terminal and type dmesg and press Enter , go to last line.


             


 


                     


                  we can see USB to TTL is detected on ttyUSB0

Sunday, July 19, 2020

How to Make Tasty curd-Mutton Receipe

July 19, 2020
Hi Friends,
Today i am going to tell about curd mutton made by me.

Tuesday, January 22, 2019

ESP8266 mac Address

January 22, 2019
//Here is code snippet to find mac address of nodmcu in Arduino IDE




Friday, November 30, 2018

Program to find Prime numbner in C

November 30, 2018
#include <stdio.h>

int main()
{
    int usernumber,count=0;
    printf("enter your number");
    scanf("%d",&usernumber);
    for(int i=1;i<=usernumber;i++)
    {
        if(usernumber%i==0)
        count++;
    }
    if(count==2)
    {
        printf("Prime Number");
     
    }
    else
    printf("Not a prime Number");

    return 0;
}

// Testing in Highliting


#include <stdio.h>

int main()
{
    int usernumber,count=0;
    printf("enter your number");
    scanf("%d",&usernumber);
    for(int i=1;i<=usernumber;i++)
    {
        if(usernumber%i==0)
        count++;
    }
    if(count==2)
    {
        printf("Prime Number");
        
    }
    else 
    printf("Not a prime Number");

    return 0;
}

Monday, November 5, 2018

I2C Protocol

November 05, 2018
I2C- I2c stand for Inter intergrated Circuit.This is standard Protocol in Embedded System for data transfer.

This Consists of Basically 4 Pin

1.SDA
2.SCL
3.Vcc
4GND




Saturday, October 27, 2018

C++ Hello World

October 27, 2018

#include <iostream>
 
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}

Wednesday, October 10, 2018

C++ template Example

October 10, 2018
#include <iostream>

using namespace std;

template <typename T>
T sum( T x, T y)
{
    return x + y;
}
template <typename T>

T multiply(T x,T y)
{
    return x*y;
}

int main()
{
cout << "Sum : " << sum(3, 5) << endl;
cout << "Sum : " << sum(3.0, 5.2) << endl;
cout << "Sum : " << sum(3.24234, 5.24144) << endl;
cout << "Sum : " << multiply(3, 5) << endl;
cout << "Sum : " << multiply(3.0, 5.2) << endl;
cout << "Sum : " << multiply(3.24234, 5.24144) << endl;
return 0;
}

Finding COM PORT in ubuntu

 Hello ,In this post we see how to find COM port/Serial port in Ubuntu. Items Required 1.Usb to TTL cable  Step 1: Finding COM Port in Compu...