Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Installation / Re: 2002 cummins lilbb install
« Last post by Chewy1576 on May 24, 2018, 07:11:55 PM »
What gauge wire do you recommend for actuator 12v supply and the ground?

I'm working on integrating boost pressure and EGT sensors, but only for display purposes right now. In the future I may let them influence commanded vane position, but only as a failsafe for overboost or excessive EGT conditions. Main vane control will still be a function of turbine shaft speed.
22
General Discussion / Re: Starting a new build
« Last post by Chewy1576 on May 24, 2018, 06:57:22 PM »
I think I found a pretty good LCD library, it may be the same one you mentioned. The issue was message send/receive timing between processors. I had to add a 25 ms delay between CAN writes for the LCD processor to grab each message and update accordingly. And rather than have a separate routine for LCD writes, I put them directly into the Switch Case for sorting the messages to the corresponding fourbyte.
23
General Discussion / Re: Starting a new build
« Last post by Rx7man on May 24, 2018, 03:58:51 PM »
as long as it's fast enough to do it, optimization can wait.. but the LCD's are really slow depending on the library you use..

Here was my thread about it on Arduino.cc.. I think a link to the library is in it
https://forum.arduino.cc/index.php?topic=470153.0
24
General Discussion / Re: Starting a new build
« Last post by Chewy1576 on May 24, 2018, 02:00:56 PM »
Going to need a lot of optimization, but it works.
25
General Discussion / Re: Starting a new build
« Last post by hakcenter on May 22, 2018, 09:00:21 PM »
Ya uh, I don't like using some of those identifiers, cause raisens
26
General Discussion / Re: Starting a new build
« Last post by Rx7man on May 22, 2018, 12:23:41 AM »
I've made plenty of those mistakes that have cost me hours of aggravation.. glad you got it figured out
27
General Discussion / Re: Starting a new build
« Last post by Chewy1576 on May 21, 2018, 09:46:23 PM »
K another dumb mistake...

As soon as I changed "sizeof(rcv_data.data))" in the MEMCPY to "rcv_data.length", it started working!
28
General Discussion / Re: Starting a new build
« Last post by Chewy1576 on May 21, 2018, 09:39:03 PM »
So I haven't given up... Been a busy month or so and I haven't had much time to tinker. I had some time tonight to work on moving the received data around, and figured out I had the destination and source in the MEMCPY backwards  ;D. Now it receives one message and the program seems to hang, it doesn't pull in any more messages.

Code: [Select]
void MCP2515_ISR()
{
  data_rcvd = true;
}

void C_CANBUS()
{
  data_rcvd = false;
 
  CAN_Frame rcv_data;

  if (CAN.available() == true)
    {
    rcv_data = CAN.read();
    }

  if (rcv_data.id == 300000000)
    {
    memcpy(turbo_speed.b,rcv_data.data,sizeof(rcv_data.data));
    }

  if (rcv_data.id == 305000000)
    {
    memcpy(vane_pos.b,rcv_data.data,sizeof(rcv_data.data));
    }

  if (rcv_data.id == 310000000)
    {
    memcpy(boost_pressure.b,rcv_data.data,sizeof(rcv_data.data));
    }

  if (rcv_data.id == 315000000)
    {
    memcpy(egt.b,rcv_data.data,sizeof(rcv_data.data));
    }
}

void D_LCDWrite()
{
  long disp_turbospeed = 0;
  int disp_egt = 0;

  disp_turbospeed = (long) turbo_speed.f;
  disp_egt = (int) egt.f;
 
    //lcd.setCursor(0,0);
    //lcd.("TurboSpd:          ");
   
    //lcd.setCursor(0,0);
    Serial.println(String("TurboSpd:") + String(disp_turbospeed) + String(" RPM"));
   
    //lcd.setCursor(0,1);
    //lcd.print("TurboPos:         ");
       
    //lcd.setCursor(0,1);
    Serial.println(String("VanePos:") + String(vane_pos.f,2) + String (" cm2"));

    //lcd.setCursor(0,3);
    //lcd.print("Boost:  ");
   
    //lcd.setCursor(0,3);
    Serial.println(String("Boost:") + String(boost_pressure.f,2));

    //lcd.setCursor(12,3);
    //lcd.print("EGT:    ");

    //lcd.setCursor(12,3);
    Serial.println(String("EGT:") + String(disp_egt));

    //delay(100);
}

void loop()
{
   
  if (data_rcvd = true)
  {
    C_CANBUS();
  }

  D_LCDWrite();
 
}
29
Installation / Re: 2002 cummins lilbb install
« Last post by hakcenter on May 21, 2018, 07:32:42 AM »
Don't know how you would calculate load, but you certainly can integrate as much 5v stuff as you want.

Just remember the common code doesn't have any extra processing in it besides just showing you how count on the ISR spare pin. Adding the sensors to the code will be task :)
30
Installation / Re: 2002 cummins lilbb install
« Last post by Off-road on May 19, 2018, 09:18:34 PM »
Can I use the I/o’s to monitor and use the boost and load of the engine to determine vane position and adjust it accordingly or is that over rated?
Pages: 1 2 [3] 4 5 ... 10