Questions tagged [serial-data]

Sending one data bit in a time. Used mostly in RS232 context.

136 questions
2
votes
2 answers

How to call more than 10 different functions based on serial input?

I'm looking to basically call functions based on the serial ID I assign to it. For example, if I want to call function A I would type on the serial A and if I want to call function B then I would type B. Now I have taken a look at some arduino.cc…
Frank
  • 51
  • 1
  • 11
0
votes
1 answer

How can i split an incoming data in arduino?

So for my arduino project I need to split this line of servos data 180 0 0 0 90 90 0 Which would be parsed as: servo position1 servo positin2 servo positin3 ...servo position 6 in to separate servo values, but i am new at arduino and c typе…
Nikimiskata
  • 3
  • 1
  • 3
0
votes
3 answers

If any kind of character gets loaded into a string, what do I use for an end-of-line character?

I have an Arduino project that is converting floats to characters and then transferring those characters via the serial to a Python program. This is a portion of the Arduino code: #define MEM_LEN (16 * 4 * 4) + 1 uint8_t dataBuf[MEM_LEN]; typedef…
Owen White
  • 31
  • 1
  • 2