Google Tag

Showing posts with label Bluetooth. Show all posts
Showing posts with label Bluetooth. Show all posts

Friday, May 06, 2016

Arduino Basics: Bluetooth Tutorial 1

Arduino Basics: Bluetooth Tutorial 1 by Scott C:  

Introduction: The bluetooth shield used in this project is a great way to detach the Arduino from your computer. What is even better, is that the shield allows you to control your arduino from your mobile phone or other bluetooth enabled device through simple Serial commands. In this tutorial we will connect a Grove Chainable RGB LED to the bluetooth shield directly, and send simple commands using the Bluetooth SPP app on a Samsung Galaxy S2 to change the colour of the LED (Red , Green and Blue)

Notes:
You don't need to download a library to get this project running. But if you plan to use bluetooth shields to get 2 Arduinos to communicate to each other, then I would advise that you download the library files (which are just examples) from the Seeedstudio site : here.

Visit this site to setup your phone or laptop for bluetooth communication to the shield - here

The app used on my Samsung Galaxy S2 phone was "Bluetooth SPP"

You will initially need to enter a pin of '0000' to establish a connection to the Bluetooth shield - which will appear as "SeeedBTSlave" or whatever text you place on line 90 of the Arduino code above.



Warning !

Not all phones are compatible with the bluetooth shield. 
If you have used this shield before - please let me know what phone you used - so that we can build a list and inform others whether their phone is likely to work with this project or not. Obviously - those phones that do not have bluetooth within - will not work :).
And I have not tried any other apps either

I got it to work very easily with my Samsung Galaxy S2 using the free Bluetooth SPP app from the google play store.

Sunday, December 29, 2013

Arduino Bluetooth Android Remote Control Car


Arduino Bluetooth Android Remote Control Car by Kostas Kokoras 

Arduino Bluetooth Android Remote Control Car



[English]
Its an old RF R/C toy car that i converted it to Bluetooth ( R/C) remote controlled from a smartphone with an application that i made with MIT App Inventor. For the movements i use the Smartphone's internal orientation sensor and some buttons to turn on/off the lights, to activate the horn, to change "gears" and to connect to Bluetooth module of the car.

I removed all the electronics from the car except the motors and i installed 6 new AA 1,2V rechargeable NiMh 1900mAh batteries. I designed new electronics based on Arduino with a HC-05 Bluetooth module and two h-bridge ic's. The SN754410 for steering motor and the L298N for forward/backward motor. For both ic's i connected parallel the channels, 1 with 4 and 2 with 3.

[Ελληνικά]
Πρόκειτε για ένα παλιό τηλεχειριζόμενο με RF αυτοκινητάκι, το οποίο μετατράπηκε σε τηλεχειριζόμενο με BlueTooth και πλέον μπορεί να ελέγχεται από κινητό smartphone μέσω ενός Application που φτιάχτηκε με την εφαρμογή MIT App Inventor. Για τις κινήσεις χρησιμοποιούνται οι εσωτερικοί αισθητήρες του κινητού, καθώς επίσης η εφαρμογή έχει κάποια κουμπιά για start-stop, σύνδεση με το BlueTooth, φώτα, κόρνα και ταχύτητες.

Έχουν αφαιρεθεί τελείως όλα τα παλιά ηλεκτρονικά μέρη εκτός από τα μοτέρ, και εγκαταστάθηκαν 6 καινούργιες επαναφορτιζόμενες μπαταρίες ΑΑ 1,2V NiMh 1900mAh. Το κύκλωμα οδήγησης βασίζεται στο Arduino με το HC-05 Bluetooth module και δύο οδηγούς για τα μοτερ (h-bridge). Το SN754410 για το μοτερ του τιμονιού (δεξιά-αριστερα) και το L298N για το μοτερ κίνησης (μπρος- πίσω). Και στους δύο παραπάνω οδηγούς έχουν συνδεθεί παράλληλα τα κανάλια 1 με 4 και 2 με 3 για περισσότερη ισχύ. (περισσότερο ρεύμα ανά μοτερ).
Here are some pictures of the building procedure

Arduino Bluetooth Android Remote Control Car by Kostas Kokoras








You can view the schematics here.


Download my Android Apps!
Κατεβάστε τις Android εφαρμογές μου!



To download from Google Play scan QR Codes or click the banners.
Για να κατεβάσεις τις εφαρμογές σάρωσε τους QR Codes ή πάτα στις εικόνες.




You can have the Arduino Code here.
You can have the APK file for the Android here, it is designed for Samsung Galaxy SIII mini, and i dont know how it will look or work to other Android devices.
You can have the source files for AppInventor here so you can modify to your needs.

Kostas Kokoras


Don't forget to visit my youtube channel here to check out my other Arduino videos.

NOTICE : Use all information in this page (hardware schematics, Arduino Code, Android Code, etc) in your own risk.