Arduino code well with wired connection but there's error with XBee connection - arduino

I am able to run the arduino code when the Arduino Uno is connected to PC via USB cable.
But when I try to connect it through XBee Bleetooth via XCTU software, the same code doesn't run.
Details:
The code is a simple code where it performs some basic ultrasonic sensor operation.
Through XCTU software, it discovers the coordinator and end deviceenter image description here
Now when I try to run the same code again, it shows the following error:
*avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x29
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x29
Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.*
I believe it is not forming the connection with my arduino board.
How can I solve this issue?

Related

Arduino Nano programmer not responding

I am very new to arduino and I recently bought a Nano, and when I try uploading the code, it throws this error:
`Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x03
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I have tried changing the programmer, changing the processor to the old bootloader; all of the standard stuff. Nothing has worked.
Any help would be greatly appreciated
Test other ports, and other USB cable. If you buy this nano from China, maybe it has CH3040 usb driver (this is a cheap chinese usb communication chip). If that's true, download this driver, without that isn't work chinese nano.
Good luck!
Arduino Nano Uses the CH340G driver unlike the CP2102 used in UNO
so you need to install the correct drivers and check inside drivers section for the COM port .
If you have already burnt the new bootloader it wont cause any upload issues
As a last resort you can use Arduino as ISP to program your NAno
please check out this article
I recently had the same issue with IDE 2.0.3 and had to go to tools/Processor/ATmega328P (Old Bootloader).
This changed the bitrate from 115200 to 57600 and allowed the nano to be programmed.

Unable to Reset the Arduino Leonardo Code

I was trying to learn about the keyboard simulation using Arduino Leonardo Pro Mini.
The code i wrote was
#include <Keyboard.h>
void setup() {
Keyboard.begin()
}
void loop() {
Keyboard.println("Hello World");
}
This works fine, now i want to reset the microcontroller with the empty code, which is
void setup()
{
}
void loop()
{
}
But the previous code doesn't let me do this.
The following is the error, even though the port selection is correct (i am sure about that)
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
This error is not related to the code you're uploading.
Caused by:
missing bootloader
broken bootloader
wrong bootloader settings
faulty connection
stuff connected to hardware Rx/Tx ...

arduino nano with usb to ttl converter

i have a usb to ttl converter and an arduino nano
the arduino nano's usb port stopped working for some reason, and hence i want to try using the usb to ttl converter to transfer sketches to the nano, how would I go about doing this??
i have tried connecting
Converter 5V > Arduino 5V (also tried VIN)
Converter GND > Arduino GND
Converter tx > Arduino Rx
Converter Rx > Arduino Tx
then used arduino nano on the arduino software and compiled and tried to upload, but it stayed on upload and did not move from upload, the rx and tx lights do not blink (sometimes the RX light turns on and stays on)
after a while i get this error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x01
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x10
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
I have tried connecting just the converter and connecting the tx and rx wires of it together, and sending a message via serial monitor, i do get the same thing back

Arduino NANO - not showing in device manager

If somebody solved this issue, please send me link.
My issue:
I bought 2 arduino nanos (http://www.ebay.com/itm/311064700128?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT)
When I plugged them into PC, Led started blinking. I decided to try and test it so I wrote a program blink led with a bigger delays etc. I changed things as I should (like 328, arduino nano setting etc.)
When I open device manager, ports there is not even an arduino here!
And still it doesnt wat to upload itself! My chip mega328P AU1451 (its written under name)
Error message:
Quote
Arduino: 1.6.4 (Windows 7), Board: "Arduino Nano, ATmega328"
Sketch uses 1 070 bytes (3%) of program storage space. Maximum is 30
720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2 039
bytes for local variables. Maximum is 2 048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9b
Problem uploading to board. See
http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with "Show verbose output
during compilation" enabled in File > Preferences.
I tried to change programmer settings and it has told this:
avrdude: ser_open(): can't open device "\.\COM1": Prístup je odmietnutý.
(prístup je odmietnutý means acces is denied)
Any ideas how to solve this? Arduino forums didnt answer.
The Arduino clone device you have linked to uses the CH340 chip as its USB serial adapter. You need to obtain the drivers from the Chinese manufacturer or some other site. There are a number of blogs that provide information about using these clones (example). Provided the driver is installed it should then appear as a standard serial port device and can then be used in the same way as a genuine Arduino device.

Standalone Arduino not uploading

I'm trying to build my own arduino and i'm having some trouble while uploading the code.
I'm pretty sure my build is correct because the LED on the pin 13 blinks 3 times when i press the reset button.
The error i get when i try to upload is:
Arduino: 1.6.0 (Windows 8), Board: "Arduino Uno"
Sketch uses 450 bytes (1%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x01
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
My OS is Windows 8 and the chip i'm trying to use is the Atmega328P-PU
I did check the port and the drivers and i tried pressing the reset button while uploading.
To troubleshoot this issue, first be sure to select:
- Tool > boad > Arduino uno
- Tool > port > COM X (the one available)
Normally you don't have to press the reset button because it will be done automatically by the Arduino IDE before uploading (using the reset pin). But if you still have a sync issue try to hit the reset button just after the compiling process (so as soon as the upload process is starting).
If you are still struggling try to downgrade to Arduino IDE 1.0.6 http://arduino.cc/en/Main/OldSoftwareReleases
I had the same error on Windows 7 on VirtualBox while uploading code to Arduino Uno. I restarted the computer and tried again and it worked the first time but the same error came back on later tries. So now I am disabling the COM port, closing Arduino IDE, enabling the COM port then restarting the IDE. It's tedious but I'm in a pinch now.

Resources