Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

[HELP] I2C LCD with STM32F4-07VG and CooCox

Status
Not open for further replies.

Mugle_ENSPARTAN

New Member
Hello all. I have a problem with my lcd. I use it on our robot to see a parameters on robot with STM32F4-07VG board.

I used lcd 4x20 with i2c wiring and pcf8574 module and also coocox to program it with library from www.stm32f4-discovery.net

The problem is, the lcd is often send the random data (not like there isn't same the baudrate), the text is running random from up to bottom. So i have to reset the board so the lcd will display right text and static text (not running text).

I dont know there is problem with my program or my wiring lcd. Because the case is randomly happen. Sometimes it's happen when the robot have a tremble, sometimes it's happen when the robot is motionless.

Maybe someone know about this problem and can explain to me, thanks :)

*video/pic when the lcd error is come afterward
 
Last edited:
My first thought would be too long connecting wires, causing either voltage drop or transmission line type effects and corrupting the data.

How long are the wires and (if more than a few inches) how thick and what physical arrangement?

Or it could just be a faulty display or bad connection...
 
Are you able to reduce the speed of the I²C and see if the problem goes away?

Mike.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top