Tagged Questions
-3
votes
4answers
400 views
Separate a string into an array
I have a string of binary numbers coming into my Arduino. I need to convert them into an array. The data represents the columns of light in an LED display. In my program I already have a working ...
2
votes
3answers
1k views
Arduino: String join?
I'm trying to write a join method for the Arduino:
#define ARG_DELIMITER ','
String join(const String strs[], const int len) {
String result = "";
for (int i = 0; i < len; i++) {
...
1
vote
3answers
4k views
Arduino (C language) parsing string with delimiter (input through serial interface)
Arduino (C language) parsing string with delimiter (input through serial interface)
Didn't find the answer here :/
I want to send to my arduino through a serial interface (Serial.read()) a simple ...
0
votes
2answers
115 views
How can I digitalRead a pin and convert data to String on Arduino?
I'm doing a communication system with 2 Arduinos Leonardo. To transmit I had to convert a String in bits and send them trough a PWM pin. The question is, how can I do the receiver?
My idea is to ...
2
votes
1answer
109 views
Working with arrays on Arduino in C++
I'm trying to manipulate arrays, but I'm a little confused with I need to do. I want to do something like:
char myArray[10];
myArray[0] = 0xA9;
myArray[1] = 'D';
myArray[2] = 'S';
myArray[3] = ...
1
vote
1answer
7k views
How read string from Serial?
I have to manage servos from a computer.
So I have to send manage messages from computer to Arduino. I need manage the number of servo and the corner. I'm thinking of sendin something like this : ...
0
votes
1answer
181 views
How to convert stringified binary (a string of “1”s and “0”) to a corresponding char string
Given a stringified binary representation, I would like to convert it back to real binary which will be treated as chars. For example, the string 01000001 01000010 01000011 01000001 should be ...
0
votes
1answer
493 views
How to convert the incoming characters coming from gsm module into a string?
Its my first time to use gsm shield to my arduino so I'm kinda confused so i need directions. My aim is to read the message sent to my gsm shield then compare that message into a specific string. if ...
0
votes
1answer
173 views
Sound string declaration hangs Arduino compiler
I have a string of characters from an 8 but the WAV file that I'm trying to import into my Arduino project. I declare it like this
const unsigned char sounddata_data[] PROGMEM = "€€[fill these ...
1
vote
0answers
66 views
Serial string problems
I am very new to programming the arduino, but I have been given a pretty complex task to undertake with it. My classmate is writing a program in visual basic for Windows. My program is to work in ...