how do I setup arduino on bazzite?

I need to use an arduino for class, and I can't seem to get it to connect. I read up online and it says I need to add my user to the dialout group, but I already did that. Looking further, I might need to make the group, but I don't really know how to do that. My arduino uno wifi is recognized by the usb, but I can't connect to it through the IDE, I get an error: "not in sync: resp=0x00"
Solution:
To recap: to make sure everything works correctly I did: sudo usermod -aG input $USER...
Jump to solution
10 Replies
Kyle Gospo
Kyle Gospo2mo ago
There's a ujust to add yourself to the input group Run it with --show specified and it'll give you the full bash that gets run Simply use that and replace input for dialout
Mr_formal
Mr_formalOP2mo ago
I ran: sudo usermod -a -G input $USER and it didn't work, I'm still getting the resp=0x00 error. I'm not sure what is wrong, It recognizes the arduino, assigns it a serial port, and I can get the board info in the IDE, but whenever I try to do a firmware update, or upload a sketch, it thinks there is no board connected. Is this a problem with gear lever or something?
Mr_formal
Mr_formalOP2mo ago
Sketch uses 934 bytes (2%) of program storage space. Maximum is 32256 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes. "/var/home/isaac/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/var/home/isaac/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/ttyACM0" -b115200 -D "-Uflash:w:/home/isaac/.cache/arduino/sketches/70933FC544C76EB04003D9B02FF69337/pin2_led_blink.ino.hex:i" avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/var/home/isaac/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" User configuration file is "/home/isaac/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : /dev/ttyACM0 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 avrdude done. Thank you. Failed uploading: uploading error: exit status 1
BDMICRO, LLC
BDMICRO ARM and AVR Microcontrollers, Relays, Optocouplers, and IoT
Delivering 32-bit ARM Cortex, Atmel AVR, ATmega128, ATmega2560 Microntrollers, SAMD21, SAMD51, Relay Control, Optical Isolation and Isolators, H-Bridge Motor Control, Robotics, Automation, IoT (Internet of Things), Electronics, DIY, Industrial Automation, since 2002. Author of AVRDUDE AVR programming software.
Mr_formal
Mr_formalOP2mo ago
I wanted to preface that nothing is connected to the board, I am uploading a simple blink program. I have tried two separate brand new USB cables. The board is also unused, brand new. I don't think this is an issue with the IDE, but if it is maybe someone knows.
Mr_formal
Mr_formalOP2mo ago
. . . . I can't reflash the bootloader either, it gives me this error when I try: avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "/var/home/isaac/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" User configuration file is "/home/isaac/.avrduderc" User configuration file does not exist or is not a regular file, skipping Using Port : usb Using Programmer : stk500v2 avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2104) avrdude done. Thank you. Failed chip erase: uploading error: exit status 1
BDMICRO, LLC
BDMICRO ARM and AVR Microcontrollers, Relays, Optocouplers, and IoT
Delivering 32-bit ARM Cortex, Atmel AVR, ATmega128, ATmega2560 Microntrollers, SAMD21, SAMD51, Relay Control, Optical Isolation and Isolators, H-Bridge Motor Control, Robotics, Automation, IoT (Internet of Things), Electronics, DIY, Industrial Automation, since 2002. Author of AVRDUDE AVR programming software.
Mr_formal
Mr_formalOP2mo ago
I also wanted to say that it would be nice to have this fixed by tomorrow, I have lab tomorrow. I can switch over to windows since I can dual boot to an SD card, but it would be better to get this figured out since I'm sure other people will have issues with it. Also, windows 11 drains my battery really fast. I just tested an R3, and it works, it might be a support issue for the R4 and R4 wifi I also tested a regular R4 with no wifi To recap: arduino R4 - Doesn't work arduino R4+wifi - Doesn't work arduino R3 - Does work arduino nano - Might work (permission denied error) The arduino nano uses ttyUSB0 instead of ttyACM0, so that might be related. I gone through several troubleshooting steps to try to get it to work, I'm not a software expert, I'm a hardware tinkerer. I think this might be a bug in either the IDE, or the operating system. nothing I have tried works including but not limited to: tried multiple usb cables tried resetting it tried putting the arduino in bootloader mode tried adding myself to dialout, tty, input groups, and restarted after each one tried kernel updating tried IDE updater Nothing. If you want more info I'll be happy to provide it. I really want to use the R4, since it has better analog capabilities than the R3 OK, so here I have a different R3, this one is offbrand arduino, it's OSEPP branded, and it has the same issue as the nano. looking further into the issue in the IDE: avrdude: ser_open(): can't open device "/dev/ttyUSB0": Permission denied running in terminal: (base) isaac@bazzite:~$ ls -l /dev/ttyUSB0 gives: crw-rw----. 1 root dialout 188, 0 Oct 14 09:00 /dev/ttyUSB0 SO DIALOUT GROUP DOES EXIST, and it has access to /dev/ttyUSB0 adding my user to the dialout group does not work, how do I go about doing this? does the dialout group exist in bazzite? like, is dialout setup for bazzite?
Mr_formal
Mr_formalOP2mo ago
I finally figured it out, it's an IDE related issue, you need to go into board manager and make sure you have the proper board installed in the IDE:
No description
Mr_formal
Mr_formalOP2mo ago
No description
Mr_formal
Mr_formalOP2mo ago
there's an entirely seperate manager for the R4 boards, so it was having some driver issues.
Solution
Mr_formal
Mr_formal2mo ago
To recap: to make sure everything works correctly I did: sudo usermod -aG input $USER sudo usermod -aG tty $USER reboot install IDE, add the appimage to gear lever app. boot the IDE with the board plugged in, then access the board manager, the icon shaped like a board on the left hand side, and install the manager for specific board you have. R4s have different microcontroller chips than regular Unos so that was my issue.

Did you find this page helpful?