Well, i tried to test using the circuit that you posted here. Now the LED is turning ON but the issue is the DTR signal is not toggling as it was before. the voltage level is staying at around -12mV. Can the serial port be damaged due to which i am facing this problem???
Also, about the voltage to be sent out to LED according to the LDR output...
I am designing the PWM for three levels like 10%, 50% and 100% and then sending out the voltage to the LED so that issue is solved too.
Well, can you briefly explain me whats happening with the LED drive circuit when DTR goes high and low. I just want to cross check if i am taking it in the right sense...
Now the LED is turning ON but the issue is the DTR signal is not toggling as it was before. the voltage level is staying at around -12mV. Can the serial port be damaged due to which i am facing this problem??? With a DTR voltage of only -12mV the transistor cannot be ON, so the LED will not be lit.???
Well, can you briefly explain me whats happening with the LED drive circuit when DTR goes high and low. I just want to cross check if i am taking it in the right sense... You said earlier that the DTR voltage on the pin switched from +10.6V to -11V
When the voltage is +10.6 the transistor and LED are ON, when -11V the transistor and LED are OFF.
hi,
That -12mV signal on DTR dosnt sound correct.
Do you have the 0V/Common of the external psu connected to pin#5 [0V] of the PC's 9pin serial connector.??? it should be.
hi,
That -12mV signal on DTR dosnt sound correct.
Do you have the 0V/Common of the external psu connected to pin#5 [0V] of the PC's 9pin serial connector.??? it should be.
i did connect all the pins properly but dnt know whats wrong..it was working fine the other day..my proff said to change the serial connector, for which i have to wait for uni to open on monday
i did connect all the pins properly but dnt know whats wrong..it was working fine the other day..my proff said to change the serial connector, for which i have to wait for uni to open on monday
i could finally get it...there was something wrong with the serial port connector. I changed the port connector and now its working. Even the code for adjusting the brightness is working fine.
Now started joining the bits and pieces of code together and trying to solve the errors.
Do you know how we can run two concurrent processes at a time??
Like i have my LDR sensor who outputs the data very fast and my Serial Port is sending out data slow. So what should i do in such a case....
i could finally get it...there was something wrong with the serial port connector. I changed the port connector and now its working. Even the code for adjusting the brightness is working fine.
Now started joining the bits and pieces of code together and trying to solve the errors.
Do you know how we can run two concurrent processes at a time??
Like i have my LDR sensor who outputs the data very fast and my Serial Port is sending out data slow. So what should i do in such a case....
my ADC is converting data with 2ms conversion time and i am just toggling my DTR pin. the delay of the toggling is designed according to the condition:
Ton + Toff = 10ms.
i am not getting errors while runing the code ..its just that if keep ADC conversion time same, i can't see the LED brightness chnaging since its too fast....if i slow down the ADC conversion time by adjusting the delay...the process becomes slow....
my ADC is converting data with 2ms conversion time and i am just toggling my DTR pin. the delay of the toggling is designed according to the condition:
Ton + Toff = 10ms.
i am not getting errors while runing the code ..its just that if keep ADC conversion time same, i can't see the LED brightness chnaging since its too fast....if i slow down the ADC conversion time by adjusting the delay...the process becomes slow....