Show Posts
Pages: 1 [2] 3 4 ... 26
16  International / Réalisations et Projets Finis / Re: Robot d'inspection piloté par Androïd on: June 24, 2014, 10:14:29 am
bonjour Artouste  smiley

 smiley-eek smiley-eek pas la bonne orientation ...

L'Appli est orientée paysage en utilisant les accéléromètres de l'appareil
Code:
android:screenOrientation="sensorLandscape"
As-tu ce genre de capteurs sur ton dinosaure??  smiley-wink

Je peux te compiler l'appli avec une orientation paysage classique
Code:
android:screenOrientation="landscape"
17  International / Réalisations et Projets Finis / Joystick bluetooth Commander Version 5.0 on: June 23, 2014, 02:58:51 pm



Joystick bluetooth Commander Version 5.0 est maintenant sur Google Play
Le sketch de démo AndroTest V2.0 est ici
Le protocole de communication est décrit

Voilà  smiley-wink


18  Using Arduino / Networking, Protocols, and Devices / I Know What You Did Last Summer on: June 23, 2014, 09:57:11 am
Jaap, this is FilingCab V1.6
PWM frequency was boosted from 490Hz to 20KHz to get rid of hissing noise at low speed
Also the infamous SoftwareSerial library was dropped  smiley-evil

Serial:
- move pin #11  to  RX1 (pin #19)
- move pin #12  to  TX1 (pin #18)

PWM:
- move pin #5   to  pin #11
- move pin #6   to  pin #12

Smoother and quieter control

Happy driving, mind the stair  smiley-wink


19  Using Arduino / Networking, Protocols, and Devices / SoftwareSerial limitations on: June 23, 2014, 07:14:16 am
I just tried running two servo's using SoftwareSerial on pins #2 & #3, and also got the "Tick-Tick syndrom"
SoftwareSerial disables interrupts while sending a byte.
This interferes with the Servo library, which relies on timer interrupts

The hardware Serial port should always be used, if possible, before considering SoftwareSerial.
Additional readings

Possible options
- drop SoftwareSerial and use pins #0 and #1 (disconnect pins before uploading sketch)
- try using ServoTimer2 or AltSoftSerial libraries that use a different timer (not tested)
- get an Arduino Mega which has additional hardware serial ports


20  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 23, 2014, 02:05:18 am
For the servo's test, please go to "settings/joystick properties" and uncheck "Auto return to center"

So, the servo's are jerking, but the values are stable in the serial monitor ??
Are the servo's jerking only near joystick limit positions (-100 or +100) ??

I remember having problems with digital servo's, some years ago  smiley-roll
some wouldn't accept the total 0 to 180° rotation range

Just to make sure, please modify code to limit range to 45 to 135°
Code:
 joyX = map(joyX, -100, 100, 135, 45);
  joyY = map(joyY, -100, 100, 45, 135);  


if it works, you may try
Code:
 joyX = map(joyX, -100, 100, 170, 10);  
  joyY = map(joyY, -100, 100, 10, 170);

21  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 22, 2014, 01:43:34 pm
Quote
You wrote here that Softserial doen'nt work with servo lib. It is always true?
Try
https://www.google.com/search?hl=en&as_q=%22SoftwareSerial%22+%22servo%22+%22library%22+arduino&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=&gws_rd=ssl
 and see for yourself  smiley-wink

I tried your sketch, removing Wire and snootor references; serial monitor readings are 100% stable
Please upload Pan & Tilt demo sketch at reply #242

//  Arduino pin #0 to TX BlueTooth module
// BT TX to be disconnected from D0 during sketch upload
// pinServo_X=9        pinServo_Y=10

Do not use SoftwareSerial for the moment, let me know how it works
Which Arduino board are you using ??

22  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 22, 2014, 11:08:57 am
Quote
Je n'ai pas encore testé en détail (j'ai remarqué qu'il y a pleins d'options)mais je voulais te féliciter pour ton travail qui a l'air énorme!

Les seuls points négatifs que j'aurais à redire sont sur la communication de ton programme, mais je te rassure ce sont des points de détails comparé au reste de ton travail:
- Tu devrais éditer ton premier post pour mettre ton versionning en sens inverse: le plus récent en haut de la liste (on a plus l'habitude que ce soit dans ce sens et ça perturbe pour trouver la bonne info)
- Pour les renvois vers les posts des version etc fais juste un lien hypertext sur le post en question par exemple si tu parles de la réponse #256 tu la transforme en #256 c'est de suite plus pratique.
- Pour le coté GooglePlay met un lien direct vers le programme exemple (fichier .ino) car sinon il faut venir sur ce post, chercher la dernière version, et ensuiite se rendre à la réponse #256 pour enfin faire un copier/coller du code: le nombre de manip est rebuttant et cela peut causer problème pour une personne qui s'y connait pas trop mais qui voudrait utiliser ton appli.
Thanks  john_lenfr for the comments, feedback is always welcome
I will definitely add more links to reply #1  smiley-wink


Quote
I have a problem and servos are "ticking" even if there is no command.
not normal behavior  smiley-roll-blue smiley-roll-blue
Possibly electric noise or MCU internal timers interaction
please post your full code, I will try it on my side

What happens if you comment
Code:
 sendBlueToothData();

Let me know

EDIT: which Arduino model are you using ??
23  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 22, 2014, 10:58:02 am
Quote
Hi All,
Ive been using this app (v5) for my remote controlled filling cabinet project. https://vimeo.com/98759560
Kas has been helping intensively both with customizing the app and the Arduino code.
Attached is the final code I used, incl distance sensor feedback & Battery level and lots more.

Hardware: Arduino mega, DC Motor Driver 2x 15A - Lite,  BT2S Bluetooth to Serial Slave, HC-SR04 Distance Sensors, Pride electric wheel chair, blood sweat and tears. You can find more making of videos on: https://vimeo.com/jaapdemaat/videos.


For info
Jaap is a senior graphic designer, based in Rotterdam and London
The Cabinet ("I Know What You Did Last Summer") is currently exhibited at the Royal College of Art, in London, up to June 27th


@Jaap,
Thanks again for your hospitality in London, I really enjoyed entering your universe for a while


24  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 22, 2014, 06:00:44 am
Quote
Hi All,
Ive been using this app (v5) for my remote controlled filling cabinet project. https://vimeo.com/98759560
Kas has been helping intensively both with customizing the app and the Arduino code.
Attached is the final code I used, incl distance sensor feedback & Battery level and lots more.

Hardware: Arduino mega, DC Motor Driver 2x 15A - Lite,  BT2S Bluetooth to Serial Slave, HC-SR04 Distance Sensors, Pride electric wheel chair, blood sweat and tears. You can find more making of videos on: https://vimeo.com/jaapdemaat/videos.


For info
Jaap is a senior graphic designer, based in Rotterdam and London
The Cabinet ("I Know What You Did Last Summer") is currently exhibited at the Royal College of Art, in London, up to June 27th


@Jaap,
Thanks again for your hospitality in London, I really enjoyed entering your universe for a while


25  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 21, 2014, 03:37:56 am
Quote
hi kas , i saw your nice app and i thought telling you a problem that  i have with my app.. well my hc-06 disconnects in really random times.. it might work for 10 minutes or more with no problem while on the other hand it might start disconnecting again and again without being able to understand why..
Any ideas why this might happening?

Thank you  smiley smiley

@zaxarias

Some shots in the dark
- Your board is resetting due to high load, use a separate power supply for Arduino
- intermittent contact within breadboard, move and secure components
- defective BT board, not an expensive item, try a spare one

Let us know the outcome
26  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 17, 2014, 07:00:55 am
Quote
Hi Kas.
Have briefly tried it and it works ok, will give a thorough test when I have finished my domestic duties today by order of her indoors   smiley-wink

Cheers mate
Vic

Great  smiley
Remember, you can adjust Zero position, max move and motors direction
When you have time, please post a video showing both App screen and moving gimball

27  Using Arduino / Networking, Protocols, and Devices / Pan & Tilt demo on: June 17, 2014, 03:48:56 am
@thornlv
Sorry guy, I was too self confident in modifying the code and not testing it  smiley-red
I just modified my code (reply #354)
Now fully tested on Serial Monitor smiley-wink

Please upgrade and use Joystick BT Commander V5.0
28  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 16, 2014, 12:14:22 pm
@thornlv
Quote
Have tried the updated Andro_Pan_Tilt sketch but it did not work.
What happens is the servos centre and when I use the joystick I get a few lines of positions in serial monitor and then 'communication error' repeating lines. MyservoX changes to full 180 position  and stays there (motor whirring) whilst MyservoY does nothing.
Go to settings/About and confirm your actual App version
What is your Arduino board model ??
You don't need to connect motors before you get sensible readings on your Serial Monitor

Quote
BT TX to D0, Servos to 9 and 10 (BT RX not used ?)
Yes, no need to send data back to your phone
29  Using Arduino / Networking, Protocols, and Devices / Version 5.0 ** now available ** on: June 16, 2014, 11:46:13 am
Joystick Bluetooth Commander Version 5.0  has just been published on Google Play

Change log:
 - improved communication protocol  see reply #252
 - smoother Joystick behavior  (thanks Bob1943)
 - automatically flip if the user turns device upside down  (thanks joepro)
 - optimized layout  (thanks billcat)

Demo sketch: AndroTest V2.0       see reply #256

Please let me have feedback, including screenshots

Enjoy   smiley-wink
30  Using Arduino / Networking, Protocols, and Devices / Re: Android Bluetooth joystick on: June 16, 2014, 10:18:46 am
@tolisn63
Quote
Great, thanks
just a few ideas that maybe can implemented in future releases.
1. Text overlay on the video feed, like a HUD. Instead of printing the arduino sent messages under the video screen  overlay them on the video feed.
Well... to keep it simple, I have Bluetooth and WiFi modules well apart
This is easier for maintenance and upgrade
Text overlay would create modules intricacy

Quote
2. Have an option to switch between the joystick style control and a four directional arrow control.
Nice suggestion
I will first implement the long awaited accelerometer control (tilting the Android device)

Quote
Any idea when Total RC commander will be available with the new protocol and a test sketch ?
Will wait for Joystick BT commander V5.0 feedback
Would say two or three weeks
Pages: 1 [2] 3 4 ... 26