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
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".
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?
Save four_in_one_demo_mod_fix_xxx.ino.key as four_in_one_demo_mod_fix_xxx.ino
7)Download IR library in GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols Arduino-IRremote-master.zip
8)Download MsTimer2 Library in Arduino Playground - 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
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
The code is attach . This code is copy from this site.
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.
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!
C:\Documents and Settings\Ägaren\Mina dokument\Arduino\Robot bil\four_in_one_demo_mod\four_in_one_demo_mod.ino: In function 'void autoRunUsingUltraSonic()':
four_in_one_demo_mod:227: error: 'stopCommandPressed' was not declared in this scope
exit status 1
'stopCommandPressed' was not declared in this scope
I just completed putting one of these together. I wanted to understand each module, shield and function so I will be revisiting this project a lot. A few things that are limiting to me that I wonder if anyone has comments on.
The motor shield is for two motors and they are running 4. This is probably why you cannot steer and drive at the same time. I wonder if a 4 motor shield wouldn't give you far more capability. One speed is all you get as well.
The infrared controller (using a mini remote control) is very annoying. You lose line of sight so fast you find yourself running after it in order to make direction changes. Also, it requires one push button at a time, meaning.. drive forward, stop, steer left, stop, etc. No fluidity of motion whatsoever. I wonder if one of those Funduino joystick/button controllers (or equivalent) with a second transmit side Uno wouldnt be a better idea.
The bluetooth option is annoying for that same reason, however it IS much nicer in that there is no need to run after it. My issue is I want to use the bluetooth on my laptop and the app they give you is for Android devices only. I tried DuOS, an Android emulator for Windows 10 only to learn DuOS doesn't let bluetooth thru the emulator. The same controller in number 2 above has bluetooth and NRF24 capability.
I spent a few hours trying to get the line tracking to work. It was very dicey and just when I thought I had it, I didn't. I will try getting the sensors closer to the floor to see if that helps, but I wonder if two sensors wouldnt work as well or better than three. One on each side of the black line should keep it centered maybe?
I sort of expected this little solution to do everything smoothly, but because of the one direction at a time limitation, it turned out to be somewhat disappointing. The plan is to figure out how to make those issues go away. Any thoughts?
I have been trying to build a multi-functional Bluetooth car by following your guide and code. I had little success but need assistance in further completing the car. I hope someone would help me !
First I made all the hardware configuration as mentioned in the guide and as per the code. Then uploaded the V5.0 code but nothing worked. The robo car did not move at all. I see the signals pass through IR remote to receiver but nothing happens. So I uploaded V4.0 code and had little success.
The Ultrasonic distance module worked when I pressed the >| symbol in the IR Remote. Car moves perfectly and works as expected.
But the other things does not work for me.
(1) Trying to use the car by IR Remote mode: When I press "2" button through IR Remote the car just moves only a step ahead. Motors does not spin continuously when I keep pressing the 2 button in the remote. If I release the 2 button and press once again it again make one rotation of motor. The same happens when other buttons like 4, 6, 8 are pressed. Only one rotation of motor happening on every button pressed through IR Remote.
(2) Trying to use by Bluetooth Remote : All configurations are done and the car gets connected to the bluetooth. When I press the forward button or for that matter any button through the Bluetooth remote there is a huge delay in the signal transmission. For example it is like 10 seconds after I press the forward button the car begins to move forward. The same happens when other buttons are used. It is not continuous and there is this delay.
Can someone please help me to fix the above two issues ? I have been building this car for my son but at last he is very disappointed that it is not up and running.