Arduino Mega based DIY Remote (XBee)

So here are the changes. If you approve I will cut and ship. :smiley:

It looks good!

Thanks
Kurt

I got it cut out and even countersunk the linear slide holes. :smiley:

Sounds great. Can not wait to try it out.

Thanks again
Kurt

It arrived :smiley:

I used the palm sander to take away the shine, and then moved everything over to the new cover. I installed the new OLED into the hole. I used 2 pieces of double face foam on the two sides to fill the space and then installed it.

I think it is looking pretty good :smiley: 8)

Now I probably need to clean up all of the wiring, so that I can fit it inside the box.

Thanks again!
Kurt

Hi Kurt,

That looks awesome! :smiley:

The 4D Systems Touch TFT LCD arrived. I also purchased a 4D systems USB to serial adapter so I would not void the warranty.

Here is a picture of it next to the OLED (the first one I used in the remote before I screwed it up :frowning: ).

Note: the firmware of the display defaults to using their graphics language and portrait mode. But I can use their software to reconfigure it to use a serial command interface like the OLED, code I have played with. I will probably update to that. It also looks when you download the firmware you can change it to be in landscape mode as well. Trying to decide which way I will go with that.

Kurt

I have been playing around some with the Arduino Mega and the two nunchucks and the 320x240 display and have some stuff limping along. Right now it is pretty ugly…
AR-DIY-11.jpg

It is somewhat handling the touch events, I have not actually hooked up the code to use them yet. They are real simple and simply using the TextButton functions of the SGC commands. I wanted to see if someone else has done anything and ran into the site: sites.google.com/site/vilorei/ar … lcd-screen

So I went to where they had a library to download and am trying it out. Example output:
AR-DIY-10.jpg

Now I am trying to decide if I wish to convert over to their library or not. Has a lot of nice features, like being able to handle the uSD card that I could use on the board, or the sound output…

Kurt

Cool stuff you have there. :smiley:

This is pretty cool! Now you could not only press ā€œAā€ but press a button that says ā€œwalkā€! Depending on the bot which is connected using XBEE you could load a different command set. Really cool!

Xan

Thanks guys,

It will be interesting to see how far to take this. I could spend a lot of time on supporting this display as you can do lots of things, like playing WAV files for sound, loading bitmaps/videos from the micro-SD card, using either FAT16 file system or a raw format, note: I think the other smaller display can also do some of this with the RAW format.

In the past I have wanted the remote control to know nothing about what it was controlling, except to display strings or values that are sent to it from the robot. That way it is easy to work with 10 different ones with 10 different configurations…

But with this one could change to not have the logical generic 16 key hex display as the default, but instead maybe have for the Phoenix type code, where it shows, top level commands like: On/OFF, Walk/Translate/Rotate… When in Walk maybe shows list of Gaits, also maybe try to show other logical buttons, maybe check-box types, that say things like: Balance. Lots of possibilities. Only when you get to a place that needs it, would you show a 16 bit keypad. Things like choose a My value… But that is a lot of work!

So we will see how far I go. Right now I am still trying to decide if I want to convert my code over to the other code base or not. He does have some additional stuff that would be good to have and has already solved a few things like de-bounce buttons, which I still need to do (and his buttons look nicer).

Kurt

Kurt

Kurt,

What were you building again? ;>)

Talk about a creping design spec!

Just kidding. You DO have a lot of interesting ideas.

Alan KM6VV

This is soooo coool… 8)

Alan: Yep you are totally correct, this could (has) turned into a feature creeping project! :wink: As I said not sure how far to take it.

Xan, it could be pretty cool. Right now I will play around some more with the basics and then decide. One thing I may have to decide is if this will lead into something that others are interested in doing and if so, should I convert back to using some joysticks, either like the 4 in 1 I was using in the other Arduino box or …

Kurt

Hey Kurte, great work on the remote so far. Just wondering if you had some more time to play with the 4D Systems LCD? I’d be extremely interested to see all the features you mentioned could be added to it. Did you use serial commands or 4d Systems’ own scripting language?
Once I am done with my exams, I’m very tempted to build a d.i.y remote, in the image of the one you’re building ofcourse :slight_smile:

Nope, I have not had a chance to play with this in awhile. Been busy with other projects and the like. Hope to get back to it sometime soon. Have been trying to decide if I want to continue to do my own code to interface to the 4D system stuff or to use library that is more advanced (sites.google.com/site/vilorei/ar … lcd-screen). This is a nice library that runs both on Arduinos as well as Chipkits (Pic32mx…), which I am also playing with. But right now the Chipkit version of the IDE is not up to Arduino version 1.0 support yet. So he has not updated his library to work with 1.0 yet…

Kurt

Man… I need to get back to that…!

No worries. Cheers for the link, the library does indeed seem very advanced!

Hey guys,

Im looking to build a DIY controller with 2 joysticks to control my robots. Problem is its hard to find parts at a single place. I’d be paying more for shipping than the parts themselves. While I was able to find the parts needed in sparkfun I was not able to find a 4x4 keypad. Id like the A-F chars for some hex input. Any one know where I can find the following parts under one roof. Digi-key is the first place I looked however their prices are off this planet. For instance the keypad is close to US$20 I think.

Im looking for,

  • Sliding pots with knobs
  • 4x4 Keypad
  • Momentary switches
  • Toggle switches
  • Xbee Pros
  • AVR mega 2560 board (Arduino isnt my first choice but I can use avr gcc on Arduino mega). So Arduino mega will do.

Thanks in advance.

So far I am not sure if there is any one place, and I know what you mean about shipping costs… Maybe sometime Lynxmotion will kit up some of this stuff. But I end up buying from several different places…

Sliding pots with Knobs: I believe I bought those at Mouser
4x4 keypad - I would have to search our threads again on where first Robot dude bought them and then I bought a couple later. Before I had one with different lettering on it from digikey, that was a lot more expensive
Switches: Almost anywhere, some of mine came from Radioshack
XBee Pros: I am not using pros, but got most of mine from Sparkfun
AVR Mega 2560 (don’t have one yet, have old Mega) and several Seeeduino Mega: But got the last few through Amazon.com as I have free shipping (prime).

Kurt