interfacing AVR with a Visual Basic program

Hi there,

Does anybody know of or have any smaple project interfacing AVR with a Visual Basic program running on PC?

Regards

yes, lots of us do that.

On the PC side, it’s merely creating a normal program with a serial port comm control and your code to set baud rate, etc. and open the port. Then either poll for input or wait for input event, etc. Nothing different than any other VB program.

I’ve done this with VB6 for years. I’ve used but today avoid VB.net as it is so bloated and C# like that you may as well use C++ or C# as VB.net is not VB.

Examples on avrfreaks.net and the projects section.

stevech:
yes, lots of us do that.

On the PC side, it’s merely creating a normal program with a serial port comm control and your code to set baud rate, etc. and open the port. Then either poll for input or wait for input event, etc. Nothing different than any other VB program.

I’ve done this with VB6 for years. I’ve used but today avoid VB.net as it is so bloated and C# like that you may as well use C++ or C# as VB.net is not VB.

Examples on avrfreaks.net and the projects section.

stevech,

Thanks for responding. Where can I get a sample program to learn from? I want a VB6 program and a program that runs on AVR and communicate with that VB6 program. Thanks

smdfan

Simply write a program for the AVR that sends a continuous stream of, say, ‘*’ characters and write a VB program to receive and display them. Once you get that working you should be able to do do more complex stuff.

Leon

leon_heller:
Simply write a program for the AVR that sends a continuous stream of, say, ‘*’ characters and write a VB program to receive and display them. Once you get that working you should be able to do do more complex stuff.

Leon

You are right. If I get that simple thing done then I could develop it further. But to get that thing done, I could spend long time sifting through books or look at a sample program and be on my way very quickly. All I need a bare bone program. Then I am done. Thanks

Where can I get a sample program to learn from?

I want a VB6 program and a program that runs on AVR and communicate with that VB6 program.

smdfan

OK. Earlier I suggested that you look in the projects section of avrfreaks.net for examples of AVR code in C or ASM that sends and receives on a serial link/UART.

As to the VB6 code… First get the above going - learning how to use Atmel’s AVRStudio/WinAVR or one of the demo-mode C compilers, or the AVR assembler.

On the PC, just use any terminal program like Hyperterm or Bray’s Terminal. Once you have the AVR semi-mastered, you can worry about a VB6 program.