Drive Robot With Numpad
Oct 13, 2010I got a robot. And i want to drive it with numpad. So you can go in reverse, forward, left and right. I use a K8055 from velleman. Can someone help me with writing a program?
View 4 RepliesI got a robot. And i want to drive it with numpad. So you can go in reverse, forward, left and right. I use a K8055 from velleman. Can someone help me with writing a program?
View 4 Repliescreate a chat robot from theprogramming Currently I use Compiled language is VB.NET.From VB.NET in a few months exposure to MS SQL and use of these twotools to design my chat robot. That is fluent sentences of everyday language, a sentence stored in MSSQL.
As follows:
I say: <What did you say?
AI: I returned to what?>
A few months down the progress of the lack of progress.I can not find a better solution to enhance the smart until I found the AIMLchat robot.AIML is derived from the Artificial Intelligence Markup Language-basedword processing streaming XML.It is specifically designed to deal with sentence structure and the birth ofcomputer technology.I recently started slowly in contact with this technology AIML?[URL]
1 how to work a robot with vb ?
2 how do i recieve input from robot sensors ?
3 how do i send output commands to the robot ?
4 can you refer me to sources about the above ?
5 can vb interact with the software tobotbasic ?
6 is there a vb procedure for recieving text strings from another software that runs at the same time as a vb application ( like a revese getkeys()
7 can vb send commands to a robot via bluetooth if so how ?
This program is being used to analyze an excel document with coordinates for a robot. The entire program works...My boss indicated he wanted me to throw an exception in whenever a coordinate that wasn't being given a tolerance wasn't supposed to move, he wanted the program to give an error message. Which I figured out and outputs a message box saying "Result Compare Fail!"
Now here is my dilemma..whenever I encounter a section in the excel sheet analyzing multiple variables, I still get the error message, because the program doesn't think of it as multiple variable coordinates changing. Is there an easy way to fix this? I'm stumped! This is one of the cases, but they are all very similar.
[Code]...
Can i please get a copy of the code which you used to get the MSCOMM to connect to the robot and send single bytes of information? Having loads of errors with my code.Working on a similar project but using the mind-storm nxt kit.?
View 4 RepliesJust want to share the Robot motor control I made I used vb.net to control it, this is the first time I made anything like this and would love feedback on improvements[url]...
View 2 RepliesI have a user interface with pushbuttons, each starting a different process. Can I manage these pushbuttons via usb numpad? i.e. if 1 is pressed at numpad, pushbutton 1 will be clicked (so process 1 will start); if 2 is pressed at numpad pushbutton is 2 will be clicked and so on.
View 9 RepliesI have a user interface with pushbuttons, each starting a different process. Can I manage these pushbuttons via usb numpad? i.e. if 1 is pressed at numpad, pushbutton 1 will be clicked (so process 1 will start); if 2 is pressed at numpad pushbutton is 2 will be clicked and so on.
View 1 RepliesI wanted to have the same objective as the Thread Starter here.
I have this code right now
If e.KeyCode = Keys.K Then
e.Handled = True
SendKeys.Send("A")
End If
But then I want to bink key K to be recognize as Numpad 7 I have followed all the suggestions given in the said thread and found no luck. I'm just a newbie when it comes to things like this.
How can I get VB.net to work out that i have pressed +-*/ in Keydown events?
At the moment i am using a Select Case:
Select Case e.Key
'Numpad Numbers Keydown Events'
Case Key.NumPad0
Display.Append("0")
txtAnswer.Text = Display.ToString
Case Key.NumPad1
Display.Append("1")
txtAnswer.Text = Display.ToString
However, I can't find a key. thing to work with the numpad function buttons.
I tried using:
Case AscW(Chr(107))
Display.Append("+")
txtAnswer.Text = Display.ToString
But it didn't work,
How to map Numpad scan codes to keys in VB KeyPress event?
Meaning I want to track key 1 when NUMLOCK is ON OR OFF.
I'm running the following WMI script to get the associations between drive letters and physical drives on the system, but for some reason it omits CDROMs/DVD-ROMs. Can someone tell me how to get those as well?
Code:
ComputerName = "."
Set wmiServices = GetObject _
("winmgmts:{impersonationLevel=Impersonate}!//" & ComputerName)
Set wmiDiskDrives = wmiServices.ExecQuery _
("SELECT DeviceID FROM Win32_DiskDrive")
[Code3]...
I have a program that allows the user to enter a drive letter into a text box. The program then takes the letter and find the physical drive number (i.e. deviceharddisk3..). It then stripes out everything and leaves me with the number 3.
In VB6 I used mDrive.bas from vbAccelerator.com and it worked perfectly. I have been all over the internet and back and cannot find a solution written in VB.NET.
I want to make a tool that will assign a USB pen drive a drive letter, I am using WMI to acknowledge the device being plugged in, I can pull the deviceID, name, etc now I just need to work out how to assign the device to a drive and I just cant figure it out
View 4 RepliesThe drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.
View 1 RepliesDoes anyone know if there is a way to determine if a drive is local or a network drive?
View 1 RepliesI am trying to get the physical drive (device) number from the drive letter. If the user inputs the drive letter C the program will find the associated physical device number. For example if I input C then the result needs to be \Device\HardDrive1\... Some call it NT Device Name; I think. I have the code for VB6 from vbAccelerator, which works perfectly, but it does not work in VB.NET. My question is there a simple way of pulling the drive info that contains the drive letter and the physical device number. I have searched the internet and found nothing for VB.NET. I would post code but I have nothing for .NET.
View 1 RepliesUSB flash drive or pen drive in vb.net...
View 14 RepliesI have a program I am converting from VB6 to VB.NET and I am stuck at the very last piece of code. I need to determine what physical device number is associated with the drive letter.
The program takes the drive letter from a text box and goes and finds the device number (i.e. deviceharddrive3...) and strips out everything leaving me with the devicer number; in this case the number 3. I have searched the internet to and fro and found nothing in VB.NET.
My program in VB6 uses a .bas module from vbaccelerator.com called mDrive.bas and works great. I can't figure out how to convert it over to VB.NET.
My user requests to change the . on the numpad to a when entering text in a multiline textbox.So I was thinking about the KeyDown event.To determine if the numpad . was pressed I can do something like this [code]But now how do I change the returned charachter as a , ? All e.Key... properties are ReadOnly. The KeyPress events let me change this by providing e.KeyChar, but in that event I can't check for the numpad .
View 2 RepliesFirst off a short background of the project I am working on- I am developing a program that will be run off removable media (i.e. USB Flash drive). This will be a �virtual desktop� which you will be able to take with you and have the same �desktop� on any system. As we know drive letters can change with each host system the drive is plugged into, I need to be able to determine the path for the flash drive and access a specific folder ( i.e. My Documents)
I have an picture box(representing the icon) placed on my form (form1) and when I click the icon I want to be able to open and view the a specific folder from the portable drive. I need a click event that will determine a dynamic drive letter for a directory on the removable drive and then open that directory in an explorer window.
[Code]....
I am using the following code to get a list of the letters for each drive on my computer. I want to get the drive letter of CD Drive from this list. The code I am using to get list is as below:
[Code]...
Is it possible to check if a Logical device gathered through a WMI search request is a CD/DVD Drive? Right now, I can get the path of every Win32_LogicalDisk through WMI, but E: (for me) is my DVD drive and unless there is a disc, my program fails because it tries to count the number of folders/files on the disc.
Ultimately, I'd like to be able to tell if it is a CD/DVD drive then check to see if there is a disc there before I do anything else to it. Can it be done using WMI?
I have a function that copies files from a CD to my HDD:CopyFiles(CD_Drive, FullPath & "")
The problem is that the Drive letter "I:" is not consistent. Sometimes when I connect and disconnect external devices, the CD Drive letter changes and then my code doesn't work unless I open the project, change the letter "I" and recompile.What code can I use that will ALWAYS detect my CD Drive, regardless of the drive letter? (Like for instance, NERO will detect and burn CDs regardless of the drive letter)
dp.SyntaxHighlighter.ClipboardSwf = '/dp.SyntaxHighlighter/Scripts/clipboard.swf'
dp.SyntaxHighlighter.HighlightAll('4e1b98200b534bcfb11430c4ef5e5987')
I want my program to find the disk drive. I just do not know how to find it programmically? Can anyone help, please? This should be pretty easy, right?
View 12 Replieshow to open an .exe file from a that is in a certain file, what i am trying to do is create a program that will be portable-via jump drive or cd drive, the reason i feel stupid is that I did not realize that visual basic and vb.net are two different animals- I was trying to use app.path for days- then came across a post that set me straight that I can not use it.[code]
View 4 RepliesI have created a form that I would like to run from a jump drive, or cd drive, were the drive letter will never be the same-
Application.StartupPath is the answer I have come up with- Implementing it is difficult for me- all the examples I have seen retrieves the path and imports it to a textbox. What I got is a form will start a .exe of a portable program- ( that will be located on the jump drive, or cd)
I have created a form that will -when a button is pressed- execute an .exe to a program that will also be on the jump drive. how to do this from start to finish on how to run an .exe from a file that will not ever be located on the same drive-
I should add I'am using visual studios 2010, visual basic.net
What is wrong with this code...... it should remove all folders and files on the "J" drive i am using win7 and would like to just format the drive
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
My.Computer.FileSystem.DeleteDirectory("J:", FileIO.DeleteDirectoryOption.DeleteAllContents, FileIO.RecycleOption.DeletePermanently, FileIO.UICancelOption.DoNothing)
End Sub
End Class
In my keydown event handler, when Keys.Numpad4 is pressed with Shift, I get the same keycode code as for Keys.Right. Is this by design? How can I distinguish between the two?
View 5 RepliesI design photo viewer app using this code
[Code]...
now how to make my photo viewer open when user open drive C and get all photo in the drive to be shown in it ?