Arduino Receive and Format data
$250-750 USD
着払い
Hello all, I need someone to put a function to work. I build a panel with 1 keypad, 3 LEDs, 1 button and 1 I2C 20x4 LCD.
Also I'm using a state machine for the functions.
The panel talks to the main Arduino with serial with simples digits of control: % to start $ to stop. This is an example of main Arduino function to turn on and off a LED:
if (rxBuffer[0] == '%')
{
if (rxBuffer[1] == 'R' &&
rxBuffer[2] == 'H' &&
rxBuffer[3] == '$') digitalWrite(outLedVM, HIGH);
if (rxBuffer[1] == 'R' &&
rxBuffer[2] == 'L' &&
rxBuffer[3] == '$') digitalWrite(outLedVM, LOW);
}
So when the main send %VMH$ the panel arduino understand % = start, R from red, and (H or L) from High or Low, and do the desired with the Red LED.
However when I'm using big arrays to transmit a value for example the code locks.
I have also a functions that sends me the compass value (where C from compass):
if (rxBuffer[0] == '%' &&
rxBuffer[1] == 'C' &&
rxBuffer[5] == '$')
{
strBuffer = String(rxBuffer[2]) + String(rxBuffer[3]) + String(rxBuffer[4]);
compassValue = [url removed, login to view]();
[url removed, login to view](compassValue);
clearBuffer();
}
I have a software to emulate the main Arduino and send the frame. What I need from you?
FOUR functions THAT WORK:
1) Send right encoder value: [url removed, login to view] to +[url removed, login to view]
2) Send left encoder value: [url removed, login to view] to +[url removed, login to view]
3) Send GPS latitude: [url removed, login to view] to +99.999
4) Send GPS longitude: [url removed, login to view] to +99.999
For the 1 and 2, I need the long and the string to print into a LCD
For the 3 and 4, I need only the string to print into a LCD
Note: Timeframe is realy important, I need it fast. Delay can cause dispute in my favor, accepting the project you accept this term.
プロジェクトID: #8837851