Serial myXbee // The serial port interface - connected to an XBee for wireless serial to Arduino vsync is a great library for passing data between processing and arduino gamecontrolplus handles the interface with any standard USB controller you need to install both of these libraries before running this example. This example uses two community supported libraries - gamecontrolplus and vsync Alternatively, you can use a USB cable tether directly to the Arduino and for-go the wireless Xbee part - just make sure that you specify the correct COM port. In general, what it does is interface a joystick controller and read in all of the inputs from the joystick and it sends this to the Arduino through the serial COM port associated with the XBee Radio. You can add both of these directly in Processing from the Sketch -> Add Library menu. You will need to install both the VSync and the GameControlPlus libraries to use this example. Here is a rough DriverStation program example in Processing. The GameControlPlus library in Processing handles a lot of the back-end I/O for the joystick. Now I had a comparable controller, I needed an interface to the Arduino. A more in depth tutorial is in the works. Here's a quick summary of what we got working. One of the struggles I have heard from teachers is how can we integrate Arduino with what we do with VEX. Their structural and mechanics system is fully modular and works with a minimum number of unique parts and pieces. If you are looking at expanding your robotics, mechatronics, or general structures program - I encourage you to look into VEX. However, there is also a fast growing population of schools using Arduino to teach basic microcontroller programming and electronics. There are a variety of programming environments for VEX from eas圜, robotC, to ModKit and Flowol. These are fantastic, high-powered, fast systems that work well in many classrooms. VEX started with a simple PIC microcontroller system and recently upgraded their platform to a Cortex based system. There are thousands of schools using VEX in the classroom.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |