New answers tagged

1 vote

Clear serial data for new incoming values

The error lays in your algorithm to collect the command. Your sketch uses the space character ' ' as the separator between incoming messages. After the first transmission of "voltage 100", ...
the busybee's user avatar
  • 1,801
0 votes

Clear serial data for new incoming values

It is difficult to help with out knowing exactly what characters are being sent and why. If we assume this is what is being sent: "voltage 24\n" "voltage 24\n" "voltage 55\n&...
st2000's user avatar
  • 7,255
2 votes

Reading serial data from Arduino in Python continually

I am puzzled why the Arduino code isn't simply stopping at "Serial.availableForWrite()" when I stop reading data on the Python side -- it keeps on running. This depends on the Arduino board ...
chrisl's user avatar
  • 15.8k
1 vote

Why can't I upload a sketch by connecting directly to the serial pins?

OK this was a combination of at least two things: Main problem: connecting the fake arduino's RST pin to the FTDI's DTR pin via a 0.1uF capacitor seems to stop it from uploading, when when you ...
Alex028502's user avatar
2 votes

Compilation error: 'Serial' does not name a type

In C & C++, executable statements must be within a function. Your third statement, Serial.begin(9600); is (or should be) executable but since it is outside any function, the compiler tried to ...
JRobert's user avatar
  • 15.1k

Top 50 recent answers are included