Just gave you a gift to help you succeed! Hey I am I have just upvoted you! Achievements Posted on Utopian.io - Rewarding Open Source Contributors Control of an alarm with LEDs and the Arduino Uno card using Fritzing: Tutorial 1.Introducción a Fritzing utilizando un circuito básico con LDR. Thank you all for your time and attention, I hope it is very useful for your projects. Once we have the circuit connection in fritzing we proceed to establish it in our breadboard and record the following program in the Arduino board: float A1=1 There is also the echematic of the first part of the circuit, which allows to obtain the sensing of the input signal.įinally I present the Arduino code. We will take into account that only in this case the motor will be able to control the speed, since if we want to change the direction of rotation we must use a driver or H bridge, which also allows us to protect the Arduino board from the current that the motor consumes. Then the schematic of the 9V DC motor connection is shown. We connect the final circuit for the application that we want to develop. The following figure shows the connection of the motor to the output of pin 3 of Arduino, which will write on the pin a high or low in the base of the transistor according to the programming of the Arduino. The second stage of the circuit will consist of the control of a DC motor, in this case the motor will be powered by a voltage of 9V, once the phototransistor detects high light intensity, which translates into a sufficient base current for the phototransistor enter your point of operation and deactivate the engine when there is an obstacle in the emission and reception of light. The following picture shows the connection of this first part of the circuit: We make the connection so that the Arduino has as analog input on pin A1 the signal that comes from the phototransistor that varies depending on the light it detects, which will be disturbed by the entry and exit of people in the office. Finder of the Arduino boards, in this case Arduino Uno. The components that refer to the figure are:ī. We select the devices to be used, in this case we add: an IR LED, a phototransistor, an NPN transistor and two resistors of 1kΩ and 220Ω, this will be our first design stage to sense the entry and exit of people. The principle is based on a light emitter and a photodetector that receives it, when a person enters or leaves the office disturbs the light and therefore the engine acts to open or close the door. The project tries to realize the control of access of people for an office that requires to automate or to control the entrance of people that enter and leave. The Fritzing program is used to make the prototype connection in the protoboard to perform the tests, it should be noted that in this project the Arduino Uno platform is used for the acquisition of a signal emitted by the photoelectric. In the present tutorial the photodetector is used, in which the current of the base of the transistor varies according to the light it receives, its principle is similar to a photocell. Greetings, this is a contribution from for Utopian of the Open Source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |