Wednesday, April 3, 2019
Fading Light Experiment on Arduino Kit
weaken Light taste on Arduino KitIntroductionArduino is an open source prototyping platform change users to create interactive electronic objects. 1 Here, we performed Fading Light one of the basic activities on this Arduino kit. This activity demonstrates the use of analog payoff in the reckon (Pulse Width Modulation) to spend the LED light. You can fade out and fade in the light of LED automatically using Arduino with a ingenuous figure that is installed in Arduino.Materials with DescriptionArduino mesaArduino Uno SMD SR3 is used. The main material demand to hold the materials, and extend the encipher from computer.Prototyping ShieldIt is a prototype appendage board for Arduino circuit board resistivity 220R220 ohms resistors will be used on this experiment. It is use to reduce the current flow for the LED output.Bread BoardUsed for the connections of materials together.LED light(Light emitting diode) will be used for substantiation if the code and plotting of mater ials is correct.USB cable A-BUSB 2.0 cable which is the common A to B M/M type peripheral cable to connect the Arduino board from computer. perspirer Cable M/MUsed to connect Arduino Board from breadboard. role (self-explained)1.Prepare the materials needed.5MM -LED x1Jumper Cable M/M x2220R Resistor x1USB cableArduino BoardPrototyping shieldBreadboard2. target the prototyping shield on the top of Arduino Board.3. Place LED light 1st the last row of the breadboard.4. Place the Resistor on the Positive terminal of LED light and connect the setback fount of resistor on tenth pin using perspirer wire.5. Place the jumper wire on the Ground and the opposite side on Negative terminal of LED light.6. Connect the Arduino Board to your screen background or laptop.7. Now using desktop or laptop execute and install the appropriate code for Fading Light activity on your Arduino Board.Circuit DiagramCodeCode Analysis This is the code for Fading Light Activity. As you can see, the ledPin var iable has a value of 10, 10th is the pin that the LED is attached on Arduino. On setup() function this state pin 10 to be an output. The Serial.begin(9600) this code is the speed communication. Arduino will practice data at 9600 bits per second which is 9600 is the default bit. Executing the loop() function which realise the LED light Fade on off with a duration of 1 seconds and given value of full 5. Theres a method for fadeOn which is acquire the time with 1000/ 1 sec and an increment of 5 which is called as parameters. This values are being process on for-loop which is changing the igniter of LED lights. As you can see in for-loop (byte value = 0 value Comparison of Code vs. Hardware OutputThe given code says that LED light will fade on off 19 times with a lighter of 5 which is the maximum lighting of it and decreases the luminance by 5. The given code output is accurate from the expected output of the hardware. It fades on off 19 times with 5 additional luminance in e very fadeOn and decreases 5 luminance in every fadeOff, the code is accurate from the output of hardware. No errors and run successfully.Recommendation/EnhancementI recommend that procedures, guides, or instruction are given on each group members to perform those activities successfully. Readable and reliable codes that are easy to understand. dupe a review on those codes that is used.References1ArduinoAn Open Electoring Prototyping Perform
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment