Skip to main content

Posts

Showing posts with the label ardino programming

8x8 LED Matrix Interfacing with Arduino

This will teach you how to control individual led in 8X8 LED MATRIX using Android App. Video Link   COMPONENTS REQUIRED 1. 8X8 LED MATRIX 2. Breadboard 3. Arduino Nano 4. Connecting Wires 5. Bluetooth HC-05  CONNECTION Connect as given in circuit Diagram ARDUINO Code  #include <Led.h> int DIN = 2; int CS =  3; int CLK = 4; int row=0; int col=0; int temp=0; int data=0; LedControl lc=LedControl(DIN,CLK,CS,1); void setup() {    lc.shutdown(0,false);       lc.setIntensity(0,5);  lc.clearDisplay(0);  Serial.begin(9600); } void loop() {    if(Serial.available() > 0)        {       data = Serial.read();       Serial.print(data);// it returns ascii value if we send one in the phone                     if(data < 96)       {        if(temp==0)        {         row=data-48;         temp=1;        }        else        col=data-48;       }           else if(data=='n')        {          lc.setLed(0,row,col,true);        Serial.println('n')

Arduino Based Dancing Robo

Hello Makers This Blog is about making a generic dancing bot which will move his hand entertainingly responsive to interruptions. Video Link Components you need: Arduino UNO  ( Click here to Buy Arduino UNO ) I.R. Module ( Click here to buy IR Module ) Servo-2 ( Click here to buy servos ) Jumper Wire ( Click here to buy jumper wire ) Cardboard ( Click here to buy cardboard ) Follow the steps and do the connections As given in Video Arduino Code : Servo myServo0;     //Object Name of your first Servo Servo myServo1;     //Object Name of your Second Servo int a;              //Variable to Store Value of IR int count = 0;      //A Counter Variable void setup() {   // put your setup code here, to run once:   myServo.attach(3);   //Attaching pin No. of first Servo will be 3   myServo1.attach(4);  //Attaching pin No. of first Servo will be 4   pinMode(5, INPUT);   //Attaching pin No. of IR   Serial.begin(9600);  //To Start your Serial Monitor } void loop() {   // put