Interface up to 12 servos using Arduino

[Brian] is using an Arduino to control multiple servo motors. This is nothing new and has been happening since the earliest days of Arduino. But rather than develop a project and share it, [Brian] did a fantastic job of making the code scalable, readable, and even explained how the different parts work.

His code listens for serial commands and manipulates the motors accordingly. He wrote a Python script using pyserial which talks to the Arduino. As an example, he uses a joystick to send data for X and Y axes as well as pitch and roll. Want to know how those serial communications work? He explains that in detail. He also outlines the process of scaling up from the 4 servo demo to 12 servos on a standard Arduino. Sounds like it might be time to build your own version of a mouse-controlled Lynxmotion arm using the tools [Brian] has put together.

Arduino + Java + Joystick

Interfacing your own hardware with a Java app couldn’t be easier than this example. [Pn] created this proof-of-concept using an Arduino, an analog joystick from a gaming controller, and a few lines of Java code. The Arduino reads an ADC value from the joystick’s x-axis and transmits it over the serial connection ten times a second. The Java program triggers on every serial event, parsing the data based on the @ symbol that the Arduino sends as a start and end condition.

We like this kind of example because there’s nothing extra involved. It lets you take the concept and run with it in any project imaginable. Be it a more complicated Joystick, or simple sensors that you’d like to interface with.

Robotic mobility for the little ones

Researchers at the University of Delaware are helping disabled kids by designing robot transportation for them. Exploring one’s environment is an important part of early development. Disabilities that limit mobility can prevent young children from experiencing this. Typically children are not offered a powered wheelchair until they are five or six years old, but adding intelligent technologies, like those found in the UD1, makes this possible at a much younger age. Proximity sensors all around the drive unit of the robot add obstacle avoidance and ensure safety when used around other children. When confronted with an obstacle the UD1 will stop, or navigate around it. The unit is controlled by a joystick in front of the rider but it can also be overridden remotely by a teacher, parent, or caregiver.

[via Robot Gossip]

iPad arcade dock has hidden projector

This iPad dock is a well-executed gaming accessory. [Linkreincarnate] used a Hori Wii fighting stick as the controller. In his hardware explanation he outlines several benefits of this choice including built-in support in most of the iPad emulators, as well as foregoing the need for a wired connection. Just above the controls there is a standard docking connector which holds the iPad in place and patches through the audio to some external speakers. But  that’s not all that is included in the build, the final touch is a pico projector that can be used if you want a larger gaming experience. Video of the hardware and a gaming demonstration can be found after the break.

Continue reading “iPad arcade dock has hidden projector”

HID crafting with a PIC and a joystick

[Amr Bekhit] converted his gameport joystick to use as a USB joystick. Much like a universal USB joystick interface, this uses an additional microcontroller to talk to the serial bus while monitoring the controls on the stick. [Amr’s] discussion about creating HID descriptors is clear and easy to understand. What he’s laid out can be translated to any custom HID your heart desires. Give it a try with that old peripheral that’s been gathering dust in the corner.

Interfacing with an analog joystick

[Firestorm_x1] put together a tutorial about interfacing an analog joystick with a microcontroller. These analog sticks are easy to find; he got his from Goodwill but we’ve got a couple in our junk box right now. The stick uses variable resistors to report its position so it’s just a matter of reading and interpreting that data. After explaining the concepts he demonstrates how to use the joystick to control a Basic Stamp 2 based robot, the Boe-Bot. This could easily be adapted for use with other robot platforms.

Cubicle-dwellers rewarded for reflexes

[StudioJooj] is trying to torture or test his colleagues in his office. A lot of folks leave a candy jar on their desks for all to enjoy but he’s making his friends work for their reward. Like cubicle-dwelling lab subjects, they must successfully navigate his maze to be rewarded with chocolate. The game piece is an amazingly orb-like peanut M&M candy. The maze is constructed from plywood and moves on two axis with the help of a couple of servos. The user interface includes a couple of NES console buttons to release the game piece and a PS2 joystick to control the maze. [StudioJooj] was nice enough to include a music video in his project clip.

We wonder the M&Ms will disappear faster or slower than they would from a candy jar.

[via SparkFun]