Posts

Showing posts from November, 2023

LED sensor

Image
  LED SENSORS Required hardware : 1. Audrino 2. 10k ohm resistor 3. LED 4. 220 ohm Resistor 5. Breadboard Circuit . connect 3 wires to audrino . red wire goes from 5V to breadboard, black wire goes from ground to breadboard, the white wire goes form analog input to breadboard. . plug the LED longer part (the anode, positive part) to pin 13 through 220 ohm reisitor and the smaller part(the cathode, negative part ) to the ground(GND) in audrino. Code        You can adjust the speed of LED blinking.

Servo Motors

Image
 Hardware Required: . Arduino . BreadBoard . Servo Motor . Wires First the red wire is connected to the 5V of Arduino then the black wire is connected to GND of arduino. Lastly orange wire is connected to -9V of arduino to the servo motor. Code Outcome The servo motor starts moving from 0 to 180 degrees and 180 to 0 degrees.