Hey, this is my first time jiggling around with electric components and i basically have zero idea.. I want to use a potentiometer to dim 6 x 12V leds.. i consulted an electrician and he gave me a slight overview of the circuit: use an Arduino board, 12V dc power supply, tip31 bipolar npn transistor, potentiometer (not sure which one) and the LEDs
am not sure of how to connect the circuit and what codes to input into the arduino..
Why do you want to use a potentiometer? They are becoming obsolete; wall dimmers use "up" and "down" buttons and other functions to allow automatic smooth fading, remote control, timer programming and such.
OKs so that's 120mA per led, 720mA in total. No problem at all.
Hardly seems a worthy use of an Arduino, you could do it with a 555 timer chip. Unless its the learning experience you are after. In which case you could prototype it on the Arduino and then load the sketch into an ATtiny45/85 for the final version.
OK, but how does the 555 timer work? do you connect the mains to the chip board and LEDs on the other side? and how can I use a potentiometer to adjust the brightness? for the project am working on, I need like a switch that can adjust the brightness and has a knob on it as the knob is going to be attached to a rig provided by university..
Decades before Arduino, the amateur electronics enthusiast's chip of choice for many projects was the 555 timer. It wasn't a microcontroller, but you could use it for making sounds, flashing lights, timing all sorts of things, including pwm.
I am very suspicious of a component labelled "107D" which bears an uncanny resemblance to a capacitor. (The black thing is clearly a bridge rectifier.) Just what "dimmable" means in this context is unclear, but I strongly suspect they do not mean by PWM.
Build that first circuit on the link I gave you. You won't need diode D3 as you load is not reactive like a motor is. See the note lower down about using germanium diodes to get 1% to 99% dimming.