![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hello! Is it possible to use the PWM output of a PIC to controll the contrast of an LCD? (into pin 3 of lcd) Thank you! | |
| |
| | (permalink) | |
| Quote:
Personally I've never tried it, I'll be interested to hear how you get on, particularly if you need a filter or not. I'm sure you'll be able to find something about it on the net, maybe even in the MicroChip application notes somewhere?. | ||
| |
| | (permalink) |
| Finally I got my LCD to work :þ Had some problems to get it to work with a 887, so I swiched to 628. Now it works. (yes, your tutorials (: ) Now I will start experimenting with the contrast. | |
| |
| | (permalink) |
| OK my initial tests show that filtering is definately required. Here are som pics. There is some distortion that doesn't show well on these pictures. | |
| |
| | (permalink) |
| | |
| |
| | (permalink) |
| That's pretty cool. 8) What was the PWM rate for your contrast signal? And what kind of filtering did you have to apply? | |
| |
| | (permalink) |
| 100% is 100% PWM and 0% is 0% PWM, so actually it should say 'PWM' instead of 'Contrast' I did some experimenting. Used a 330ohm and 10µF as a lowpass filter. It showed some distortion on higher PWMs. After increasing the capacitor to 100µF the distortion dissapeared. So a capacitor between 10µ and 100µ would be optimal. | |
| |
| | (permalink) |
| Your thoughts? (nigel? | |
| |
| | (permalink) | |
| Quote:
It looks like you have the situation well under control, from your tests it looks like a filter is essential. | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| Umm... YES! as you can see from the pictures (without the filter that is). Or am I not still understanding your queston? | |
| |
| | (permalink) |
| That's a pretty cool enhancement you made. Never thought of using PWM for the contrast before. | |
| |
| | (permalink) | |
| Quote:
| ||
| |