Hi I'm last minute taking over a project, and I'm struggle to find the correct circuit to dim a dimmable ballast and TL fluorescent lamp ([Philips HF-R 258 TL-D EII 220-240V][1])
The ballast has a 0-10v dim input that I'm controlling with a PWM through an opamp LM385.
The code below works with a led and makes the TL lamp go on and off. But does not really dim it.
I'm wondering how I could improve the circuit. (Add a better ADC chip? Wire it before the OPAMP?)
Or am I overlooking something and is there another reason why this doesn't work?
This is the current circuit:
[![Fritzing_1][2]][2]
[![Schematic][3]][3]
Simple test code:
//pwm from pin 5 slowly increases,
//then decreases repeatedly
//Initializing LED Pin
int led_pin = 5;
void setup() {
//Declaring LED pin as output
pinMode(led_pin, OUTPUT);
}
void loop() {
//Fading the LED
for(int i=0; i<255; i++){
analogWrite(led_pin, i);
delay(10000);
}
for(int i=255; i>0; i--){
analogWrite(led_pin, i);
delay(10000);
}
}
[1]: https://www.lighting.philips.be/prof/vo ... EU/product
[2]: https://i.stack.imgur.com/VbqvG.png
[3]: https://i.stack.imgur.com/yjsBu.png
Circuit TL Dimmable Fluorescent light
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
Please be positive and constructive with your questions and comments.