Posts

Showing posts with the label IOT

How to use serial.write() in Arduino.

Image
-           First you have to declare it with board rate 9600 Serial.begin(9600);    -           Then we check is serial port is available. If available then we write data to it. if (Serial.available()>0) {       Serial.Write(byte data); }

How to write string in serial port in arduino.

Image
For write the string in serial port you can use . Serial.println(“YourString”)’;

How to check existing of charter in string in arduino

Image
A rduino program is develops in c++ language. For find the value from the string we use the index of function. Example:       int intIndex = rcvData.indexOf('on');     if (intIndex >0)     {      digitalWrite(7, HIGH);    // You word “On” is exit in string.     }

How to define string in arduino

Image
For defining the string in arduino syntax given below. String rcvData;

How to find value from string in arduino

Image
Arduino program is develops in c++ language. For find the value from the string we use the index of function. Example:      int intIndex = rcvData.indexOf('on');    if (intIndex >0)    {      digitalWrite(7, HIGH);    // You word “On” is exit in string.    }

Raspberry Pi - 3 - Simple LED Blinking program using Node Js

Image
 If you are new to the raspberry Pi then first read below tutorials. Raspberry Pi: 1 - Startup Raspberry pi with OS installation and configuration with laptop Raspberry Pi: 2 - Simple LEDBlinking program using Python For Flashing/Blinking the Led on breadboard using Node JS follow bellow steps. Download  Source code: LedBlinker_Nodejs.rar ·         R equired List of components a).           1 - Raspberry Pi device with 5 V power supply. b).          1 - Bread Board c).           1 - Male to Female jumper cable d).          1 - LED 1.        First connect the GPIO pin to the bread board as shown in figure. 2.        Here we use the PIN Number:  “ 4 “  (As per number 4(pin rank 7) , third from the top – left...

Raspberry Pi - 2 Simple LED Blinking program using Python

Image
Raspberry Pi: 1 - Startup Raspberry pi with OS installation and configuration with laptop For Flashing/Blinking the Led on breadboard using python follow bellow steps. Download  Source code: LedBlinker_Python.rar ·          Required List of components : a).          1 - Raspberry Pi device with 5 V power supply. b).          1 - Bread Board c).          1 - Male to Female jumper cable d).          1 - LED 1.        First connect the GPIO pin to the bread board as shown in figure. 2.        Here we use the PIN Number:  “ 4 “  (As per number 4(pin rank 7) , third from the top – left ).  for get the output  from the raspberry pi so connect eh jumper wire  from Raspberry PI GPIO pin “4” to bread board as shown in  image 3. ...