GemcodeStudios / ObjectDetectionTracking

Object Detection and Tracking Over Bluetooth
MIT License
16 stars 9 forks source link

Code working but no output in serial monitor #1

Open shubhamsati opened 5 years ago

shubhamsati commented 5 years ago

Code is successfully running but the L298N motor driver is not running and hence no movement of robot is there. There is no output on serial monitor

SohailAnwarShah commented 5 years ago

If there is no serial monitor output in the Arduino Editor, I would go through the following checks:

  1. Check that the Android App has correctly connected to your Bluetooth module. To do this you must pair your phone with the bluetooth device outside of the App first. Once paired the BT device module will appear in the App within the Bluetooth settings. Select the device and wait until the flashing red light on the BT device goes away. Note the App does not support BLE devices.
  2. After successful connection, ensure that the serial monitor is connected to the correct USB port your microcontroller (Arduino) is connected.
  3. In the serial monitor check that you have Newline selected.
  4. The App is designed to work only at the default serial communication rate of 9600 b/s. Let me know how you get on.
Chiliukas commented 4 years ago

I do not know why Arduino receiving data not in real time. App brings me data in serial monitor after i hide the tracking color. Just floods with all missing data in monitor after i hide the tracking object. What is the problem? Settings?

SohailAnwarShah commented 4 years ago

Hi, Try changing the BT Serial Tx Buffer Size down to 1. The app is sending a lot of data over serial which can start to buffer up. This is likely to cause delay in the Serial monitor. Changing the settings in app as stated will not buffer any values.

Hope that helps. If not let me know.

Thanks and regards

Sohail

On Thu, Nov 21, 2019 at 6:25 PM Chiliukas notifications@github.com wrote:

I do not know why Arduino receiving data not in real time. App brings me data in serial monitor after i hide the tracking color. Just floods with all missing data in monitor after i hide the tracking object. What is the problem? Settings?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GemcodeStudios/ObjectDetectionTracking/issues/1?email_source=notifications&email_token=AHWASLBPCRDNFIWTFH2DZODQU3G73A5CNFSM4HOILJR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEE3GBZI#issuecomment-557211877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWASLDMQJ7OYQHU5CKYKCTQU3G73ANCNFSM4HOILJRQ .

Chiliukas commented 4 years ago

Result is the same if i change Buffer size to 1. Now i found out what the same situations is with overs apps. Maybe i must change some setting in Android OS?

Chiliukas commented 4 years ago

My basic code did not work correctly, but now i used your code ObjectTrackerRobot4WDV2 and everything works well :) Just i changed tx/rx inputs from pin 4 and 5 to 0 and 1.

SohailAnwarShah commented 4 years ago

Hi,

Thanks for letting me know. I am glad you have been able to resolve your issue. The Arduino code I have been using for the 4Wheel robot is a somewhat over complicated and can certainly be simplified. Once this is done I will post it onto github.

All the best in your projects.

Sohail

On Thu, Nov 28, 2019 at 9:24 PM Chiliukas notifications@github.com wrote:

My basic code did not work correctly, but now i used your code ObjectTrackerRobot4WDV2 and everything works well :) Just i changed tx/rx inputs from pin 4 and 5 to 0 and 1.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GemcodeStudios/ObjectDetectionTracking/issues/1?email_source=notifications&email_token=AHWASLHH6MXXFHSG5NAJMA3QWAZI7A5CNFSM4HOILJR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNOMEQ#issuecomment-559605266, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWASLFDS6HTY43IRKCF3NTQWAZI7ANCNFSM4HOILJRQ .

Chiliukas commented 4 years ago

Now i have another problem :D Today i start playing with coordinates. And i found that i get coordinates only from beginning of tracking. And coordinates do not change if i move object to another place. Received coordinates changed only about 10 points.

SohailAnwarShah commented 4 years ago

Hi, Sorry for the late reply but been on holiday. Have you tried reducing the tx buffer size in the app settings. Future releases will consider only sending changed data.

Regards,

Gemcode Team.

On Wed, Dec 11, 2019 at 7:29 PM Chiliukas notifications@github.com wrote:

Now i have another problem :D Today i start playing with coordinates. And i found that i get coordinates only from beginning of tracking. And coordinates do not change if i move object to another place. Received coordinates changed only about 10 points.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GemcodeStudios/ObjectDetectionTracking/issues/1?email_source=notifications&email_token=AHWASLDTBI2H7YN33D3Z6ELQYE5QXA5CNFSM4HOILJR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGUJJLA#issuecomment-564696236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWASLFTC4JHTB42OS6XBKLQYE5QXANCNFSM4HOILJRQ .