Need help in uploading code

Sketch uses 2144 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM4"
Failed uploading: uploading error: exit status 1
error is coming

Which board are you trying to upload to? Please give more information.

arduino uno

which type? r3, r4?

what is r3 or r4 actually i am a student

i am making project servo motor sensor

See if this solves the issue: Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM serial port - #49 by ptillisch

Btw, R3 is the Uno with 328P, R4 is the modern equivalent.

ok
i will see

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.