Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to create gamepad using MCU and VB

Status
Not open for further replies.

Deexith Hasan

Advanced Member level 4
Joined
Oct 24, 2014
Messages
111
Helped
4
Reputation
8
Reaction score
3
Trophy points
18
Activity points
740
i designed a program in PIC to send no 1,2,3,4 through serialport when 4 buttons are pressed respectively.....
in VB i designed an app, if 1 is received then sendkeys up....etc...
the project worked......

i used debounce in button..
Code:
if(RD0==0)
{
while(Rd0==0);
serialwrite('1');
}

so when button is pressed only one 1 will be sent and my keyboard up-arrow will be pressed........ BUT IN REAL GAMING we need to press up arrow continuously....i tried removing while statement thn my VB does not respond to mcu as read buffer is fully filled with 111...

how to create a real gamepad
 

kam1787

Advanced Member level 3
Joined
Jul 5, 2010
Messages
928
Helped
167
Reputation
340
Reaction score
168
Trophy points
1,323
Location
English
Activity points
5,825
I'm kinda doubt VB is the best choice. I would have used C for the speed and interrupt capability
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top