Go Down

Topic: How to: Bluetooth & Infrared controlled Car with Ultrasone (Read 6061 times) previous topic - next topic

drsnugglesja

Online you can find a really cool robotcar, which you can control with bluetooth and infrared. On top of it, there is an ultrasone sensor. Splendid, but no proper assembly manual is to be found, and the code found online, could be better.

So I created a manual and improved the code, to share. I hope someone will find it useful.
-Assembly manual
-Assembly of ultrasone sensor (not mine), this is most difficult and requires some modifications with a drill.
-Code

Video of robot car


PS: you should remove the foil around the two base plates to make the car a bit more pretty. I didn't do that yet.

The car is for sale at Banggood.com, icstation, aliexpress, dealextreme and many others for around $80 or €70 and it's called "Multifunction Bluetooth Controlled Robot Smart Car Kit".

darvidanoar

Thanks, I have that exact kit coming in the post.  Looking forward to optioning it up to try and do some funky stuff.

Hanadi

can you post please the the arduino source code moving vechiles ! the 4DC

TheGasMan

Having trouble with the CODE above.  It keeps giving me the errors below:



C:\\Robot IR Remote\IRremoteTools.cpp.o:(.bss.irrecv+0x0): multiple definition of `irrecv'

C:\four_mod.cpp.o:(.bss.irrecv+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Error compiling.

Any Help?

creotiv

Having trouble with the CODE above.  It keeps giving me the errors below:



C:\\Robot IR Remote\IRremoteTools.cpp.o:(.bss.irrecv+0x0): multiple definition of `irrecv'

C:\four_mod.cpp.o:(.bss.irrecv+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

Error compiling.

Any Help?
Remove IRremoteTools from include, and also remove it from IRRemote library, but better just download new IRRemote library from here: https://github.com/z3t0/Arduino-IRremote

gurgen

Hi drsnugglesja, your instructions were very helpful. There is one problem though, I need the car to move slowly, when I change the speed in the code or change with android application, car doesn't move, and sounds strange sounds like (beep). How can I make it to go at least 2 times slower?

smartmecard

I shares information.
Below is my instruction and demo animation.
https://youtu.be/G-Q8FEqmgZU : How To Make Smart Robot Car With Arduino Uno R3 - IR RC + Bluetooth RC + Obstacle Avoidance + Line Tracking

https://www.youtube.com/watch?v=lRprGMqcNWU : obstacle avoidance demo
https://www.youtube.com/watch?v=ExaqOe6Te0c : black line tracking demo

Thank you for your shared codes. I fixed your codes and added enhancements.
If others needs my codes. visit my blog and download the codes.
https://smartmecard.wordpress.com/2016/02/06/arduinosmart-caravoiding-obstacles-demo/

# S/W Instruction
1) Access http://www.arduino.org/
2)Download Arduino IDE 1.7.8
3)Install it
4)Access https://smartmecard.wordpress.com
5)Download smart robot car source code file - four_in_one_demo_mod_fix_xxx.ino.key
6) Save four_in_one_demo_mod_fix_xxx.ino.key as four_in_one_demo_mod_fix_xxx.ino
7)Download IR library in https://github.com/z3t0/Arduino-IRremote Arduino-IRremote-master.zip
8)Download MsTimer2 Library in http://playground.arduino.cc/Main/MsTimer2 -> MsTimer2.zip
9)Go to C:\Program Files\Arduino\libraries
10)Copy library zip files Arduino-IRremote-master.zip and MsTimer2.zip to C:\Program Files\Arduino\libraries
11)Rename RobotIRremote folder name as RobotIRremote_backupAccess folder name
12)Run Arduino IDE 1.7.8
13)Load four_in_one_demo_mod_fix_xxx.ino
14)Sketch > Library > Add Library > Select Arduino-IRremote-master.zip and MsTimer2.zip
15)Sketch > Compile or Ctr+ R
16)Compiling will be successful
17)Connect usb cable to arduino and upload program

gusitos

Hello, I have problems with my smart car, I can not get the bluetooth work for me, it connects well with the car from my android (mobile) but does nothing. Could you help me?
Thank you

traducido con google.

smartmecard

Please check TX and RX connection.
    * Arduino RX is digital pin 10 (connect to TX of bluetooth device)
    * Arduino TX is digital pin 11 (connect to RX of bluetooth device)
Refer to https://youtu.be/G-Q8FEqmgZU : How To Make Smart Robot Car With Arduino Uno R3 - IR RC + Bluetooth RC + Obstacle Avoidance + Line Tracking

Talha909

The code is attach . This code is copy from this site.

https://smartmecard.wordpress.com/2016/02/06/arduinosmart-caravoiding-obstacles-demo/

I have all the connection and adjusted my pins.  I am facing some problem.  Only two types are working. IR remote is not working.  Ultra Sonic Sensor is also not work.  Plz suggest me. 

jfhk

The code is attach . This code is copy from this site.

https://smartmecard.wordpress.com/2016/02/06/arduinosmart-caravoiding-obstacles-demo/

I have all the connection and adjusted my pins.  I am facing some problem.  Only two types are working. IR remote is not working.  Ultra Sonic Sensor is also not work.  Plz suggest me. 
Hi!
I think your problem is that the IR Remote protocol codes has to be altered to your remotes codes.
There are different IrRemotes with different codes (protocol codes)
You have to write the right IR HexCodes for your IR-Remote into the sketch, go to examples in Arduino IDE and find IRRemote Test and run it with a IRreceiver diode attached to the right pins on your Arduino, look in the serial monitor for your codes when using the buttons on your IR Remote transmitter, these codes has to be written in the "four_in_one_demo.ino" sketch or has to be the same as them in the sketch.
I know, it is a bit messy explanation, but try it!

amrus2011

I have just tried t upload the code...four_in_one_demo_mod_fix_v0-4.ino...  After doing so, I got this error message.

 C:\Program Files (x86)\Arduino\libraries\RobotIRremote\IRremoteTools.cpp:5: error: 'TKD2' was not declared in this scope

Can anyone please help me to correct this problem.  I am new to Arduino and I have no idea as to what to do about this. 

Thanks.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy