How to Create a GUI in Visual Basic and Load Input into PIC18F2550 via USB?

AI Thread Summary
To create a GUI in Visual Basic for user input and load it into a PIC18F2550 via USB, start by programming the PIC to support USB communication. It's recommended to select a PIC that supports USB or use a USB-to-UART converter for easier integration. Establish a communication protocol for sending commands from the GUI to the PIC, ensuring that the PIC can interpret the commands correctly. Finally, develop the GUI in Visual Basic, utilizing serial communication controls to manage data transfer. This approach will facilitate controlling a servo motor in your ASRS system effectively.
syee10
Messages
27
Reaction score
0
I am sorry because i recreate this post because the old thread is missing =(

I need to create a GUI using Visual basic to get input from user.A simple button click will be enough for the GUI.After i get the input, i need to load the input into PIC18F2550 through USB. This will then control my servo motor as i am creating an ASRS system. So anyone here can give me some advices/guidelines on how to create the GUI and how am i going to load the input from user into the PIC?
I need to use Visual basic to do all the programming or program it separately by using Visual basic to create GUI and use software like MPLAB to load my user input into PIC?

St3
 
Engineering news on Phys.org


This may be a little bit complicated depending on your experience. There are a number of different things that must be done to accomplish this.

1) The PIC should probably be programmed first so that the GUI creation will be easier. You'll need to determine what type of protocol. You said you wanted USB so you'll have to pick out a PIC that supports USB. I don't know if there are any that would be usable in a PICKIT 2 or whatever you may be using. So the other option would be to use something like this from Microchip: USB-to-UART (http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en546923). Then all you need to do is program the UART serial from whatever PIC you use. Almost every PIC made has UART support.

2) If you end up using UART you must have a protocol, you know a set of commands that will be sent across the bus. This can be anything you want. You'll just have to be able to read it from VB.

3) Finally create the GUI. There is a serial communication control somewhere. I can't remember exactly where it's at but it would basically be serial port (I think). This you may need to do more research on.

Hope this helps at all. Email me or check out my blog for other information

--------------
Justin Coulston
justin.coulston@gmail.com
TheModernEngineer.blogspot.com
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...

Similar threads

Back
Top