Code help

I am a beginner, I have an Arduino Uno R3 and an Adafruit RGB LCD shield kit. My goal is send a PWM signal to another controller. The PWM signal I want to start out at about 10% and gradually build up to about 60% pause, then gradually increase to 100%. At the same time I would like to percent of increase to print out on the LCD shield.

Any help with this will be very grateful.

What have you tried?

this is the core, use the value twice

..
  lcd.print(value, DEC);
  digitalWrite(value * 25 / 10);  // map value op 0..250 \
 ...
}

I was able to modify the Adafruit example code for the RGB LCD shield Hello World to slow down and speed up the count. And was trying to modify that, But found that the millis code was a function was a internal timer. What I am looking for first is help with a counter printed out on the LCD.

please post your code

Here is the modified code I have so far.

// include the library code:
#include <Wire.h>
#include <Adafruit_MCP23017.h>
#include <Adafruit_RGBLCDShield.h>

// The shield uses the I2C SCL and SDA pins. On classic Arduinos
// this is Analog 4 and 5 so you can't use those for analogRead() anymore
// However, you can connect other I2C sensors to the I2C bus and share
// the I2C bus.
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();

// These #defines make it easy to set the backlight color

#define WHITE 0x7

void setup() {
  // Debugging output
  Serial.begin(9600);
  // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);

  // Print a message to the LCD. We track how long it takes since
  // this library has been optimized a bit and we're proud of it :)
  int time = millis();
  lcd.print("     Motor 1");
  
  
  lcd.setBacklight(WHITE);
  delay(10000);
}

uint8_t i=0;
void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print("Speed ");
  lcd.print(millis()/1000.0);

  
    }

tresguey:
My goal is send a PWM signal to another controller. The PWM signal I want to start out at about 10% and gradually build up to about 60% pause, then gradually increase to 100%. At the same time I would like to percent of increase to print out on the LCD shield.

That would be easily done using a for loop to call analogWrite with incrementing PWM values.

You should not have any difficulty finding examples of printing text and numbers to an LCD shield.

uint8_t i=0;

One letter global names are not a good idea. What the heck does i mean?

  lcd.print("Speed ");
  lcd.print(millis()/1000.0);

How does millis() over 1000 relate to speed? That line might as well read:

   lcd.print("Hamburgers per parsec");

for all the sense that the code makes.

Where I have speed printed, That is there until I figure out what I want to say there for the percentage of the PWM speed of he controller.

Not sure what... uint8_t i=0; means. I just did not remove it from the code I was modifying. It is from the Adafruit Hello World library for the RGB LCD.

Not sure what... uint8_t i=0; means.

uint8_t defines a type : unsigned integer of 8 bits == 0..255
aka BYTE