Error code: (unable to upload code)

Hi there,

I'm very new to the programming world and just received an error in this code.

I have set the circuit up correctly, using the following materials: 2x16 LCD, x1 push button, x1 220ohm resistor, and an Arduino Mega.

However, the following error message comes up when I try to load it onto the PCB board:

avrdude: ser_open(): can't open device "/dev/cu.usbmodem14101": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device
ioctl("TIOCMGET"): Inappropriate ioctl for device
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
the selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer
does not exist or your board is not connected

In addition to this, the LCD does not light up/turn on, will I need to implement a potentiometer?

If someone could help me out with this, it would be highly appreciated.

Cheers,

Hi there,

I'm very new to the programming world and just received an error in this code.

I have set the circuit up correctly, using the following materials: 2x16 LCD, x1 push button, x1 220ohm resistor, and an Arduino Mega.

However, the following error message comes up when I try to load it onto the PCB board:

avrdude: ser_open(): can't open device "/dev/cu.usbmodem14101": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device
ioctl("TIOCMGET"): Inappropriate ioctl for device
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: Bad file descriptor
avrdude: stk500_send(): failed to send command to serial port
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
the selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer
does not exist or your board is not connected

In addition to this, the LCD does not light up/turn on, will I need to implement a potentiometer?

If someone could help me out with this, it would be highly appreciated.

Cheers,

Your problem seems to be communicating with the Arduino.
Is this your first sketch upload, or have you successfully uploaded sketches before?

Disconnect everything except the Arduino and the computer.
Try and upload the blink test sketch, or even just an empty sketch.
Does that work?

If not, make sure you have the correct device and connection selected in the IDE.

Threads merged.