If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content
Current time:0:00Total duration:3:45

Camera connection to the Arduino

Video transcript

so in this video we're going to show you how to turn on and off the camera using transistors and also how to control the shutter function so we're just using NPN transistors there - n - 2 - a transistors and 10k ohm resistors so we're connecting the 10k ohm resistor just like we did for the sound module to the base or the center wire of our transistor and then we're just cutting 22 gage hookup wire and connecting that to the pin outs on our Arduino so we're connecting that to pin outs 4 and 5 and 4 goes to the shutter I'm sorry 4 goes to the power of 5 goes to the shutter and then we have our magnet wire that we connected to the actual contacts for the buttons that turn on and off the camera and we're going to strip away the lacquer coating on the outside of that wire using the edge of our break off blade knife and it's important that you rotate the wire as you do this so that you can get the lacquer on the back side and on the edges it's really easy to miss that and you won't get as good a connection if you don't strip all the lacquer off so the lacquer acts as a really thin insulator and it made it those thin wires made it easy to connect to the power connections for our switches but it's definitely not the right wire to connect to our breadboard because it's too small a gauge it won't stick it won't stay in place so we need to connect it to a thicker wire so we're using a 22 gauge hookup wire and we just twisted the magnet wire around the hookup wire and now we're just soldering the two pieces together and you want to make sure that solder travels all up and down the joint to make sure it's a good solid connection and then to and prevent any shorting we're going to take some heat shrink tubing and connect it just slide it right over that joint and use our pliers to pull it down just a little bit we want about a quarter of an inch exposed and then we're going to use our heat gun to I get that heat shrink tubing to shrink around our wire and protect the the new connection and so we can just bend that wire right into place and that goes on the the left side of our transistor and that is going to be our emitter side and now we're going to do the collector side and we're just stripping off the lacquer coating and again we'll wrap it around that 22 gauge wire and then we'll solder it in place and we'll heat shrink tubing that wire as well and that's going to allow us to get a nice good connection and also to protect from the you know again from shorting with the heat shrink tubing there so we'll connect that to the other side of our transistor right there and so that'll that will allow our Arduino to send a small voltage to the transistor to turn the camera on and off and so now we still have our shutter button the most important button and we're going to wire up that the same way we did our power button so we twisted our stripped our magnet wires and twisted it around 22 gauge wire and then soldered them in place and now we're putting our heat shrink tubing over those wires and trimming off any excess there and then getting those heat shrink tubing that heat shrink tubing on we'll use our heat gun to cause that two tubing to shrink in place and protect those new connections and again we'll just put those wires on both the emitter and the base I should say both the emitter and the collector on the transistor and now we can control our camera with our Arduino