Electronics & Tools


Here is a circuit I built during lab time to have a high and low beam LED.

High/Low LED circuit

Return to my home page.


Sketch of the "high/low" LED circuit:

High/low circuit drawing

On low beam the voltage across resistor R2 is 1.34vdc. Since V=IR,and I=V/R, therefore, 1.34vdc/1kohms= .00134 amps or 1.34mA is the amperage through both resistor R1 and the LED on low beam.

When the switch is pressed the voltage across R2 is 1.08vdc. Therefore, on high beam the amperage through R1 is: 1.08vdc/1kohms= .00108 amps or 1.08mA. However, the amperage through the LED would be higher due to the inclusion of R1 in the circuit when the switch is closed. The total resistance is: 1/R1 + 1/R2= 1/total R. So, 1/470ohms+1/1kohms=319ohms. Therefore, on high the LED current(which is the same as the total circuit current) is V/R= 1.08vdc(measured)/319ohms= .00339 amps or 3.39mA.

Voltage readings across the LED

shown on TinkerCAD. TinkerCAD circuit

This circuit changes the brightness of the LED by having two possible voltages across the LED terminals. The voltage is changed by closing the pushbutton switch. This created a second parallel resistor in the circuit which lowers the total resistance to ground for the LED, causing the voltage across the LED to increase from 1.9vdc on low beam to 2.1vdc on high beam. The low resistor(which is always in the circuit is a 1k ohms. The resistor that is engaged by the switch for high beam operation is 470 ohms.


Microcontroller Analog in (ADC) to measure the voltage of a potentiometer:


I could use this program/circuit to control the hotdog cooker solid state relay, but I plan on sticking to the four descrete duty cycles. If I need more digital inputs to operate the stepper motor (for the safety cover) I could reconsider the control of the solid state relay, and this analog input setup could be an option. The blink rate in the above video is with the 10k ohm potentiometer set at the mid-point. The "blink range" looked like it would work well with the hotdog cooker. However I could easily adjust the duty cycle range with resistors in series with the potentiometer or a pot with a lower resistance.

This is a video of the high/low circuit in action!



This video is of a circuit built with a potentiometer and a multi-color LED that is in our kit. The LED's color fades from blue to purple to red as the potentiometer varies the voltage to the LED; as the voltage is decreasing on the "red" input pin it is simultaniously increasing on the "blue" input pin. The center pin of the potentiometer is connected to +3.3vdc of the arduino board.

Three color diode "mood light" sketch:

These RGB LEDs are pretty cool! I think I'm going to figure out a way to integrate one into my final project.

RGB Led circuit sketch

Random Notes:


Since the last Zoom meeting I finally (with Prof. Hart's help) got my website up on the class page!! I spent a lot of time trying to get my Metro board loaded/working but have not been able to get it going. On a positive note, I spent some time playing with some resistors/LEDs making a couple circuits that came to mind. I noticed that some LEDs in the kit appear to need different ohm resitors in series with them to produce approximately the same amount of light as other LEDs. I also added some additional items to my website including a "Random Things Steve Likes" link that I hope to add to as time allows. I have thought a few details I'd like to use on the hotdog cooker: I'm hoping to bend a sheet of plexi-glass this weekend for the "safety shield", which I've never attempted before! Also, while looking ahead in the S-12 page I noticed we will be learning about "pulse width modulation" which I think will work to control the solid state relay in my hotdog electrocution device.



random LEDs!!