Hi good day! Im very much a newbie in Arduino and I have an assignment.
I made some few codes but when i tried it on, it didn't worked properly. Can somebody help me construct the codes? Its about controlling the brightness of the led using potentiometer but in a different manner since I'm using a transistor.Here are the parameters:
The circuit must have a potentiometer to control the brightness, 4 transistors acting as a switch, 2 leds connected in 200 ohms resistors.The algorithm must be like this:
When I'll turn the knob of the potentiometer, the brightness of the led must adjust also whether increase or decrease the brightness but at the same time the two led must be blinking alternately. This is just a test for my single phase ac motor speed control assignment.
Here is the diagram:
The principle must be like this. Q1 and Q4 must be paired. Q3 and Q2 must be paired. Instead of using a motor just like the image above, im using a led connected in resistor instead.
The principle is just like this also:http://youtu.be/yJEBdPKUVIo