Good Evening !
First, sorry for my horrible english.
Hello, friends! I would like an important help.
I’m trying to develop a bluetooth gamepad for PC,
with aSNES control. For the transmitter, I use an Atmega328p,
a Bluetooth module HC-05 as “Master” and the control of
the SNES.
For the receiver, I use an Atmega328p programmed with a
special library of V-USB joystick that has up to eight
buttons and a bluetooth module HC-05 as “Slave”.
I program the two Atmega328p microcontroller with my Arduino.
A small note: this V-USB library has the same electronic
schematic of V-USB Keyboard Library for Arduino.
http://www.practicalarduino.com/pics/vi … ematic.jpg
The only difference is that the D + goes to
the Digital Pin 2 of the Atmega and D - goes to Digital Pin 3.
And I’m using a Usb Cable “A” Type.
In the transmitter code, I use the Software Serial library and
the code, are defined the connection pins of the Bluetooth “Master”.
On the receiver “dongle”, the TX pin of the Bluetooth goes to the RX pin
of the Atmega and the RX pin of the bluetooth, goes to the
TX of the Atmega.
The codes are working reasonably. The devices
communicate with each other, but, there’s been a big latency and
sometimes the communication stop.
There is a person who is trying to help me, but he is very busy
and does not have a time to be able to help me anymore.
In one of the codes of files that attach to this message,
there is a test code where the transmitter sends chars
automatically. And one of these codes, it’s the SNES control.
Please, could someone help me solve the problems I described
about this project ?
I’m grateful for the attention.