Announcement

Collapse
No announcement yet.

Using a Teensy 3.6 with the gen4-uLCD-43D

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using a Teensy 3.6 with the gen4-uLCD-43D

    Hello,

    I am trying to get a simple display working using a Teensy 3.6 and the gen4-uLCD-43D display. I am currently using arduino as an IDE for programming the teensy, using Teensyduino and the genieArduino library. The code I have is compiling, but either the output pin (Pin 1, TX1) is not communicating with the display or some other issue is going on that I am not aware of. The teensy and the display are both separately powered and grounded, and here is the code I am trying to run:

    Code:
    include <genieArduino.h>
    
    #define GENIE_OBJ_LED_DIGITS 15
    #define GENIE_OBJ_GAUGE 11
    #define GENIE_OBJ_ANGULAR_METER 7
    #define GENIE_OBJ_LED 14
    
    Genie genie;
      
    void setup()
    {
      Serial1.begin(9600);
      Serial.begin(9600);
      genie.Begin(Serial1);
      pinMode(4, OUTPUT);
      digitalWrite(4, 1);
      delay(200);
      digitalWrite(4, 0);
      delay (4000);
        
    
    }
    void loop()
    {
      Serial.println("Running");
      for(int i = 0; i < 100; i++)
      {
        genie.WriteObject(GENIE_OBJ_LED_DIGITS, 0x01, i);
        Serial.println("1");
        genie.WriteObject(GENIE_OBJ_GAUGE, 0x01, i);
        Serial.println("2");
        genie.WriteObject(GENIE_OBJ_ANGULAR_METER, 0x00, i);
        Serial.println("3");
        genie.WriteObject(GENIE_OBJ_ANGULAR_METER, 0x02, i);
        Serial.println("4");
        Serial.println(i);
        delay(5);
      }
    }
    This code ran successfully on an Arduino and communicated with the display, minus the Serial.print operations and instead using Serial as the port for communicating with the display. What am I doing wrong? I apologize for my lack of knowledge, I am pretty new to programming as a whole.

    Thank you for your time,
    - Aaron

  • #2
    Hello Aaron,

    Have you come across this forum thread?

    Teensy 3.1 / 3.2 and 3.2" Picasso not communicating
    https://forum.4dsystems.com.au/forum...-communicating

    This seems to be a similar issue. Since you seem to be using Serial1 to talk to the display, Please try;

    a.) Checking if your hardware connection is correct (Display's Rx should go to Teensy's Tx and Teensy's Rx goes to Display's Tx)

    b.) Modifying the reset delay (on the thread above, the delay was increased from 3500ms to 5000ms)

    Please let us know if any of those suggestions work.

    If those don't work, could you please describe what's happening on your end?

    Best regards,
    Michael

    Comment


    • #3
      double check pins 0 and 1 on teensy (Serial1), they start AFTER the GND pin. Also the display and teensy should have the grounds joined for it to work

      Comment


      • #4
        Still isn't working, just going to try using Visi as an alternative. Thank y'all for your time!

        Comment

        Working...
        X