Can code be a substitute for a resistor? (noob alert!)


i'm brand new arduino, coding, , electronics in general.  i'm reading arduino dummies, , trying understand each step before reading next.

i understand led needs low voltage, , resistors used accomplish this.  if understand correctly, can send lower voltage pin lowering analogwrite value.  if value of 255 sends full power led, wouldn't value of 100 provide correct voltage without resistor?

sure, use resistor, want able as possible code.  plus, if code can substitute resistor, have unlimited supply of resistors choose from, , don't need soldering! :)

quote
if value of 255 sends full power led, wouldn't value of 100 provide correct voltage without resistor?

no. purpose of resistor limit amount of current led tries draw, not lower voltage led.


Arduino Forum > Using Arduino > General Electronics > Can code be a substitute for a resistor? (noob alert!)


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support