Menu

sd1306 0,42'' 0,69" small displays are not working

Help
JANIS
2024-12-02
2024-12-05
  • JANIS

    JANIS - 2024-12-02

    Hello World!
    I need to use a miniature display, I chose SD1306 0.42 and 0.69 inches displays using I2C interface. I started of course with a simple test program (from demo) to test the displays. But they only show dots, do not work. When connecting 0.91 and 0.96 inches displays - they work ok. Where could the problem be?

     
  • Anobium

    Anobium - 2024-12-03

    What does I2C Discovery show? Does it show the devices?

    I use these all the time. So, what chip? What is the setup?

     
  • JANIS

    JANIS - 2024-12-03

    Thanks! I added the code. I am confused why 0.91 and 0.96 inch displays work ok, but smaller ones don't.
    How I can test discovery I2C?

     
    • Anobium

      Anobium - 2024-12-03

      In demo folder... Vendor_Boards\Microchip_Low_Pin_Count_Demo_Board\PICKit2_Board\16f18426\15_i2c_Discovery.gcb

      This means the I2c was tested - that is good news.

      @ALL. Always, always use I2CDiscovery. Use a software version first, the use hardware version. Why? Software will check the circuit - no pps etc etc. You must power cycle the chip if you have tried using PPS before the use of the software I2C.

       
  • JANIS

    JANIS - 2024-12-03

    This project is designed to monitor the operation of the HALDEX clutch. VW group cars do not have any built-in control, no alarm notifications about the Haldex clutch not working. You drive through mud and sand, and suddenly you find that the rear wheels are not driving, when it is already too late. I made a similar project for the Skoda Yeti, which is published here. The VW T6 has less space to install a display, so need 0.42 inches. First I need for the display working.

     
    • Anobium

      Anobium - 2024-12-03

      There is no point is investigating until I2C discovery works. As that will yield the result.

       
  • JANIS

    JANIS - 2024-12-04

    Thanks Anobium! I suspect that I will not be able to start these displays with I2C. Because when trying this discovery test, the PC terminal screen shows scribbles. 'The fact that the PIC I2C communication with the display is working is clear, only the letters are not visible, but many dots. After the GLCDCLS command, the screen goes dark. As I said, the 0.96 inches screen works. I ordered the small display 0.42'' with SPI interface. Maybe it will work. There are no DEMO examples for such a case with SSD1306, but in the Help there is a description of how to start it, the settings are as follows:

      #define S4Wire_DATA
    
        #define MOSI_SSD1306 PortB.1
        #define SCK_SSD1306  PortB.2
        #define DC_SSD1306   PortB.3
        #define CS_SSD1306   PortB.4
        #define RES_SSD1306  PortB.5
    

    Right, or something else?

    The second problem - I just installed GC Studio and started using it (legacy mode of course :) ), but automatic Flash does not possible because it does not find my Pickit3+, a error appears:

    Error: Programmer executable not found - C:\GCstudio\GCBASIC..\PICKitPlus\PICKitCommandline.exe

    I don't know where to set what :(

     
    • Anobium

      Anobium - 2024-12-04

      Many issues here.

      Do you want to get on a call to sort? I am available on a SIP phone, or any of the popular channels.

      I would like a photo of your GLCD. It may not be I2C device.
      Where did you install your GCSTUDIO? did you migrate your PK+ installation?

      I am about all day Thursday.

       
  • JANIS

    JANIS - 2024-12-05

    Thanks Anobium! Everything is simple, the problem was solved quickly. Now Flash works automatically.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.