![]() ![]() you do have to be careful as you don't want to fry the precious arduino and sensor. We are all done wiring now let's go ahead and go to the next step, programming the controller.Īlright this part is pretty straightforward if you mess it up the program is going to let you know you miss something or it's just not gonna work. Next go ahead and place your LED on the breadboard, the longer lead of the LED is the positive side or if both of your leads are the same you can look for a small notch on one of the sides of the LED this is going to be the negative side place it on your breadboard plug the negative side into the ground of the Arduino, you can use a jumper wire to go from the ground on the LED pen to the ground on the motion sensor then pick a pin that's empty on the Arduino and run a wire from it to the positive side of the LED. Then you're going to connect the VCC output from the motion sensors to the VCC output of the Arduino this is the positive five volts that's coming out of the Arduino. You're also going to pick a pin on your Arduino and you're going to connect the out pin from the motion sensor which is labeled "out" to an empty pin on your Arduino I used the pin number five. After you're all situated you're gonna go ahead and place a wire from the Arduino ground to the ground on that motion sensor this pin you should be labeled. Okay now this is my favorite part, wiring the circuit! First off you need to place your controller if possible on a breadboard! I am using Arduino micro so it's very convenient to place on a breadboard if you're not using a micro you will need to use some jumper wires to connect your Arduino to a breadboard so you can plug your sensors and output devices in more easily.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |