Visual Basic + Joystick

Hello!

People, I want to developed a UAV, but first, I want understand and make same experience in ground of course... I want to move a servo in arduino by joystick. I know, we dont use Arduino, but is similar, so, I think thats ok to help me. I want to connect my arduino in PC and theJoystick USB connect in my PC. So, when I`ll move the joystick in my PCfor exemple, to the left, the servo in arduino will move to the left. Iwant to do the same, like the example below:
http://principialabs.com/joystick-control-of-a-servo/

Ok, but I want to do with Visual Basic or C# NOT in Pyton.
Anyone can I help me?
I searched in google but not sucess.... Cry

Thanks in advance!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Just spotted there has been a few people asking for this code sample and just seen that there is an upload button. A bit late but might be useful for anyone else who come across this post.

    vb joystick.zip

    https://storage.ning.com/topology/rest/1.0/file/get/3692200224?profile=original
  • Hello All, I too would love to see this code. i know this thread is old but if somebody could email me the code, or even better, post it here for everyone to see... thank you!

    zmzmbyu at hotmail dot com..

  • Hi there!

    I also found this post and I would really appreciate if any of you would send me the vb example.
    I'm trying to control a CNC lathe with a joystick, and this could actually help me a lot.
    Thanks!

    email: pedro.m.b.cruz@gmail.com
  • James,
    I am working on a similar project where I am having some problems with Visual Basic 2010. Would you be willing to send me the VB code as well? Thanks

    brmitchell04@gmail.com

    Ben Mitchell
  • Moderator
    check out this off the shelf solution.
  • No problem. I've emailed you the Visual Basic project.

    James
  • Reinaldo, I haven't looked in detail at your link in but it looks like you are trying to connect a joystick to a pc and send it to a serial based servo controller?

    If this is a the case I have some sample visual basic code using directinput, All this version does in read the joystick and send it it out the serial port for use with an SSC. It's fairly generic and wasn't written for use with Arduino so you could modify the output for use with whatever servo controller you like, even so it will give you a good start. Your right about google, there seems very little on the subject and most what I found was very old (VB 6). i'll see if there is somewhere I can upload the project.

    James Turner
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: @DanielChiaJH @diyrobocars @circuitlaunch Here's my car's view of that race. About 8.4 second lap times for laps 2 and 3... both…
Monday
DIY Robocars via Twitter
RT @DanielChiaJH: Great racing against @a1k0n today at @diyrobocars! Pretty cool to both break sun-9s at the track today I think I got very…
Sunday
DIY Robocars via Twitter
Broadcasting the @circuitlaunch race live now at https://m.twitch.tv/diyrobocars Races begin around 2:00pm PT
Saturday
DIY Robocars via Twitter
RT @a1k0n: ran a huge number of hyperparameter tuning experiments yesterday; now I can train a new policy, far with better quality, in 15 m…
Saturday
DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
Sep 26
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
Sep 26
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
Sep 26
DIY Robocars via Twitter
Sep 24
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Sep 23
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Sep 22
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
More…