loading

This project lets you manipulate the input of voltage from an Arduino microcontroller so that you enjoy of a power supply from 0 - 5 Volts. For getting the code, go to: http://pastebin.com/CDy28N55

What you will need:

Soldering iron

Solder

Wire #22, 1.5m

Driller

Drill bit of 3/8"

Nose pliers

Cutter of wires

Step 1: Schematic Diagram

In this step, you will observe the instructions for developing the project successfully. That is, observe carefully the schematic so that you can develop with success this project.

Step 2: List of Materials

In this step, you will see the following list of materials for the project.

1 Arduino Uno R3 DIP Edition (Revision 3)

1 Arduino MEGA Protoboard PCB (Rev3)

1 ABS Plastic Enclosure for Arduino Board - Fits UNO or MEGA

1 16x2 Character LCD Display - White on Blue 5V

2 Single Turn 3/8" Square Cermet 10k Potentiometer

1 9V Battery Snap with 2.1mm Barrel Plug

1 Cable USB2.0 A/B 3 Feet Black USB-A Male To USB-B Male

1 Alligator Clip-to-BNC Cable

1 Straight BNC Female Connector Panel Mount

1 Connector Unshrouded Header 40 Position 2.54mm Straight Thru-Hole

Step 3: Cutting the Arduino Enclosure Posts

In this step, you are going to prepare the plastic posts of your Arduino enclosure so that you can adjust perfectly the Arduino hardware into it. That is, cut the plastic posts of your Arduino enclosure according to the photo

Step 4: Drilling the Arduino Enclosure

In this step, you should drill a hole of 3/8" in your Arduino enclosure so that you later install the BNC connector. That is, using a drill bit of 3/8", do a hole of 3/8" in your Arduino enclosure.

Step 5: Preparing the BNC Connector

In this step, you should identify the positive and negative leads of your power supply, and it's through the BNC connector. That is, connect one wire to the gold pin of your BNC connector and another one to the silver clip terminal of that same connector so that the wires become positive(A0) and negative(GND) terminal respectively.

Step 6: Installing the BNC Connector

In this step, you are going to install the BNC connector in the hole done in the Arduino enclosure in step #5. That is, Install the BNC connector in the hole previously done in the Arduino enclosure in the step #5.

Step 7: Installing the Arduino

In this step, you are going to install perfectly the Arduino hardware into the Arduino enclosure. That is, once you prepared previously the Arduino enclosure, you are already ready to install the Arduino hardware.

Step 8: Installing the 16 Pins to Your LCD 16X2

In this step, you are going to cut one 16-pin of the Connector Unshrouded Header 40 Position 2.54mm Straight Thru-Hole so that you can install it into the holes of your LCD 16x2. That is, cut one 16-pin of the Connector Unshrouded Header 40 Position 2.54mm Straight Thru-Hole to install in your LCD 16x2.

Step 9: Visualizing Where Doing the Connections

In this step, you are going to visualize each connection between the PCB and the LCD 16x2 by inserting the LCD pins into the PCB temporarily according to the photo so that you know exactly what you are going to connect and from where.. That is, insert the LCD pins into the PCB temporarily so that you can visualize where you are going to do each connection between the LCD and the PCB.

Step 10: Preparing the Connections to Your LCD 16X2

Take away the LCD 16x2 from the PCB and begin doing the connections in the PCB considering the photo attached in this step to avoid errors. That is, doing the connections that you can see in the photo attached, you can continue without problem to the next step.

Step 11: Preparing the Connections to Both Pot of 10K

In this step, you are going to do the connections in the PCB to prepare the place of the installation of both potentiometers of 10K later.. That is, let circuit be ready to receive both potentiometers of 10K, doing the connections according to photo attached.

Step 12: Installing Both Pots of 10K

In this step, you are going to install both pots of 10K the contrast pot and the voltage regulator in the PCB and using the place prepared for it. That is, install the potentiometers in the PCB using the place prepared for it.

Step 13: Installing the LCD 16X2

In this step, you are going to install perfectly the LCD 16X2 on your PCB. That is, note that you already prepared previously the place where you are going to install the LCD 16X2.

Step 14: Installing the Connecting Pins on Arduino Mega PCB

In this step, you are going to install a few pins like interface between the Arduino hardware and the circuit that you are constructing. That is, prepare 4 pieces of pins from your 40-pin header straight male, cutting one piece of 8 pins, two piece of 6 pins, and one piece of 3 pins. Those pins should be installed as they are seen in the photo attached.

Step 15: Connecting the BNC Connector to Arduino Mega PCB

In this step, you are going to take the circuit completed in the step #14 and the part completed in the step #7 so that you can join them connecting the wires drawn from the BNC connector to A0 and GND. That is, connect the yellow wire to A0 and the blue one to GND

Step 16: A Look of the Whole Project Completed

In this step, you are going to mount the circuit completed on the Arduino hardware previously installed into the Arduino enclosure. That is, insert the circuit completed in the step #15 to mount it on the Arduino hardware installed before into the Arduino enclosure.

Step 17: Upload the Arduino Code at Pastebin Website

In this step, you can upload the code at: http://pastebin.com/CDy28N55

Once uploaded the code, you can connect the battery clip and battery and using also your Alligator Clip-to-BNC Cable,

<p>If you want to better this project, you can modify it by doing changes in its code from: http://pastebin.com/CDy28N55</p>
<p>This project can also be seen in Jameco Electronics at:</p><p>http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&amp;storeId=10001&amp;productId=2240067&amp;catalogId=10001&amp;CID=CLO</p>
<p>If you want to upload the code for this project, you need to visit the next site:</p><p>http://pastebin.com/CDy28N55</p>
<p>LEATHERWORKING classes are now free in this site.</p>
<p>BREAD classes are now free in this site.</p>
<p>PHOTOGRAPHY classes are now free in this site.</p>
<p>CANNING PRESERVING classes are now free in this site.</p>
<p>WOODWORKING classes are now free in this site.</p>
<p>GLUE classes are now free in this site.</p>
<p>CONCRETE classes are now free in this site.</p>
<p>MEAT classes are now free in this site.</p>
<p>WEARABLE ELECTRONICS classes are now free in this site.</p>
<p>RASPBERRY PI classes are now free in this site.</p>
<p>LASER CUTTING classes are now free in this site.</p>
<p>LAMPS classes are now free in this site.</p>
<p>CNC classes are now free in this site.</p>
<p>3D PRINTING classes are now free in this site.</p>
<p>Robots classes are now free in this site.</p>
<p>Electronic classes are now free in this site.</p>
<p>Arduino classes are now free in this site.</p>
<p>LEDS &amp; LIGHTING classes are now free in this site.</p>
<p>Measuring voltage is critical in electronic projects.</p>
<p>Fritzing is a good option so that you can draw your projects.</p>
<p>Developing your own code is always an important effort.</p>
<p>This project was very interesting when I was developing it.</p>
<p>This project is for you.</p>
<p>Thank you for viewing this project.</p>
<p>I enjoyed developing this project.</p>
<p>This is a great project to measure the voltage of the potentiometer but I would advise strongly against using this a power supply. Your limited to the tiny current provided by your 9V battery. But also you have the positive output connected to A0, which is configured as an input. This is a good way to fry your Arduino. And lastly the current max for any IO pin is 20mA (40mA abs. max). Just a few caveats. </p>
<p>Than you!</p>
<p>First of all, you get full marks for your Instructables write-up. Lots of good detail, step-by-step instructions, and very good photos. You obviously put in a lot of time and effort, so &quot;well done!&quot;. </p><p>However, this design is simply NOT useful as a power supply. You are measuring and displaying the voltage on the wiper of a 10K pot between 5V and ground, but there is no attempt to regulate the &quot;output voltage&quot;, or control in it any way that a power supply would. Also, with that 10K pot, the output impedance will vary with the pot setting, and will be high enough such that the output voltage will be dragged down by almost any circuit you connect this to.</p><p>You should change the title of this project to something like &quot;Use an Arduino to Measure Potentiometer Voltage&quot;, or something like that. </p>
<p>Thank you!</p>
<p>Manipulating physical variables is a important challenge for beginning an Arduino project.</p>

About This Instructable

4,060views

56favorites

License:

More by braulio777:4-Digit Yellow Binary Counter 2-Digit Green Binary Counter Green Binary Counter 
Add instructable to: