Bluetooth & IR Remote - Elegoo Arduino Smart Robot Car Part 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 มิ.ย. 2024
  • In the second part of the series on the Elegoo Smart Robot Car, I’ll show you how to use both the Bluetooth and IR remote control features.
    Smart Robot Car Kit from Elegoo - www.elegoo.com/product/arduin...
    Full article at dronebotworkshop.com/elegoo-s...
    More articles and tutorials: dronebotworkshop.com
    Join the conversation on the forum: forum.dronebotworkshop.com
    Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
    If you need to know how to put the car together please see the first video.
    The Elegoo Smart Robot Car Kit has several features, including Line Following, Collision Avoidance, Bluetooth Remote, and Infrared Remote. Today we will examine the Bluetooth and Infrared remote controls. Both will allow you to drive the car using a remote control
    The Bluetooth remote makes use of the popular HC-08 Bluetooth module, which is attached to the Arduino Uno that forms the basis of the robot car design. To facilitate using the module Elegoo has provided an app for both Android and IOS devices, I’ll be showing you how to set up and configure the Android version.
    The infrared (IR) remote control uses a popular IR remote that is included in the Elegoo kit. The custom Arduino shield on the robot car has an IR receiver module.
    Elegoo has provided sketches to use both remote controls. I’ll go over the code with you, including a fix I needed to apply to get the car working properly.
    Here is what you will learn in this video:
    00:00 - Introduction
    01:44 - Understanding Bluetooth
    06:36 - Elegoo Bluetooth App
    08:44 - Defining keys
    12:22 - Bluetooth Blink Sketch
    15:04 - Bluetooth Car Sketch
    21:44 - Fix for turning problem
    22:25 - IR Remote Intro
    26:34 - IR Blink Sketch
    31:56 - Controlling the Car with IR Remote
    39:50 - Comparison of both remote control methods
    Even if you don’t own the Elegoo kit you can still benefit from the video and the accompanying article, as what is shown here will apply to almost any Arduino-based robot car design. But if you are starting from scratch I do recommend the Elegoo Smart Robot Car Kit, it’s a great value and it makes building your first robot car both easy and fun.
    Please subscribe to the channel so you can be among the first to know when I release the third video in this series where I will work with the Collision Avoidance and Line Following features of this robot car.
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 73

  • @ollieb9875
    @ollieb9875 5 ปีที่แล้ว +10

    I really appreciate your succinct annunciation. I like the slow pace. Thank you for making these videos.

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว +2

      You're very welcome Ollie, glad you enjoy them!

  • @b.h.7661
    @b.h.7661 5 ปีที่แล้ว +1

    Thanks for this video. Been trying to pair our little robot to phone for days. A few useful nuggets from your video and we are now in business! Wonderful :)

  • @OsoPolarClone
    @OsoPolarClone 5 ปีที่แล้ว +3

    I am enjoying your videos. Great job and appreciate the effort you put into them. They are very helpful for learning.

  • @TheIanmurphy
    @TheIanmurphy 4 ปีที่แล้ว

    Your videos are great. Really looking forward to a dedicated video on Bluetooth / using Bluetooth modules with arduinos. Hope that it’s still the plan to make a video on that topic!

  • @hafizmohammadnasirjamshaid3819
    @hafizmohammadnasirjamshaid3819 5 ปีที่แล้ว

    You're doing really great big fan of yours.....
    And the same question each time when will you start work on LIDAR A1M8 for a autonomous wheel chair

  • @nick0703
    @nick0703 4 ปีที่แล้ว +4

    God I wish you were my lecturer instead of the waste of space that I currently have - great job thanks

    • @marcdraco2189
      @marcdraco2189 3 ปีที่แล้ว +1

      Feel that mate. I was lucky to have some great lecturers but Bill even puts them to shame. It's great that he's doing this for a new generation, I hope they appreciate him,

  • @winterrose241
    @winterrose241 3 ปีที่แล้ว

    Thanks for the great video series.

  • @BenalRida
    @BenalRida 4 ปีที่แล้ว

    Great workshop. Is it possible to program the car to only go in a straight line and very slow as for dolly camera work? I would like to attach the Osmo Pocket on top of it? Would it be also possible to make the car go in large circle around a product which I am going to show like a motorcycle? Thanks.

  • @amlfty
    @amlfty 2 ปีที่แล้ว

    Many thanks for these valuable and detailed videos

  • @saeedsobhani4213
    @saeedsobhani4213 2 ปีที่แล้ว +1

    Amazing, thanks teacher, I always wanted to know how to build a robot.

  • @zyghom
    @zyghom 2 ปีที่แล้ว

    I am not sure what made me happier while watching this: how to remotely control the things or the fact, that I learned about the Danish King called.... Harald Bluetooth - omg ;-) Even the logo of BT is after him... ;-)

  • @brianjohnson2059
    @brianjohnson2059 5 ปีที่แล้ว +1

    Thank you for these videos. They help me tons.Have you ever thought of making a real robot. I mean like a Segway, with alternators for motors, wiper motors for the shoulders. with voice recognition. I have been working on this for over a year and I am burnt out on it.

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว +2

      Hi Brian. I have indeed thought about making a "real robot" and plan to do exactly that this year. Of course I'll document everything in my articles and videos. But I hadn't thought of using car parts for it, was thinking more along the lines of larger stepper motors and some efficient DC motors.
      Whatever I decide to use I want the parts to be commonly available and reasonably inexpensive so that other people can build it as well. It obviously wil take several videos and articles to describe it. If things go to plan I should have something together by the summer.

  • @krishpatel114
    @krishpatel114 2 ปีที่แล้ว

    Thanks for the video, But I need to find the codes to the ardunio pro mini for the same car, do you think you can help me? Thanks.

  • @jeffthomas3359
    @jeffthomas3359 10 หลายเดือนก่อน

    I have a Keyes studio robot car very similar to the elegoo. Might you have info/ video on that as well? Or do you have info on using iOS instead of Android thanks see

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว

    Excellent project 👍

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว

      Yes it's a very nice build, I was impressed by the quality of the kit.

  • @dabberd6203
    @dabberd6203 5 ปีที่แล้ว

    Hi Bill. Once again, you've put together a great video. One question about the Bluetooth / USB conflict. I note on the Mega there are 4 Tx/Rx channels so I assume that you could avoid this conflict but how would you attach the Bluetooth module to avoid the conflict?

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว +1

      Hi Dabberd. Yes, the Mega 250 has multiple RX channels so you can avoid the conflict. You would use the Arduino Serial function and specify another serial port( I.e. Serial1). Actually, you can also avoid the Uno if you make use of the Arduino Software Serial library, which allows you to use the standard I/O pins as serial ports (at somewhat reduced baud rate). I suspect the designers at Elegoo didn't do that as they have used up most of the I/O ports already for the other peripherals on the robot car.
      I will be doing another video that focuses on the Bluetooth module and using it with the Arduino as I really only scratched the surface on the subject in this one.

  • @matchxgaming9338
    @matchxgaming9338 14 วันที่ผ่านมา

    Thank you sir

  • @SushilHatkar
    @SushilHatkar 4 ปีที่แล้ว

    Can i add a camera. if so is there a video that is available for this. Thank you.

  • @jumbo999614
    @jumbo999614 3 ปีที่แล้ว

    I got the same "FFFFFFFF" hex code for repeat sequence for any button pressed. So I can't use "UNKNOWN" variables. If I don't include the UNKNOWN in switch/case statement, will it still work?

  • @Marva123
    @Marva123 5 ปีที่แล้ว

    I'm reading that the HC-08 supplied with the robot car is a fake technology based on the HM-10 module. I'm having trouble pairing with my android phone and I'm thinking of switching to the HC-05 bluetooth module I dont know if that will work since BLE and bluetooth are not the same protocols. Maybe just switching to the HM-10 module will work? Any suggestions?

  • @GeometryDash-nl9tn
    @GeometryDash-nl9tn 3 ปีที่แล้ว +3

    Where is the link to download the programing software

  • @mr.berlingo8211
    @mr.berlingo8211 3 ปีที่แล้ว

    My Smart Robot Car v.3.0 Plus came with a BT16 Bluetooth module, which uses Bluetooth 4.0 BLE. To avoid the need to unplug the module for programming, I modified it to put a switch in the Tx and Rx lines (like the Elegoo PenguinBot, which has a blutooth/upload switch). Unfortunately, I couldn't get the Bluetooth module to work, either I damaged it when fitting the switch or it was already faulty (the indicator light was very dim).
    I purchased a HC06 bluetooth module as a replacement, but this would not work with the Elegoo BLE app. It would, however work with an alternative app, "Arduino Bluetooth Controller" (Guimig Apps).
    I now have a BT16-a module on order which is identical to that provided by ELEgoo so should work with the Elegoo BLE app. This module is not easy to obtain. The module HM10 might also work as it also uses BLE 4.0.

  • @Joel4JC
    @Joel4JC 4 ปีที่แล้ว +1

    Which Tablet are you using? The specific app you are using on your tablet is no longer available in the Play Store.

  • @OUMLILKIDZ
    @OUMLILKIDZ 10 หลายเดือนก่อน

    hi need your help, I have mounted the KS0470 exactly according to the instructions but whenever turn it on the two left side wheels start running no stop

  • @ivanz9324
    @ivanz9324 4 หลายเดือนก่อน

    How to create remote control for this car based on WT32-sc01 plus board? Is it possible? (With or without video streaming?)

  • @debraperretta6610
    @debraperretta6610 4 ปีที่แล้ว

    Wondering if you can explain why the Rocker Control would not work on the App...DIY works fine...IR works fine too...I have been able to get everything else to work and have even been able to manipulate the code

  • @kirillbataev7544
    @kirillbataev7544 2 ปีที่แล้ว

    thankyou now my robot didnt go to waste :D

  • @TheRicoco2011
    @TheRicoco2011 5 ปีที่แล้ว

    Hello, I have an issue with the IR part.
    First of all, the code available on the elegoo site is different from the one that you show. There are no define UNKNOWN_Values on the elegoo version.
    Secondly, and the most problematic is that on my IR remote, all the key seem to send the same key when I keep a key down. They all send me 4294967295 or 2747854299 :(
    Do you have an idea why?
    Thx in advance!
    Edit: I copy/paste your code from your website and it's working fine. But I don't understand why when I use the serial monitor, all keys send me 4294967295 when they are keep down. Any idea?

  • @kasparneuenschwander9291
    @kasparneuenschwander9291 3 ปีที่แล้ว

    Hi Bill, I love your videos!
    How do you set the baud rate for the Bluetooth Device?

    • @pippaknuckle
      @pippaknuckle 3 ปีที่แล้ว

      Wasn't it using the baud rate you set the serial monitor at in the sketch?

  • @SebastianTEC
    @SebastianTEC 4 ปีที่แล้ว

    At about 12:53 you declare 'char getstr' as a global variable, even though it is only used in the 'loop()' function and it's value is assigned and never changed inside the scope of that function. Typically, for something like this, common practice is to use a local function variable rather than a global, since it is not globally assigned or important outside of that function. I was wondering if there is an underlying reason for this with Arduino Uno? Hardware optimization? Memory Allocation? Or is this just the way that you like to do things?

    • @karelhofman9848
      @karelhofman9848 ปีที่แล้ว

      arduino does not support local functions

  • @edsonquispe2212
    @edsonquispe2212 2 ปีที่แล้ว

    the module is in master or slave, I would like that help! and thanks

  • @subaehaitham
    @subaehaitham 5 ปีที่แล้ว +1

    Can you please show us how to use pixy2 cam in an obstacle avoiding car?

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว +3

      That sounds like a great idea Subae, I wil certainly consider it.

  • @KhaosOfficialYT
    @KhaosOfficialYT 3 ปีที่แล้ว

    Does anyone know how to reenable rocker mode and remove any program?

  • @gsdguitar024
    @gsdguitar024 4 ปีที่แล้ว +3

    I am having trouble controlling my car with the app. LED goes on after i upload the "bluetooth car" file to uno board. However, I have absolutely no control over the car once in the app on android. The app also states to "go to the elgoo website and download the latest tutorial" I am having trouble on that part as well.

    • @emroy2961
      @emroy2961 4 ปีที่แล้ว

      I have that issue too

    • @animesh_bhatt
      @animesh_bhatt 3 ปีที่แล้ว

      @@emroy2961 any solution? please tell

  • @Happymz
    @Happymz 3 ปีที่แล้ว +2

    Where do you find the code

  • @mahmoudhamdan1499
    @mahmoudhamdan1499 2 ปีที่แล้ว

    How can I replace the IR remote control with ESP to control the car

  • @lucascerri7293
    @lucascerri7293 4 ปีที่แล้ว

    hi the application i think is not available is there another application pls

  • @Mexthemen
    @Mexthemen 4 ปีที่แล้ว

    is it possible to switch the bluetooth to a strong long range bluetooth

    • @goku445
      @goku445 3 ปีที่แล้ว

      bluetooth IS short range. You want to use wifi or other RF for longer range. Search LoRa for example.

  • @nurealahisagor3317
    @nurealahisagor3317 5 ปีที่แล้ว

    can u provide this code pls?...i downloaded from the site...bt didnt work..no response

  • @DancesWithRobots
    @DancesWithRobots 5 ปีที่แล้ว +1

    Bluetooth Serial Controller by Next Prototypes on the Play Store is a great Bluetooth controller app. It's programmable, has lots of buttons and you can receive Serial.Print() messages from the Arduino in TERMINAL LOG mode. No affiliation I just really like it.

  • @passibharat
    @passibharat 5 ปีที่แล้ว

    Sir
    Voltmeter reading fluctuate on LCD please suggest idea to avoid

    • @SpeccyMan
      @SpeccyMan 5 ปีที่แล้ว +1

      Sample and average. Take several readings, sum them then divide by the number of readings you took.

    • @passibharat
      @passibharat 5 ปีที่แล้ว

      @@SpeccyMan please suggest syntax

  • @lanha3385
    @lanha3385 7 หลายเดือนก่อน

    I am trying to change the car to move only when the button is pressed. How do you suggest to do it?

    • @lanha3385
      @lanha3385 7 หลายเดือนก่อน

      for zeus car from Sunfounder. Remote control

  • @satan5677
    @satan5677 3 ปีที่แล้ว

    how do i connect the bluetooth?

  • @stern8888
    @stern8888 5 ปีที่แล้ว

    Please make a video on gesture controle car using nrf24

    • @Dronebotworkshop
      @Dronebotworkshop  5 ปีที่แล้ว

      I have done a video using the nrf24 Bira but I hadn't thought of using it for gesture control.

    • @stern8888
      @stern8888 5 ปีที่แล้ว

      So can you please make one with mpu6050 or just provide me the source code i have all the libralies

    • @stern8888
      @stern8888 5 ปีที่แล้ว

      Please i realy need your help all the parts are working individually but they are not communicating with each other i have used many source code from internet but not working

  • @syedhyder5630
    @syedhyder5630 3 ปีที่แล้ว

    Someone please share the link for the app

  • @DoctorUsher
    @DoctorUsher 4 ปีที่แล้ว +2

    Can you send program codes wirelessly? I am tired of connecting USB

    • @GeometryDash-nl9tn
      @GeometryDash-nl9tn 3 ปีที่แล้ว

      I cant upload my project because there is an error saying RECV_PIN was not defined

  • @sldr4christ01
    @sldr4christ01 ปีที่แล้ว

    How easily can this robot be controlled with a PS3 controller? I would love to do that with my high school students!

  • @lilasarkany3381
    @lilasarkany3381 5 ปีที่แล้ว

    I have an hc-05 Bluetooth module. It mostly Works fine, it connects to phone but if i send data to the arduino from the phone it don't do anything. I tested it with software serial but if I send letter for example 'a'
    i just get strange question marks and squares. Can anyone help me how to fix this, or why it is thoing this?

    • @Marva123
      @Marva123 5 ปีที่แล้ว

      Your need to change your baud rate on the serial monitor

    • @lilasarkany3381
      @lilasarkany3381 5 ปีที่แล้ว

      @@Marva123 I've alredy found the solution. There was everywhere to set baud rate to 11400 or something. But my module Works on 9600. It took me a while to figure this out, but thanks!

    • @Marva123
      @Marva123 5 ปีที่แล้ว

      @@lilasarkany3381 I'm glad you solved the solution yourself. You can also change the baud rate to other standard rates by using the 'AT + commands' in the Arduino serial monitor. I'm trying to change this robot so it can follow walls of a room. Bye for now.

  • @denielleompod7612
    @denielleompod7612 ปีที่แล้ว

    Cant connect to bluetooth due to incorrect passkey can you help me.

  • @stern8888
    @stern8888 5 ปีที่แล้ว

    Thanks for your repliy but can you help me in getting the source code i am using nrf24,mpu6050,arduino nano in transmitter and nrf24,arduino nano,h bridge moter driver in car pls help

  • @toddboni9313
    @toddboni9313 4 ปีที่แล้ว

    Who would you recommend to teach me arduino who is much less intelligent than yourself. I'm a 46 year old idiot when it comes to computers.