New answers tagged serial
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", ...
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&...
2
votes
Accepted
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 ...
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 ...
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 ...
Top 50 recent answers are included
Related Tags
serial × 2132arduino-uno × 665
softwareserial × 199
arduino-mega × 197
communication × 130
programming × 129
usb × 122
esp8266 × 102
arduino-nano × 102
uart × 96
arduino-ide × 95
bluetooth × 92
python × 92
serial-data × 74
c++ × 72
string × 66
sensors × 62
arduino-due × 55
arduino-leonardo × 41
i2c × 40
esp32 × 37
array × 37
xbee × 35
interrupt × 32
atmega328 × 31