Show Posts
Pages: 1 ... 8 9 [10] 11 12 ... 26
136  Community / Exhibition / Gallery / Re: GPS logger on: November 14, 2013, 04:04:20 pm
@el_supremo

Yeah, that the way to go
Closing Tags should always be added after each Long/Lat recording, as the logger may be switch off at any time.
Out of curiosity, what's about ???
Code:
#ifndef BATTERY
.....
137  Community / Exhibition / Gallery / Waterproof box on: November 14, 2013, 03:50:48 pm
@Peter_I

Quote
And I like the box.
Is it a waterproof cigarette case?
Just a general purpose box
Search for "waterproof" "box" "plastic" on eBay
example: ($2.85 shipped)
http://www.ebay.com/itm/Outdoor-Waterproof-Plastic-Container-Key-Money-Storage-Box-Case-Holder-/180917961914?pt=LH_DefaultDomain_0&hash=item2a1f8d04ba



Thanks for the comments
138  Community / Exhibition / Gallery / Re: GPS logger on: November 14, 2013, 12:43:43 pm
Hi Pete,

Quote
If you don't actually need the .CSV file itself, you could record the data directly to the SD card

You are right, no real need for the cvs file
I choose this road for three reasons:

1) Terminate the file with the relevant ending Tags
Code:
      </coordinates>
    </LineString>
  </Placemark>
</Document>
</kml>

Could be done on the fly:
 - open SD card file
 - rewind 56 Bytes (erase previous ending Tags)
 - Write Long + Lat
 - write ending Tags
 - close file

2) compute average speed, cumulative uphill and downhill...

3) Get a final file with date stamp, which is not possible within Arduino ecosystem

Thanks for your interest
139  Community / Exhibition / Gallery / GPS logger on: November 14, 2013, 10:48:36 am
Yes this is another GPS Logger project
Track is recorded on the SD card as a .CVS file which is then converted as a Google Earth .kml file
Just download and double click on the attached sample file (you should be logged to the forum to see the file)
It will directly open in Google Earth and display the track.



This logger design is focused on low power consumption by combining several technologies that can be reused for other, non related, projects:
A stripped down Arduino (plain AtMega 328P, $2.99 shipped) removes Led's and FTDI overheads. Processor works @ 8Mhz, 3V.
The board is directly powered by a single 3.2V lithium iron phosphate battery; no need for a power hungry DC/DC converter.
Finally, the processor is put asleep below 3V to avoid battery deep discharge.
By combining all those, I was able to improve battery life from a couple of hours to 20+ hours





This project is rather modular and educational, it will let you master several techniques
 - Arduino on a board (thanks Super Nick  smiley-wink)
 - LiFePO4 battery technology
 - battery monitoring w/o voltage regulator (not trivial...)
 - Arduino sleeping modes (thanks again Nick)
 - GPS NMEA 0183 serial protocol
 - SD Card SPI communication
 - Python scripting
 - KML format
 - soldering and packaging in a nice waterproof box

Disclaimer: I invented nothing, just putting stuff together  smiley-wink

Should you need additional info's and links on specific points, let me know
140  International / Français / Re: Bluetooth JY-MCU on: November 08, 2013, 01:54:17 am
Quote
ok , merci , c'est  sympa
ce sera une valeur de trim independante (nouvelles "variables" vers arduino ) ou impactant les valeurs X/Y du joystick sous android ?
Il s'agit d'un décalage de zéro sur les valeurs X/Y du joystick (de -10 à +10)

Quote
quand c'est dispo tu fais signe ici ?
OK  smiley-wink


@BobbyWomack
Nous avons détourné le sujet initial  smiley-roll-blue smiley-roll-blue smiley-roll-blue
As-tu résolu ton problème de transmission ??
141  International / Français / Re: Bluetooth JY-MCU on: November 06, 2013, 11:17:16 am
Quote
un truc qui pourrait etre sympa, mais je sais que la place est comptée
mettre 2 slider (un en X et un en Y) pouvant etre utilisé sur arduino comme trim ou autres usages.

Je prepare une nouvelle application qui permettra également le pilotage avec les accelerometres, en inclinant le smartphone.
En raison de la place limitée, j'ai inclu un écran séparé pour le réglage du trim.
Voici une copie écran dans Eclipse:

142  International / Français / Re: Bluetooth JY-MCU on: November 03, 2013, 01:28:55 am
Quote
déjà et sans avoir aucune idée des possibilités/difficultés, je verrais bien un bouton clickable au centre de la "boule" du joystick

J'ai essayé, ça ne donne rien d'intéressant, car le fait de presser le bouton central entraine souvent un déplacement indésirable du joystick.  smiley-sad-blue
J'ai donc ajouté des boutons, qui peuvent être configurés en ON/OFF ou en poussoir
143  International / Réalisations et Projets Finis / Re: Robot Araignee on: November 02, 2013, 06:25:52 am
Super boulot, en conception et en réalisation
Il ne te manque plus qu'une carte Bluetooth et un smartphone pour piloter la bête

Va voir ici:
http://forum.arduino.cc//index.php?topic=195225.msg1451921#msg1451921
réponse #7
144  International / Français / Re: Bluetooth JY-MCU on: November 02, 2013, 06:11:26 am
OK
Si tu as des commentaires ou suggestions pour améliorer l'application, je suis preneur  smiley-razz
145  International / Français / Re: Bluetooth JY-MCU on: November 02, 2013, 05:55:43 am
Quote
super appli, je viens de tester sans probleme sur un galaxy ace et module BT HC-06
Merci   smiley-red

Quote
ce serait difficile de mettre une gestion du mode de fonctionnement (un pti bouton) du joystick entre retour auto au centre ou garder la position apres "relachage" ?
Regarde Options/Joystick behavior (auto return to center),
ça doit pouvoir t'aider  smiley-wink
146  Using Arduino / LEDs and Multiplexing / Re: LED control via Android smartphone on: November 02, 2013, 05:19:31 am
Arduino sketch needs to be modified for Joystick Bluetooth Commander V3.X
(modified communication protocol)
More details here
147  Topics / Robotics / Re: Bluetooth robotic dancer on: November 02, 2013, 04:51:15 am
This is the revised sketch, compatible with Joystick Bluetooth Commander V3.X
(modified communication protocol)

Code:
// Andro_Pan&Tilt      V3.1
// Arduino demo sketch for Joystick BT commander V3.X
// Controls two servo motors

// V3.0: Android BT Commander V3.X compatible, no button data management
// V2.5 can receive both Byte & Integer data
// V2.0: removed SoftwareSerial

// Android BT Commander settings:
// Options/Options for advanced users/Data Range        >>>  -180 to +180
// Options/Options for advanced users/Refresh interval  >>>  25ms

//  Arduino pin #0 to TX BlueTooth module
// BT TX to be disconnected from D0 during sketch upload

#include <Servo.h>

boolean    DEBUG =         true;

#define    pinServo_X     9
#define    pinServo_Y     10
#define    STX            0x02
#define    ETX            0x03
#define    MIN_Y          45             // vertical move limitation
#define    MAX_Y          180
#define    ZERO_Y         60             // vertical offset

int i=0;
byte cmd[6] = {0, 0, 0, 0, 0, 0};
Servo myservoX;                         // create servo object
Servo myservoY;

void setup()  {
  Serial.begin(57600);
  myservoX.attach(pinServo_X);  
  myservoY.attach(pinServo_Y);  
  if(DEBUG)  Serial.println("Stepper demo for Android BT Commander V3.X");
}

void loop() {
  if(Serial.available())  {                   // data received from smartphone
    delay(5);
    cmd[0] =  Serial.read();  
    if(cmd[0] == STX)  {  
      i=1;      
      while(Serial.available())  {
        cmd[i] = Serial.read();
        if(cmd[i] == ETX)  {
          if(i==2 && cmd[1]>48)                break;    // Button data
          if(i==5 && cmd[1]<3 && cmd[3]<3)     break;    // Joystick data
        }
        if(i>5)   break;
        i++;
      }
      if     (i==2)   Serial.println("Button data not implemented");             // 3 Bytes
      else if(i==5)   setServoPosition(cmd);                                     // 5 Bytes
      else            Serial.println("Communication error");
    }
  }
  delay(5);
}

void setServoPosition(byte data[5])    {
  int joyX = (data[1]<<7) + data[2];
  int joyY = (data[3]<<7) + data[4];
  joyX = joyX - 200;                         // Offset to avoid
  joyY = joyY - 200;                         // transmitting negative numbers
  
  joyX = map(joyX, -180, 180, 180, 0);      // (-180/+180 JBC range)
  joyY = map(joyY, -180, 180, 0, 180);

  joyY+=ZERO_Y;
  joyY = constrain(joyY, MIN_Y, MAX_Y);
  myservoX.write(joyX);
  myservoY.write(joyY);
  if(DEBUG)  {Serial.print(joyX); Serial.print(", "); Serial.println(joyY);}
}

Please post technical questions in the main thread
148  International / Français / Re: Bluetooth JY-MCU on: November 02, 2013, 04:21:06 am
Bonjour,

Voici un lien vers une App qui crée un joystick virtuel sur l'écran d'une tablette ou d'un smartphone Android
Coté Arduino, la meme carte JY-MCU est utilisée

http://forum.arduino.cc//index.php?topic=173246.0

Je suis dispo pour toutes infos complémentaires
149  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: November 02, 2013, 02:40:22 am
Hi o_lampe

Quote
BTW, if you get bored one time, pleeease write a version for stepper
motors as well  smiley-wink

What is your specific application that make you choose steppers over servo's ??


Quote
does anybody know the AT-command to change the PIN-code for the BT
module?

Assuming you have a JY-MCU or compatible board, see here and scroll down to mid page:

AT+PINxxxx  Sets the pairing password of the device
Any 4 digit number can be used, the default pincode is 1234
Response: OKsetPIN


Quote
It seems, that soft_serial only works up to 57600 BAUD. My BT-module was
setup to 115200 BAUD, that's why it didn't work

Using hardware serial, mega2560 board should be OK @115200 baud (and higher with
a third party Serial Monitor)
150  Community / Bar Sport / Re: How to handle collisions for a flying robot - video on: November 01, 2013, 08:39:58 am
Brilliant   smiley-eek smiley-eek smiley-eek
Pages: 1 ... 8 9 [10] 11 12 ... 26