Hot answers tagged

3

Have you considered not trying to force ttyUSB0 but instead creating a symlink to whatever tty is assigned? Your software then just uses the symlink. A problem with forcing a particular tty is what if you boot without the Arduino but another device is attached? You then need to convince the other device to skip ttyUSB0. If you would consider a symlink then ...


3

Use avrdude. The command format is simple, assuming you have installed it from the Linux repositories: avrdude -carduino -patmega328p -P/dev/ttyUSB0 -b115200 -Uflash:w:/path/to/project.bin.hex:i Depending on what bootloader is installed in your nano you may need to change the baud rate (-b115200) to 57600. Also, of course, the USB device should be set to ...


2

The fact that you're referencing ttyUSB0 tells me you have cheap Chinese clones and not genuine Ardunios. These are usually based around the CH340 USB interface chip which is notoriously unreliable. Your UNO is dead. My supposition is that plugging it in cripples the CH340 driver. Any other boards that you subsequently plug in can not be recognised because ...


1

running: sudo usermod -a -G dialout $USER cleared the issue it was the first time I have used that machine with an Aduino not sure how it was running before with out permissions set up correctly or why it failed when I dropped that 5v, I assume that just reset the board and when it tried to reconnect it failed. Both board and PC all working fine, phew. ...


1

I use the Arduino IDE to 'build' everything. However, in case of a bigger project, I use a 'decent' code editor (Visual Studio in my case) to edit, and the Arduino IDE to build. Also, because I prefer testing all non-Arduino related code on the PC (not on the Arduino), the Visual Studio (C++) project uses some stub classes I created (specifically for my ...


1

For those that hit the same issue, here is how I solved it: Expose the USB_SendSpace() information in the HID interface by editing /usr/local/arduino-1.8.12/hardware/arduino/avr/libraries/HID/src/HID.cpp u8 HID_::SendSpace(void) { return USB_SendSpace(pluggedEndpoint); } And adding the interface to class HID_ in: /usr/local/arduino-1.8.12/...


1

I have to sadly conclude that this issue posted was for nothing. the board I was using most likely has an underlying defect (of all odds, the 45 boards my teacher was using, he gives me 1 defect board? believable.) rendering the board inoperable. I plugged the board into an entirely different laptop, downloaded and installed a full IDE for it, ran it ...


1

In the Arduino IDE, the mcu will show up in Tools > Port. Your Arduino Nano will probably be visible at /dev/ttyUSB0 or /dev/ttyUSB1 following whatever is already plugged on USB. Make sure to select it. Select Nano in Tools > Board. Last step is Verify/Compile your code (^R), then Upload (^U). This link sounds to be a good read to start.


1

Running avrdude as root works. Adding permissions to ttyACM0/ttyACM1 for everybody also works. Execute sudo chmod 777 /dev/ttyACM0 sudo chmod 777 /dev/ttyACM1 and after that you should be able to compile and upload the code to the arduino The only issue with this is that you have to run that line everytime you connect the Arduino to the USB because ...


Only top voted, non community-wiki answers of a minimum length are eligible