All Questions
Tagged with string arduino-uno
67 questions
2
votes
0
answers
358
views
Arduino filling serial buffer with nulls
I just wrote some code that just sends a string from Arduino to Processing.
Processing prints the string and displays the number of characters in the buffer...
After uploading the sketch to the ...
-1
votes
2
answers
1k
views
İs that possible to a function return String OR Int depends on address
Well, I'm trying to use a HMI display and this HMI storing datas in separeta addreses. Such as integers addr. is between 0x80000 to 0x9ffff and also for string's addr is between 0 to 0x1ffff.
At this ...
1
vote
1
answer
2k
views
How to convert a String to Hex array
I am trying use a HMI display. If I want to send a data, for example I want to write "TOPWAY" to 0x00000080 address it should like that:
Serial.write(0xaa); // packet head
Serial....
0
votes
1
answer
2k
views
Using index of to search for multiple characters
In my Arduino project, a string will be received. I understand using .indexof to find the placement of a certain character in the string. My problem is that I need to find the first occurrence of any ...
0
votes
2
answers
240
views
Get a specific item from comma separated text
I use bluetooth (works like serial monitor).
Let me say i send a text to my hc-05 (same as sending to serial monitor)
My current code is displaying text from serial monitor/HC-05 TO LCD
#include <...
1
vote
1
answer
115
views
String(int) function stopping the Arduino
Well I am trying make an application with arduino leonardo and GSM Shield. There are conditions if, else if, else .. etc
if (smsMetni.indexOf("DURUM") != -1) {
Serial.println("SMS ...
1
vote
2
answers
814
views
How to use "+" character as a String
Well I am trying to save phone number as a string. For ease of use I want to add "+" character programmatically. Like this:
String cepNo ="+" + "901234567";
But program ...
1
vote
1
answer
455
views
Having trouble with sprintf function and string class
in my code, I was using string class to make an array to store my menu items
String menu[2] = {{"Menu 1"}, {"Menu2"}};
How do I convert this into char arrays and how do I call ...
0
votes
1
answer
131
views
Possibility of clean the code?
Good night! Based on stuff I get a bit here and there, came up with a program for an Arduino Audio Selector with shift registers and some features. Working as expected, only missing connecting the ...
1
vote
1
answer
183
views
Running commands from string
I have a string:
string s="digitalWrite(8,LOW);"
Is there any way to run it as a code?
0
votes
1
answer
977
views
Scroll Left to Right on MAX7219 Display
For scrolling from left to right (Arabic letters) I need a function to print words/sentences on the MAX7219 display. [By setpixel(x, y) function]
I did a lot of searching and my efforts failed. I ...
1
vote
1
answer
754
views
I can't receive string that I have sent through nrf correctly
I'm using arduino uno and nrf24l01. to monitor sensor data.
But this is the message that master receives:
⸮
this is my slave code.
void monitoring() {
delay(10);
radio.stopListening();
...
-1
votes
1
answer
973
views
Arduino - Extracting Multiple Strings from Serial Read
I am trying to write an Arduino code that reads a long string, example <11,22,33>, through the Serial Monitor and then stores the 11,22, and 33 into separate bins of a matrix array.
So the user ...
2
votes
1
answer
7k
views
char buffer to String in Arduino UNO
String getAPIData()
{
char res_buffer[450];
int numdata = inet.httpGET("myserver.com", 80, "/call.php?id=1&q=1&code=1001", res_buffer, 450);
String result = String(res_buffer);
Serial....
0
votes
1
answer
2k
views
From Strings to int problem
I create applications for a computer that is to be used to control the robot arm. I wanted to make the first attempt to run the application not on the motor, but on the diode and check if it will ...