Connect three wires to the Arduino board.
This allows it to regulate the voltage it puts out to the Arduino. In this example, the potmeter is used as a so called voltage divider.
#Fritzing change resistor value code
See the next page for the Arduino code required for this setup. The values are then used to control the blinking rate of an LED. Use a 10KOhm resistor for R1, and a 560Ohm one for R2. In this project, potentiometer values are read in through an Analog In pin. We covered basics of electron flow, conductivity, and defined voltage, current, and resistance. A potentiometer is a simple knob that provides a variable resistance. Links to the DMM, Power Supply, and Breadboard resources are in the Introduction Section. where the value of the capacitor can change to measure something (like. We substituted the battery of our initial circuit to use a power supply (PSU), we looked at the voltage, current, and resistance functions on the digital multimeter (DMM), as well as breadboarding our circuits. Unlike resistors, capacitors do not have color codes, so measuring their size is. TLC5947 datasheet for details on resistor-to-current values. Schematic Diagram¶ Code¶ After finishing the circuit connection, connect the Mega2560 board to the computer. but you can solder a thru-hole resistor over it if youd like to change that value. Connect the shorter pin (cathode) of the LED to GND. Attach one side of the resistor to the digital pin 9 and the longer pin (anode) of the LED to the other side of the resistor. The data sheet talks about 5k for the resistor, then uses 4k7 in the reference circuits. 10k is a bit much, but for a single sensor should still work. We spent the class going over the tools needed to succeed in class. Fritzing Circuit¶ In this example, we use digital pin 9 to drive the LED. Recommended value is indeed 4k7 (interesting you don't have that very common value, but the less common 5k1) but it's not that critical.