Changes

Jump to navigation Jump to search
2,046 bytes added ,  4 years ago
no edit summary
Line 222: Line 222:  
==== Input wires (stranded wires) ====
 
==== Input wires (stranded wires) ====
 
The Input wires connect the external components to the screw terminals. The input power jack connects from the center terminal (power) to one end of the power switch.  The other end of the power switch connects to the VIN of the Arduino system. The ground of the power jack must be connected to the GND of the Arduino system. The potentiometers should have their "low-side" tied together and then connected to the Arduino GND. They should also have their "high-side" tied together and then connected to the Arduino 5V regulated power. The wiper of each potentiometer should then be connected to A0 and A1 respectively. If hooked up "correctly," when the potentiometer is all the way "on," the wiper should be connected to the "high" side. Now, what constitutes "on" is left up to you. If these are hooked up incorrectly, then the wiper can be inverted in software as a simple fix.
 
The Input wires connect the external components to the screw terminals. The input power jack connects from the center terminal (power) to one end of the power switch.  The other end of the power switch connects to the VIN of the Arduino system. The ground of the power jack must be connected to the GND of the Arduino system. The potentiometers should have their "low-side" tied together and then connected to the Arduino GND. They should also have their "high-side" tied together and then connected to the Arduino 5V regulated power. The wiper of each potentiometer should then be connected to A0 and A1 respectively. If hooked up "correctly," when the potentiometer is all the way "on," the wiper should be connected to the "high" side. Now, what constitutes "on" is left up to you. If these are hooked up incorrectly, then the wiper can be inverted in software as a simple fix.
 +
 +
HOW TO USE HEAT SHRINK
    
==== Output wires (solid-core wires) ====
 
==== Output wires (solid-core wires) ====
 
The output system serves to drive the LED lights and consists of the internal wires on the shield. These lights will be connected to a 4-pin terminal in the center of your board. This terminal has power (white or black wire) and then wires for green, red, and blue signals. The power comes directly from the VIN pin ('''not''' the 5V pin). Each of the green, red, and blue signals is connected to a "low-side" MOSFET switch. The source of the MOSFET's are connected to GND, the drain is connected to the appropriate pin on the 4-pin header, and the gates are connected to pins 3 (green), 10 (red), and 11 (blue).  
 
The output system serves to drive the LED lights and consists of the internal wires on the shield. These lights will be connected to a 4-pin terminal in the center of your board. This terminal has power (white or black wire) and then wires for green, red, and blue signals. The power comes directly from the VIN pin ('''not''' the 5V pin). Each of the green, red, and blue signals is connected to a "low-side" MOSFET switch. The source of the MOSFET's are connected to GND, the drain is connected to the appropriate pin on the 4-pin header, and the gates are connected to pins 3 (green), 10 (red), and 11 (blue).  
   −
==Program the Arduino ==
+
HOW TO SOLDER ON A PROTOBOARD
   −
=== Test the Arduino IDE using standard programs ===
+
=== Testing the shield wiring ===
 +
'''BEFORE''' powering anything up, or connecting the shield to the Arduino, use a multimeter to validate that the circuit has been wired properly. Test every connection for continuity. It is also good to check nearby pins to ensure that there are no shorts. After testing every connection, plug the board into the Arduino, and turn the power on. Ensure that the Arduino is getting power (the power led comes on). Use the DMM to test the voltages around the system. Make sure that the power wire at the LED Strip terminal is getting the same voltage that is coming out of the power supply. Make sure that the potentiometers are getting 5V. If all of this is correct, you can proceed. Turn off the power, and remove the shield from the Arduino.
   −
=== Program the Arduino to read in the A/D values ===
+
=== Programming  the Arduino ===
 +
There are a lot of resources on the web about how to Arduino. Let's start with the official Arduino Guide page for the [https://www.arduino.cc/en/Guide/ArduinoUno Arduino UNO]. If you are using your own system, install the Arduino IDE. If you are on a school system, bring up the Arduino IDE. You will need to make sure that your Arduino is connected via USB to the computer.
 +
* When you are ready, scroll down the Arduino Guide page to the "Open your first sketch" section and attempt to get your Arduino to blink.
   −
Verify using the printouts
+
When this works, it is time to move on and test the proto-shield. '''POWER DOWN THE SYSTEM BY UNPLUGGING THE POWER'''. Insert the proto-shield to the Arduino. Then power the system back up. You should see the "blink" program working. The last program you wrote will always run automatically when the system is reset.
 +
* Open up the AnalogInput Example and use it to test one of your potentiometers. You will need to understand the code to know what you are looking for - but a quick google on the aspects of the code that you don't understand should get you there.
 +
* Change the code to test your other potentiometer.
   −
=== Program the Arduino ===
+
At this point we should test the LED lights (make sure they are plugged in). Prior to the setup function in your code, add in the following lines:
 +
<code><pre>
 +
#define REDPIN (10)
 +
#define GREENPIN (3)
 +
#define BLUEPIN (11)
 +
</pre></code>

Navigation menu