Git Product home page Git Product logo

gd23zutx's People

Contributors

ft81xmania avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gd23zutx's Issues

Slow Can Bus issue

Hello, I'm running GD23ZUTX on a teensy and I'm using a Can Bus transceiver that is reading data off my car's ECU.

The issue I'm having is that if I set the ECU to send data at anything more than 10HZ, the data I'm seeing on the serial monitor is really laggy, like 5 seond delay. I can switch it to 10hz and it will run alright but 10HZ produces a choppiness with the gauge command. I'd like to be able to run at least 20HZ or faster.

I've narrowed down the issues to the Gameduino part of my code. If I run just the Can Bus code and output it to the serial monitor, the data is received at even 50HZ. Once I introduce a command, for example just the number command to display a reading on the screen, the lag comes back.

I added some code using millis() to determine the loop rate and I'm getting about 55 loops a second so I'm not sure where the incoming data is being backed up.

Below is a sample of my code.

`#include <GD23ZUTX.h>
#include <FlexCAN.h>

static CAN_message_t rxmsg;

FlexCAN CANbus(500000);

float CTPS, TPS;

void setup() {

CANbus.begin();
GD.begin();

}

void loop() {

if ( CANbus.read(rxmsg) ) {
switch (rxmsg.id) { // Using IDs from 1512 as Megasquirt CAN broadcast frames for Simplified Dash Broadcasting.
  // EAch frame represents a data group http://www.msextra.com/doc/pdf/Megasquirt_CAN_Broadcast.pdf
  case 1523:
    CTPS = (float)(word(rxmsg.buf[0], rxmsg.buf[1]));  //AFR...no division
  break;
}

}

TPS = CTPS/10;

Serial.println(TPS);

GD.Clear();

GD.ColorRGB(0xffffff);

GD.printNfloat(390, 450, TPS, 0, 30);

GD.swap();

GD.finish();

}`

ESP32 video

Hi, I made the changes to GD23ZU in order to play video and some little updates, I can send it if you want. It is very fast because it uses a separate bus for SD card (SDMMC up to quad data lines).
Bernard

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.