With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
This may be a dumb question, but am I supposed to configure the xbee modules to a baud rate of 38400 and change the COM ports as well to 38400? Also, when I upload the arduino sketch and open the serial monitor on COM3, I get these weird text characters:ÿÿÿÿ0 0A,ÿÿÿ,,F,ÿÿÕ,O,ZThis is at a baud rate of 38400 without the C# application running. When I run the C# app, I can connect to COM4(Xbee module/USB explorer) but do not receive any data through the output textbox.
I don't think the arduino sketch is uploading if that's the case. When I open the XTCU console and input a character, I can read it on the arduino serial monitor(receiving end). Also, the arduino serial monitor continues keeps displaying 2 zeros.
Ok so I got the xbee modules to communicate via XCTU software but not through arduino. In the XCTU console when i close the conection and input a character, the xbee module on the arduino lights up indicating reception. But when I upload the arduino sketch(arduino_rc_neopixels) it doesn't work. I'm not sure if my loopback connections on serial1 are correct. I just connected 18 to header 3 and 19 to header 2 with some jumper wires. Do you have a pic of these connections by any chance? Or any suggestions? Thanks!
ok so i got the C# program to work. Video is working and xbox360 controls are working in the C# GUI. I'm having a hard time configuring the two xbee modules to communicate. How did you set one to coordinator, at the other to router? The XCTU program only gives coordinator and end user in the drop down. I have the sparkfun xbee wireless kit with only one usb explorer. I got to configure one xbee module but can't get the other one configured and tested unless I take out the first one and use the usb explorer.I tried to "discover" it through COM3 where the arduino mega is plugged in with the xbee shield and module but it can't be detected. I guess my question would be is, how do I configure the xbee module connected to arduinomega/xbee shield via XCTU(while I have the other xbee module connected to PC/explorer USB.)?
I did exactly this and it fixed it somehow. Building the 64bit version of the executable was a success. However, when I start it from within Visual Studio Express, I get another pop-up error that reads "An unhandled exception of type 'System.BadImageFormatException' occurred in XInputDotNetPure.dllAdditional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)". I did put the xinputdotnetpure.dll file along with the xinputinterface.dll file in the debug folder. I can run the .exe file(the one in the debug folder) with success now. Before, it would just crash. I'll keep you updated. Thank you so much for all the help!
Thanks for the quick response! So I tried the x64 version of the xinputdotnet release from the link you provided and got a different popup error which reads "An unhandled exception of type 'System.BadImageFormatException' occurred in mscorlib.dllAdditional information: Could not load file or assembly 'XInputDotNetPure, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."Any ideas? Thank you in advance!
Also, the xinputdemo.exe and xinputreporter.exe are working properly now.
Hello. I am in the process of building this project with the same exact hardware but without an accelerometer or neopixel stick. I edited the arduino code with no problems. I do have a hiccup on the C# program though. I have downloaded the xinput wrapper and added the xinputdotnepure.dll to the references and also copied the xinputinterface.dll to where the .exe file is. When I "start" the program, I get a popup error message that reads "An unhandled exception of type 'System.AccessViolationException' occurred in XInputDotNetPure.dllAdditional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Any idea what this could be? On a side note, I tried to run the xinputdemo and it just crashes. I'm running Windows 7 Enterprise Service Pack 1 64bit if that helps. Any help will be greatly appreciated!
Join 2 million + to receive instant DIY inspiration in your inbox.
Download our apps!
© 2016 Autodesk, Inc.