XBee-Pro S1 Serial communication not working - cpu-registers

I have 2 XBee Pro S1 antennas and boards with USB interface. I successfully connected both in Coordinator-End Point and Coordinator-Coordinator settings.
I was able to send console log both antennas to each other.
I'm facing issue while I'm trying to use modsim and modpoll from one to other. It says timeout error.
Someone is claiming to have done this by shorting some pins from the XBee board. But I couldn't find anything regarding this anywhere. Could anyone help me with this?

Related

USB connection to move a Servo Motor

I want to know how to connect a phone to an arduino via usb and then have a servo motor move once the arduino recognizes that it is a phone. I'm very very new to arduino but I think it is an arduino uno.
We haven't tried anything yet because we don't know if out school has the proper hardware. Any guidance would be greatly appreciated.
There isn't a way for the Arduino to just "know" what it's connected to. The USB connection is handled with the USB to TTL converter on the board and thats what the computer sees. The rest of the Arduino board is simply rxing or txing serial data if there is any and there wont be unless you send something. You would have to send some serial data from the phone using an app to identify the phone.
If you give more detail, then maybe we can figure out some other way to solve the problem.

Arduino Accelerometer mpu6050, No raw data

I am working on a project which uses an accelerometer with an arduino Nano.
I am using the MPU6050. However I have the same static values wether I move the MPU6050 or not... I only get -1. That's really frustrating considering that all the tutorials I have watched achieve to retrieve data.
To begin with, I connected the MPU6050 with the arduino like so :
Then I used the official code https://playground.arduino.cc/Main/MPU-6050#short
that is to say this one :
And that's what I get ...
I bought a new one, but I still have the same issue...
If someone has any Idea, I would really appreciate !
Thanks
How do you know the I2C device address is correct? You could try scanning the bus to discover all the devices and their addresses. That would confirm your bus setup is working as well. Found this quick guide on accomplishing this: http://henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/arduino-quick-tip-find-your-i2c-address/
"The I2C-address depends on the AD0 pin of the sensor. If it is connected to ground, the address is 0x68. If it is connected to VLOGIC (+3.3V) it is 0x69. There are a few sensor boards with the MPU-6050 sensor already soldered on it."
So it is indeed necessary to solder the pins. We didn't thought about this because we connected VCC and GND without soldering as well and the LED was working fine whereby we assumed that it should be enough to stick them together for now. Seems like we were wrong and I've got now three working gyros at home.

ESP8266 - Check if a Client is connected?

I'm trying to make a little program on my Sparkfun ESP8266 Thing, which will turn an LED (Or any output pin) on, when a client is connected to the device via AP.
I already got the Webserver/AP part setup and running, so I'm just looking for someone to help me how to check if a client is connected.
Just to sum it up;
When somebody connect to AP -> LED turns on. When client disconnects -> LED turn OFF.
Hope anyone can help, would be very much appropriated!
Check those two functions:
wifi_softap_get_station_num();
wifi_softap_get_station_info();

avrdude : stk500_getsync not in sync:resp=0x87

I am using arduino uno r3 board and arduino 1.6.5 on windows 8. When Itried to upload my program on ATMEGA328 microcontroller it is showing:
avrdude:stk500_getsync not in sync:resp=0x87.
help me to solve this error
This boils down to 3 problems usually..
The bootload on the chip is missing (unlikely if you purchased the board from Arduino).
The serial connection between the arduino and the computer is disconnected or interrupted.
You've simply selected the wrong board type or port when programming, and thus the IDE is searching for a signal that the arduino isn't coming back with.
This problem is most likely due to option 3, however it can occur in odd situations especially on the Arduino Micro where the board does all USB comms on chip and can be flooded by main without an appropriate delay to the point it can't communicate with the IDE. However this is just most likely a bad board selection or a bad port selection.
I've tried many things but this worked for me. If you have a working Arduino lying around (in my case Uno) you can use it as an intermediate in-system programmer (ISP).
Follow this guide to first load the ISP sketch into your working Arduino.
Once you are done, for your non-working Arduino, select from the Tools > Programmer menu and choose Arduino as ISP, and set Board and Processor accordingly. To program choose Sketch > Upload using programmer.
Hope this works.
I think the reason that this work is that it will bypass the CH340/FTDI chip, and all those synchronization issue. Given that that is your problem.

What is the cause of "stk500_getsync(): not in sync: resp=0x00" in Arduino

I was using Arduino Uno to build a robot, but suddenly this error (stk500_getsync(): not in sync: resp=0x00) occurred. I tried a lot, searched on the net, to fix this error, but no solution worked for me. At last I bough 2 new Arduinos. But each of those 2 Arduinos ran few days correctly and after a few days gave the same error.
I was, and am, unable to find what causes this error. Can anyone kindly tell what could be the mistake I may be doing?
This has happened when the COM port is not correctly selected. Determine the COM port used to communicate with Arduino and set in in the IDE, then recompile the sketch.
I just found the reason from this link
of this error.
There are a TON of pages out there on how to solve this error. The problem is none of them worked for me. The typical solutions range from not having the correct serial port or correct Arduino model board selected under the Tools menu in the Arduino software, to not having a driver (or the correct driver) loaded.
However, the frustating part for me is I KNEW I had the correct serial port and board and driver selected because I was getting output from a sketch scrolling in the Serial Monitor window via a USB connection.
The fix? DISCONNECT ANY WIRES going to pin 0 (RX) while you do the upload. The sketch upload function uses the RX pin.
NOTE: You also need to disconnect any wires going to pin 0 (RX) if you have a sketch with a Serial.read() or Serial.peek() statement, and you want to use the Serial Monitor input field (as shown using the '752' in the example below) to feed data into the running sketch. If you don't disconnect pin 0 it will appear as if your data was entered into your sketch but nothing will happen because the data never truly gets input.
It's looks like there is no connection between PC and Arduino. Possible reasons: Something wrong with USB port OR driver, USB wire, ATMega16 controller, ATMega328 UART or bootloader. First, try to check, if data from Serial Port reaches Arduino. Pull ATMEGA from socket, short-circuit pins RX and TX on Arduino board (pins 0 and 1), and send some data from PC. You should receive exactly same string, as you sent. Also you should se RX TX LED's blinking. If you can't see data back, check if serial port you are using are actually exist in device manager, try to play with it's settings (speed, port numer), try to use another USB port and cable, etc.
I was having the same issue. But for me no led was lighting up on connection and the error observed was the same as yours. I fixed this by changing jumper pin configuration from ext to usb . You can try the same settings by altering the jumper pins between power jack and usb jack.

Resources