FORUMS
Remove All Ads from XDA

Remote steering wheel control ( v1.2.1 ) based on Arduino + (BT)?

271 posts
Thanks Meter: 166
 
By _crue_, Senior Member on 3rd February 2014, 06:51 PM
Post Reply Email Thread
25th May 2019, 10:07 AM |#201  
Senior Member
Thanks Meter: 32
 
More
Quote:
Originally Posted by _crue_

I'm grad to release my app for managing remote control of a steering wheel.
solution based on arduino and my own app for Nexus 7 tablet. (sure it could be used any where else)

I'm used Arduino mini (not the best option, but this is what I had). and Arduino usb adapter (for serial communication)



Arduino diagram:


sketch for arduino based on carlynorama / Arduino-Library-Button
you can find sketch in attachmanets
also as RemoteInputsMgr app.



if you have a problems with app, try to install Usb serial monitor and check is there any messages in Serial,
my app uses the same lib


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.1:

  • added Bluetooth support
  • changed service implementation
  • added notification in status bar (not removable)
  • added freetronics support
--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.2:
  • updated to 1.2
  • fixed restoring connection after deep sleep
  • fixed issues with connecting to Arduino Micro and Leonardo.
  • fixed handling usb detach action when used Bluetooth
--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.2.1:
  • updated to 1.2.1
  • fixed executing Hold event
--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.2.2:
  • updated to 1.2.2
  • fixed issues related to using of FTDI devices
--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.3.0:
  • updated to 1.3.0
  • added support bluetooth devices in master mode (in general much better then use look device conncetion)
  • connection fixes for bluetooth
  • added broadcasting data recive action for communicating with external apps
    action: org.kangaroo.rim.action.ACTION_DATA_RECEIVE
    exrta: org.kangaroo.rim.device.EXTRA_COMMAND, org.kangaroo.rim.device.EXTRA_ARGS
    data format that accepted from device "<extra_command:extra_args>"
  • added support recive data from external apps for sending to device
    action: org.kangaroo.rim.action.ACTION_DATA_SEND
    exrta: org.kangaroo.rim.device.EXTRA_COMMAND, org.kangaroo.rim.device.EXTRA_ARGS
    data format that will be sent to device "<extra_command:extra_args>"

master device configuration:
//AT+ROLE=1 - master
//AT+CMODE=1 - connect to all device (or yse could use 0 with BAT+BIND=mac,of,you,device)
//AT+SENM=3,0 - allow to connect to tablet after pair even table if hidden
//AT+IAC=9e8b33 - stay visible

device init code for arduino:
PHP Code:
void setup()
{
  
pinMode(KPinOUTPUT);
  
pinMode(SPinINPUT);  
  
  
Serial.begin(115200);  
  while (!
Serial);  
  
Serial.flush();
  
  
digitalWrite(KPinHIGH);
  
delay(500);
  
Serial.print("AT+RESET\r\n");
  
Serial.flush();
  
delay(1000);
  
Serial.print("AT+INIT\r\n");
  
Serial.flush();
  
delay(1000);
  
Serial.print("AT+INQ\r\n");
  
Serial.flush();
  
digitalWrite(KPinLOW);

example for testing external comminication with tasker:




--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.3.1:
  • updated version to 1.3.1
  • added no history and no recent for app
  • compiled for api 16

--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
version 1.3.2:
  • updated version to 1.3.2
  • fixed broadcast intents for custom commands

Could you share us the source code for android apk ?
 
 
27th May 2019, 08:51 AM |#202  
OP Senior Member
Thanks Meter: 166
 
More
Quote:
Originally Posted by ngochoangimsat

Could you share us the source code for android apk ?

https://bitbucket.org/crue/remoteinputsmgr/src/master/
The Following User Says Thank You to _crue_ For This Useful Post: [ View ] Gift _crue_ Ad-Free
Post Reply Subscribe to Thread

Tags
arduino, bluetooth, in-car, remote control andorid, steering wheel controls

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes