STM32 With LCD 2004 + I2C, Can't Communicate - Stack Overflow
Có thể bạn quan tâm
-
- Home
- Questions
- Tags
- Users
- Companies
- Labs
- Jobs
- Discussions
- Collectives
-
Communities for your favorite technologies. Explore all Collectives
- Teams
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Try Teams for free Explore Teams - Teams
-
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsGet early access and see previews of new features.
Learn more about Labs STM32 with LCD 2004 + I2C, can't communicate Ask Question Asked 2 years, 9 months ago Modified 2 years, 8 months ago Viewed 893 times 0I am using a STM32F030F4P6 MCU and a LCD 2004 with PCF8574T I2C display driver. I have tried the library from this tutorial: https://controllerstech.com/interface-lcd-16x2-with-stm32-without-i2c/. I have found a datasheet for the PCF8574T device, but there are no commands specified in there. I am quite new in the field, but I already communicated with other devices over I2C and SPI and got them to work. Can somebody tell me what I am doing wrong, or at least show me where to get a datasheet with commands for the device? I am sorry in advance if this is a noob question.
Share Improve this question Follow edited Apr 3, 2022 at 9:40 Wolfiwolf asked Apr 2, 2022 at 17:29 WolfiwolfWolfiwolf 791 silver badge4 bronze badges 2- "Can't communicate" doesn't describe anything problem in meaningful way. PCF8574T is the I2C chip that convert i2c serial data to 8-bit data. It is not the display. For display, you need to search "LCD 2004 datasheet". – hcheung Commented Apr 4, 2022 at 2:30
- @hcheung thank you for the info! I thought that it is a mcu that controls the diplay. I am gonna try and make it work with the new information. As I said before, I am still a noob! – Wolfiwolf Commented Apr 5, 2022 at 9:58
1 Answer
Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 1- As already mentioned, PCF8574T - is an i2c expander. So you need to write a driver which manipulates data pins on PCF8574T in way described in tutorial you found.
- Check the arduino code for this type of LCD. It may save your time/ https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
- If you have an Arduino board, you can test your LCD according this tutorial https://create.arduino.cc/projecthub/Arnov_Sharma_makes/lcd-i2c-tutorial-664e5a Nice to know that your device still alive before debug the code.
- I tried it with the arduino and it worked. I figured out that the problem was, that 3.3V for logic was not enough dispite the datasheet information which said it was. – Wolfiwolf Commented Apr 18, 2022 at 23:14
- It is very weird. May be you have a counterfit part. If the problem is in the logic levels the device still could be bring to work via setting GPIO output mode to open drain and using external pullup resistors about 1k. This method has some disadvantages and couldn't be recomended for serial production. Just to test. Another vay to test - power an arduino only from 3.3V. The device won't work if the problem in logic levels. But if the LCD powered from 3.3V in some cases you need provide a negative voltage to the contrast pin to get it work. – zolokonst Commented Apr 20, 2022 at 6:44
- Maybe, i bought a 3.3V to 5v logic converter, and it now works with the stm32. Thanks for the information! – Wolfiwolf Commented Apr 21, 2022 at 9:06
Your Answer
Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Draft saved Draft discardedSign up or log in
Sign up using Google Sign up using Email and Password SubmitPost as a guest
Name EmailRequired, but never shown
Post Your Answer DiscardBy clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Not the answer you're looking for? Browse other questions tagged
or ask your own question.- The Overflow Blog
- Developers want more, more, more: the 2024 results from Stack Overflow’s...
- How AI apps are like Google Search
- Featured on Meta
- The December 2024 Community Asks Sprint has been moved to March 2025 (and...
- Stack Overflow Jobs is expanding to more countries
Related
0 How to program an Arduino with I2C for a liquid crystal LCD screen? 4 STM32F4 FSMC with TFT LCD 1 STM32F4 HAL I2C only sends Address 1 Getting text to show up on an I2C LCD 0 STM32L476 LCD configuration and display 1 ili9341 Not Working on STM32f4 discovery 0 f3discovery: trying to use an lcd screen 1602 with an I2C module 0 AVR Atmega168 I2C LCD does not want to initialize 3 STM32F103C8T6 can not communicate with HD44780 1 Sending Data From TI TM4C123GH6PM to an HD4478 LCD with a PCF8574T I2C BackpackHot Network Questions
- Exercises at the end of each section
- Recreating lab integrator result in LTspice simulation
- References to "corn" in translations of the Jiuzhang Suanshu
- Why no bicycles have the rear sprocket OUTSIDE, of the frame spacing? (Single speed)
- Equivalent GLM formulation of Wood's lactation curve
- Difference on and down
- Can an intelligent agent with aims desire to modify itself to change those aims?
- Did a peaceful reunification of a separatist state ever happen?
- Are the lines intersecting in 3D?
- Handsome numbers (numbers which have a pandigital partition)
- What did "tag tearing" mean in 1924?
- Happy 2025! This math equation is finally true. When is the next time it will be true?
- What religious significance does the fine tuning argument have?
- Improving calculation speed of root finding
- No other coauthors, just me and my supervisors—is this normal?
- Can game companies detect pirated games and sue if the user obtained the games using legitimate ways in other platforms?
- Does the Nondetection 10 feet limit only apply to objects?
- Is humanity a "genetic algorithm"?
- Adding neutral/ bus bar space on a GE FS 334341
- Odd-looking coordinate system
- How do I create a government in my novel?
- How can I tackle this probability question on deck of cards with replacement?
- How does one call two triangles that are image by a rotation one each other?
- Does it matter which high-Interest savings option I chose?
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Từ khóa » Thư Viện I2c Lcd Stm32
-
Lập Trình STM32 Với LCD I2C Sử Dụng Module PCF8574
-
Giao Tiếp I2C LCD – Thư Viện Standard – Giải Thích Chi Tiết
-
Giao Tiếp STM32F103C8T6 Với LCD 16×2 Thông Qua Moudle I2C
-
Giao Tiếp I2C LCD - Thư Viện Standard - Giải Thích Chi Tiết - YouTube
-
Học STM32 F1 - Giao Tiếp I2C (phần 1- Viết Thư Viện) | Thông Tin ...
-
BÀI 12: I2C VỚI STM32F1. - Chia Sẻ Các Vấn đề điện Tử
-
I2C LCD Giao Tiếp STM32, I2C LCD PCF8574 + LCD1602 + STM
-
Interface LCD 16×2 Via I2C With STM32 - Controllerstech
-
STM32F1: Giao Tiếp I2C Với STM32 - DevIOT
-
Học ARM - Tiếp Tục Quay Lại Bài Hiển Thị LCD Với STM32,... | Facebook
-
Xin Thư Viện LCD - Diễn đàn Cơ điện Tử
-
LiquidCrystal I2C - Arduino Library List