Show Posts
Pages: 1 ... 7 8 [9] 10 11 ... 26
121  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 14, 2014, 04:25:34 pm
Quote
best wishes and thanks again for the cool app
Thanks billcat
Please let us have your feedback whenever you can
122  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 13, 2014, 09:47:43 am
Hi billcat

I finally could reproduce the problem, my fault   smiley-red
Please download and run attached sketch (V10.3)

 - button #1 controls on board LED (D13)
 - button #2 controls debug mode (output to Serial Monitor)
 - button #3 and #4 are just configured as push button (momentary contact)

Please let me know the outcome, especially for button #1
123  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 12, 2014, 03:19:09 pm
Quote
I wonder if you would consider my intentions, and provide some guidance on modifying the code/code snippets to ease me along?

OK

First step

1) Which Arduino board are you using ?

2) download and run this sketch and confirm baurate + firmware version

Code:
// JY-MCU Bluetooth Dongle configurator
// Credit to Jeff Simpson

// Utility will display actual Baud rate and as an option,
// set up a new Baud rate

// TX BT board pin to Arduino D2
// RX BT board pin to Arduino D3
// 5V BT board pin to Arduino 5V
// GND BT board pin to Arduino GND

#include "SoftwareSerial.h"

SoftwareSerial mySerial(2, 3);          // BlueTooth module TX RX
char response[21];                      // responses from module
int rv = 0;                             // return value
boolean found = false;                  // module found
int bps;

void setup()  {
  Serial.begin(57600);
  mySerial.begin(57600);
  delay(300);
  Serial.print("\n\nJY-MCU Bluetooth Dongle configurator ");
  Serial.print("\nSearching ");            // Search for BT module on 12 possible baudrates
  long baud[12] = {1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, 1382400};
  for(int a = 0; a < 12; a++)
  {  mySerial.begin(baud[a]);
     delay(300);
     mySerial.write("AT");               // "AT" will respond with "OK" if it is working
     delay(20);
     mySerial.readBytes(response, 2);
     delay(20);
     if (strncmp(response, "OK", 2) == 0)
     {  Serial.print("\nBluetooth Module found at BAUD ");
        Serial.println(baud[a]);
        found=true;
        break;
     } else  Serial.print(".");
  }
  if (found==false)
  { Serial.println("\nERROR: Bluetooth Module not responding!");
    Serial.println("Make sure there are no active bluetooth connection and try again");
    while(1);
  }
  
  delay(100);
  mySerial.write("AT+VERSION");           // Check the firmware version
  while(mySerial.available() == 0);
  mySerial.readBytes(response,2);
  if (strncmp(response, "OK", 2)==0)
  { rv = mySerial.readBytes(response, 20);
    response[rv] = 0;
    Serial.print("Firmware Version: ");
    Serial.println(response);
    Serial.println();
  }  else  {  
    Serial.println("Error checking BT Version");
    Serial.println();
    while(1);
  }

  while(Serial.available())   Serial.read();
  Serial.println("To modify Baud rate, enter:");  
  Serial.println("  1  for   1200 bps");  
  Serial.println("  2  for   2400 bps");  
  Serial.println("  3  for   4800 bps");  
  Serial.println("  4  for   9600 bps");  
  Serial.println("  5  for  19200 bps");  
  Serial.println("  6  for  38400 bps");  
  Serial.println("  7  for  57600 bps");  
  Serial.println("  0  to Exit\n");
  Serial.print("Selected: ");
  
  while(Serial.available()==0);
  bps = Serial.read();
  if(bps>=48 & bps<=56)  {    // '0' < bps < '8'
  Serial.println(bps-48);
    if(bps>48)  {
      mySerial.write("AT+BAUD");           // Set the BAUD
      mySerial.write(bps);
      while(mySerial.available()==0);
      mySerial.readBytes(response, 2);
      if (strncmp(response, "OK", 2)==0)  {
        rv = mySerial.readBytes(response, 7);
        response[rv] = 0;
        Serial.print("New BAUD setting: ");
        Serial.println(response);
      }  else  {
        Serial.println("Error Setting BAUD");
        Serial.println(response);
      }
      Serial.println("Bluetooth Setup Completed  ** End **");
      while(1);
    }  else  {
      Serial.println("No modification  ** End **");
      while(1);
    }
  }
  else    Serial.println("non valid entry  ** End **");
}

void loop() { }
Exit code by pressing "0"


3) for the good sake, confirm that the JY_MCU led changes from blinking to solid red when connecting within Android BT Joystick
124  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 11, 2014, 03:01:17 pm
Check your mail
125  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 10, 2014, 01:27:23 pm
Let me have your email via PM
126  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 10, 2014, 10:39:32 am
Quote
Great news, if you want I can also test. I have a wanscam IP camera (similar  to foscam)

Why not  smiley

This a screen shot of "Total RC Commander" V0.1B:

The application is working but for the moment, the screen is optimized only for a 8" tablet
I suspect the application needs at least 7" to display the information correctly
sorry, no phones  smiley-confuse smiley-confuse

Do you have a tablet ??
Please let me have size and resolution
127  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 10, 2014, 02:17:41 am
Quote
Quote
any chance that you  can add a window to show the feed from a wifi camera? Then we will have the ultimate robot controller
smiley-roll smiley-roll smiley-roll
that's a slightly more complex story  

OK
Did some research, looks definitly doable
I will order a Foscam IP camera which is well supported and documented


I already started development using another android device (Sony Xperia Mini) as an IP camera

Thanks tolisn63 for this smart idea, and... for keeping me busy  smiley-wink
128  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 06, 2014, 02:10:30 pm
Quote
any chance that you  can add a window to show the feed from a wifi camera? Then we will have the ultimate robot controller
smiley-roll smiley-roll smiley-roll
that's a slightly more complex story  smiley-wink
129  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: January 06, 2014, 01:57:31 am
Hi juycce

Quote
do u think in a future could make one to be IOIO otg compatible?
Sorry, no experience yet with IOIO  smiley-confuse

Quote
this app is the best,on Google Store
Gracias smiley-red

130  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: December 25, 2013, 10:11:59 am
Hi hib1,

I am currently on holydays and will be home next week
In the meantime, please make sure you are using the latest AndroLED Arduino demo sketch (V10.2)
modify:
Code:
boolean DEBUG = false;
to:
Code:
boolean DEBUG = true;

DEBUG can also be toggled using Button #2

Let me know the outcome

@all
Merry Xmas  smiley smiley
131  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: December 13, 2013, 03:29:08 pm
Hi kovacsgellert, thanks for your comments

Quote
Referring back to an older post I believe as well that the addition of accelerometer to the available control options would be really nice.   smiley
I had the idea to develop an accelerometer based application, but it didn't generate enough interest here, to justify development time   smiley-confuse
132  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: December 05, 2013, 09:44:32 am
Quote
Edit, problem solved, Thanks KAS for the time you have put in, I will upload a "dummy's guide" later in a bid to contribte : )
Glad you sorted it out
Your contribution will be very welcome  smiley-wink
133  Community / Exhibition / Gallery / Re: GPS logger on: December 05, 2013, 09:15:46 am
Hi Gabi,

Thanks for your interest, welcome to this forum

Quote
- Have you thought about include another battery and measure the impact in the autonomy ? It must duplicate it, doesn't it?
You can install a second battery and get twice the time
Alternatively, replace the 1000mAH 14500 battery by the larger 1500mAH 18650 model

Quote
I'm thinking too in a temperature logger. I guess a temperature sensor will consume less power than a gps so the autonomy with two of those batteries could increase to a few days
For temperature, just hibernate the processor between two readings, with 2mn log time, your battery should last well over one month

Quote
What's the point of the CR1220 battery? are there a realtime clock? or it's used for another reason?
This is the GPS backup battery for storing ephemeris data and allow "warm boot" in a couple of seconds (cold boot takes one minute)
Since my last post, I replaced the battery by a .22 Farad supercap



Quote
Which GPS module has been used for your project?
Fastrax UP501, $27 shipped
http://www.ebay.com/itm/High-performance-and-Quality-UP501-GPS-Antenna-Module-For-Arduino-/170979281074?pt=LH_DefaultDomain_0&hash=item27cf28c8b2

134  International / Fran├žais / Re: ATMega328 seul on: November 28, 2013, 12:28:23 pm
Bonjour,

Un exemple d'alimentation directe en 3.2V (LiFePO4) ici
135  Topics / Robotics / Re: Balancing robot PID tuning trouble on: November 24, 2013, 12:45:08 pm
Impressed  smiley-eek-blue smiley-eek-blue smiley-eek-blue
Your project is really moving in in the right direction

Quote
I still can't get proper, clean balance when robot stays stationary. I looked at the Balanduino and it's very still when stationary, it uses the same motors as me so I know it's doable.
I suggest you come back to the basics and, before moving it,  make sure you bot can stay still forever
Encoders feedback will help staying at the same place
 
Code:
int updatePid(float targetPosition, float currentPosition)   {
  float error = targetPosition - currentPosition;
  pTerm = Kp * error;
  integrated_error += error;                                      
  iTerm = Ki * constrain(integrated_error, -GUARD_GAIN, GUARD_GAIN);
  dTerm = Kd * (error - last_error);                            
  last_error = error;

  count = -count_R;
  pTerm_Wheel = Kp_Wheel * count;
  dTerm_Wheel = Kd_Wheel * (count - last_count);                            
  last_count = count;
  return -K*(pTerm + iTerm + dTerm + pTerm_Wheel + dTerm_Wheel);
}

This is how bot should behave when pushed:


I also used (count_R - count_L) to compensate for motor speed difference, and follow straight lines

Quote
I'm thinking of adding a 3rd PID loop to control motor speed
I had the same idea, as motor torque is very weak at low PWM.
Have a look at the second source code here...

Ho... I can't see your sensor board
Make sure it is located near the COR (R for rotation)

Good luck for your Quest for Balance  smiley-wink
 
Pages: 1 ... 7 8 [9] 10 11 ... 26