Pages: [1]   Go Down
Author Topic: 8 button bluetooth remote control with 1 joystick  (Read 629 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have a bluetooth remote control with 8 simple push buttons

play pause
fw
rw
vol+
vol-
home
bright up
bright down

this are simple push buttons

wanto to make that an analog joystick make to press for me this 8 buttons with certain location of the joystick
i.e.
joy up vol+
joy down vol-
joy right fw
joy left rd
joy up-right playpause
joy up-left home
joy down left  bright-
joy down right bright+

so with jus 1 controler y can get this 8 button working with an arduino usb board,

but waht other devices i need to get to make this work  and if it will be possible to make it

what do i need relays or Optoisolatori

the thing is that i want to instal this remote control on my car but i only have space for 1 button or joystick so need somenting to use this 8 buttons whit just 1 joystick


thanks
bets regard hann

Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 86
Posts: 3459
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The simplest way of doing this would be to analog read the position values based on where you want the button to be, and use IF statements to activate the corresponding button. It is not a very smart way of doing it, but it will work.
Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The simplest way of doing this would be to analog read the position values based on where you want the button to be, and use IF statements to activate the corresponding button. It is not a very smart way of doing it, but it will work.

thanks but what pieces i need to purchase i have the joystick i have the code to analog read ti but the problem that i have is to make it press the buttons for me  i just need to press then once except for home i need that one to be pressed for more thant 3 secs

thanks
Logged

Queens, New York
Offline Offline
Faraday Member
**
Karma: 86
Posts: 3459
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To press the button, find the contact point on the button OR the pin on the IC, make a solder point for that button and connect it to the I/O pin on the arduino.
use either case statements or IF statements
just an example

Code:

byte buttonPlay = 2;
byte buttonPause = 3;
byte buttonFForward = 4;
byte buttonRewind = 5;
home, vol up, vol down,etc.

//seudo code
if(analogRead(Xposition) == 500 && analogRead(Yposition) == 400){
       digitalWrite(buttonPlay, HIGH)
}
else {
       digitalWrite(buttonPlay, LOW)
}

//repeat for other buttons



Logged

Created Libraries:
NPV2 (NewPasswordV2),  TFT_Extension, OneWireKeypad, SerialServo.
Will provide libraries if asked in PM or forum.

Pages: [1]   Go Up
Jump to: