Digistump Digispark | Autonomous Robot Car | Arduino Project

In this tutorial, we’ll show you how to make Autonomous Robot Car with the Digistump Digispark.

GETTING STARTED

Autonomous Robot Car is a robot that performs pre-programmed behaviours or tasks with a high degree of autonomy. Autonomous Robot Car can able to move in forward or backward direction and to turn right or left direction. It uses Digistump Digispark to control L9110S Dual Motor Driver Module to drive the Geared DC Motors. We can control speed of the Geared DC Motors by the Pulse Width Modulation (PWM) signal and can also control direction of the Geared DC Motors by the value of digital signal.

COMPONENTS REQUIRED

Components that you’ll required:

Digistump Digispark

L9110S Dual Motor Driver Module

2WD Robot Car Chassis

Li-ion 18650 3.7V Battery

Dual Li-ion 18650 3.7V Battery Holder

2-Pin Screw Terminal

170 Tie-Points Breadboard

Jumper Wire

Type-A to Type-Micro B USB Cable

Please check out here to buy these components.

CONNECTIONS

Digistump Digispark | Autonomous Robot Car | Arduino Project | Connections

Digistump Digispark | Autonomous Robot Car | Arduino Project | Connections

Now, let’s see the connections.

– Connect the Geared DC Motors to the L9110S Dual Motor Driver Module.

– Connect the A-1A Pin of L9110S Dual Motor Driver Module to the Digital Pin P0 of Digistump Digispark.

– Connect the A-1B Pin of L9110S Dual Motor Driver Module to the Digital Pin P1 of Digistump Digispark.

– Connect the B-1A Pin of L9110S Dual Motor Driver Module to the Digital Pin P2 of Digistump Digispark.

– Connect the B-1B Pin of L9110S Dual Motor Driver Module to the Digital Pin P3 of Digistump Digispark.

– Connect the VCC Pin of L9110S Dual Motor Driver Module to the VIN Pin of Digistump Digispark.

– Connect the GND Pin of L9110S Dual Motor Driver Module to the GND Pin of Digistump Digispark.

– Connect the Positive Terminal of Battery Holder to the VCC Pin of L9110S Dual Motor Driver Module.

– Connect the Negative Terminal of Battery Holder to the GND Pin of L9110S Dual Motor Driver Module.

PROGRAMMING

In order to program the Digistump Digispark, you’ll need to download the software and source code from the links below.

Arduino IDE: https://www.arduino.cc/en/Main/Software

Source Code: Autonomous_Robot_Car.zip

Now, let’s program the Digistump Digispark.

– Connect the one end of USB cable to the Digistump Digispark, and another end to your Computer.

– Open the sketch in the Arduino IDE. This program enables the Digistump Digispark to control L9110S Dual Motor Driver Module to drive the Geared DC Motors according to the pre-programmed behaviours or tasks. This program doesn’t require any library.

– Select the proper Board from the Tools menu of Arduino IDE.

– Click on the Upload button to upload the sketch.

– The status box of Arduino IDE will now ask you to “Plug in device now…” and will timeout in 60 seconds, at this point you need to plug-in the Digistump Digispark or unplug and replug it.

If the upload is successful, the message “Done uploading” will appear in the status bar of Arduino IDE. After a few seconds, you should see the Autonomous Robot Car starts moving.

WANT TO LEARN MORE ABOUT ARDUINO?

Build a strong foundation in Arduino and Open-Source Electronics with this Comprehensive Course.

eductronics™ The Complete Guide to Arduino | Arduino Course | Arduino eBook

eductronics™ The Complete Guide to Arduino | Arduino Course | Arduino eBook

WANT TO SUPPORT US?

We love to share our knowledge with you and we need your continued support to enable us to continue with our work with the same vigour and passion. If you like eductronics™ and appreciate the information and knowledge we provide, please consider supporting us. Every contribution, however big or small, helps us keep going!

Please visit our Support Us page to make a contribution online.

LIKED THIS TUTORIAL & WANT TO READ MORE?

Here is the list of some tutorials, that you may find useful.

Share this Post

About eductronics

eductronics™ is a team of skilled, experienced Makers and Inventors. We provide Courses, eBooks, Tutorials, and Projects on Microcontroller and Microprocessor-based Development Boards, Single Board Computers, Open-Source Electronics, Internet of Things (IoT), Home Automation, and Robotics.