![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi guys!
I have a problem and i can't understand what kind of problem is that. I made a power supply for my bench. I made two channels 0-30V and one channel -30V-0V. Also i put 0.1ohm resistors to measure the current of all three channels. Then i decided to display the voltages and the currents via 2x20 LCD controlled by a PIC16F877. I transformed the voltages and the currents with op amplifiers to bring them at 5V maximum at the six analog pins of the uC. I wrote the program, i burned the pic, i turned the switch on and the problem is that the LCD displays nothing except if i put my fingers on the pins DB4, DB5, DB6, DB7. Only then the LCD displays and working as i programmed the pic. I drive the LCD with four pins data and not with the eight. 4Mhz clock for the pic. It is the first time i saw this kind of problem at pic-LCD's. Is the problem to the connector? Cold soldering perhaps? Please help! |
|
|
|
|
|
|
(permalink) |
|
Do you have the LCD's 'contrast' pin connected.?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
|
Yes, it's all ok. I played with the contrast and the light.
|
|
|
|
|
|
|
(permalink) |
|
Disconnect everything except the pic, the LCD and a 5V supply. Then try to get it to display "Hello World!". If it doesn't work then post your code and a schematic and we should be able to help you get it working. Then you can go on to other things.
Mike. |
|
|
|
|
|
|
(permalink) |
|
Ok guys, thanks. I'll search it more and i'll tell you the results.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
You say you can change the contrast of the LCD pixels using the pot OK. When you hold your fingers on the pins it adds capacitance and the LCD pulse edges are degraded, that is, the rise/fall times are increased. Can you increase the LCD 'enable line' time periods, [within the program] as a test,?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) |
|
Ok, i made a lot of projects with this type of program and are working fine. I'll test this. I played a little with the voltage and current at the contrast and at the supply and worked. I'll try to make it perfect.
Thanks! |
|
|
|
|
|
|
(permalink) |
|
I built the circuit on a raster and it works perfect. So, the problem i supposed is at the pcb. But i can't believe i'm telling this, because there is no shortcircuit, there is no opencircuit after a detailed test. Also i observed that when i'm placing far the crystal with the two capacitors, the oscilator circuit, it failed for the most times(at the raster). But at the pcb the oscilator circuit is only 2cm far from the uC. There is nothing else connected to the uC. Here is a foto of the pcb. The two wires are for 5V LCD supply. Rather i'll make another pcb to test it. Thanks all for your thoughts.
|
|
|
|
|
|
|
(permalink) |
|
Here are the fotos
|
|
|
|
|
|
|
(permalink) |
|
please put a 0.1uF MLC cap across Vdd and Vss close to the PIC chip. I didn't fine one. perhaps this might help to normalize
__________________
Regards, Sarma. |
|
|
|
|
|
|
(permalink) |
|
It doesn't appear all the VDD & VSS pins are connected. You need to connect them all.
|
|
|
|
|
|
|
(permalink) |
|
Congrats Bill,You got it,
Pins 11 and 12 not used .
__________________
Regards, Sarma. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
Regards, Sarma. Last edited by mvs sarma; 5th April 2008 at 05:39 PM. |
||
|
|
|
|
|
(permalink) |
|
The 0.1uf caps are important enough you could buy IC sockets with 0.1uf caps built in for TTL ICs.
I wish simulators would complain if you didn't have them. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| ICL7106 and LCD problem | mabauti | General Electronics Chat | 14 | 15th April 2008 04:28 AM |
| in trouble with LCD (JHD162A) | smileguitar | Micro Controllers | 54 | 14th April 2008 08:17 AM |
| Problem of signal for an ECG with INA114 | ninjasam | Electronic Projects Design/Ideas/Reviews | 4 | 28th January 2008 03:29 PM |
| 16x2 LCD module problem | Futterama | Electronic Projects Design/Ideas/Reviews | 7 | 11th January 2008 09:00 PM |
| strange color camera problem | schrodingerscat | Electronic Projects Design/Ideas/Reviews | 5 | 4th October 2003 07:25 PM |