Equipment; 1) An Arduino Uno board 2) A Photo resistive sensor(LDR) [analoge or digital] 3) Jumper wires. 4) A Servo motor 9g. 5) Servo motors attachments. 6) Breadboard. How it works; LDR is attached on the screen by which it can read the difference between the black spot(Cactus in the game) and bright spot(no obstacle). For identifying the black spots precisely we have a little bit set the sensitivity of the LDR sensor and brightness of the screen accordingly. This LDR data take as a digital input and control the servo motor as a digital output. Arduino Programming; #include <Servo.h> Servo myservo; // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0; // variable to store the servo position const int ldr=7; const int mot=9; //--Serial.begin(9600); void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo obj...
These are some views of Pallithura Beach in Kerala. This beach is not so much famous so there is less crowd as you can see in the pictures. But the beach was great.
4. Application of Structures function For the 2D array as shown, do the followings without using array functions: a) Get the array size b) Extract an element (i,j) c) Extract a row i d) Extract a column j #indexing is off for both the loop # selecting Last Value
1. Formula loop Using formula loop compute y for the following two functions: 𝑦1 = sin(x)/x and 𝑦2 = sin(x2)/x where x varies from 0 to 10 in step of 0.05. Plot 𝑦1 & 𝑦2 vs. x in a single XY graph. Use For Loop and Formula loop for this problem.
A projectile is projected with a velocity of V (in m/s) and at an angle (in degree) to the horizontal. Build a VI to compute (i) Maximum height reached (in meters), (ii) Time of flight (in seconds) and (iii) Range of the projectile (in meters).