element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Attack of the Drones
  • Challenges & Projects
  • Project14
  • Attack of the Drones
  • More
  • Cancel
Attack of the Drones
Blog Alpha Rover - First Test
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Attack of the Drones to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 10 Apr 2021 4:50 PM Date Created
  • Views 1122 views
  • Likes 7 likes
  • Comments 2 comments
  • arduino uno plus
  • alphabot
  • 18650 li-po batteries
  • attackofthedronesch
Related
Recommended

Alpha Rover - First Test

ralphjy
ralphjy
10 Apr 2021

At last, I finally received the correct size 18650 batteries.  I could have started testing with an external power source, but decided to wait for the batteries.  The way the power is hooked up you can't get enough voltage from the Arduino Uno USB port to power the motors.

 

Here's a picture of my battery problem - I initially purchased the longer batteries which did not fit in the battery holder.  But, they do work great in a flashlight that I got with the shorter batteries image.

image

 

The first test is simply to verify that power and control of the motors are working.

 

Test sequence

  • Run forward 1 sec
  • Run backward 1 sec
  • Run left 1 sec
  • Run right 1 sec
  • Circle left 1 sec
  • Circle right 1 sec

 

AlphaBot_Run_Test.ino

/*************************************** 
Waveshare AlphaBot Car Run Test


CN: www.waveshare.net/wiki/AlphaBot
EN: www.waveshare.com/wiki/AlphaBot
****************************************/
#include "AlphaBot.h"


AlphaBot Car1 = AlphaBot();


void setup()
{
  Car1.SetSpeed(250);       //Speed:0 - 255
}


void loop()
{  
  delay(10000);
  Car1.Forward(1000);     //Car run forward for 1s
  Car1.Brake();
  
  delay(1000);
  Car1.Backward(1000);  //Car run backward for 1s
  Car1.Brake();


  delay(1000);
  Car1.Left(1000);      //Car turn left for 1s
  Car1.Brake();


  delay(1000);
  Car1.Right(1000);     //Car turn right for 1s
  Car1.Brake();


  delay(1000);
  Car1.LeftCircle(1000);  //Car left circle for 1s
  Car1.Brake();


  delay(1000);
  Car1.RightCircle(1000);  //Car right circle for 1s
  Car1.Brake();


//  delay(10000);
    
//  delay(1000);  
//  Car1.MotorRun(250,250);  //Car run forward for 1s; left motor speed:250,right motor speed:250
//  delay(1000);
//  Car1.Brake();


//  delay(1000);  
//  Car1.MotorRun(-250,-250);  //Car run backward for 1s; left motor speed:250,right motor speed:250
//  delay(1000);
//  Car1.Brake();
  
//  delay(1000);  
//  Car1.MotorRun(0,250);       //Car left circle for 1s; left motor speed:0,right motor speed:250
//  delay(1000);
//  Car1.Brake();


//  delay(1000);  
//  Car1.MotorRun(250,0);       //Car turn right for 1s; left motor speed:250,right motor speed:0
//  delay(1000);
//  Car1.Brake();
}

 

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

It appears that I'll need to adjust (calibrate) the motor speeds to run straight, but a good sign of life.  The IR obstacle sensors don't appear to be working.  Fairly simple circuits - guess that's my challenge for the weekend.  I'll also look at the AlphaBot library to see what I might need to change if I use a different processor board for control.

  • Sign in to reply

Top Comments

  • genebren
    genebren over 4 years ago +1
    Cool robot (drone)! A little tweaking (or maybe encoders) and you should be able to get your forward motion straightened out. Interesting how the battery sizes differ. Funny, but with all the Li-Ion batteries…
  • DAB
    DAB over 4 years ago +1
    Good start. DAB
Parents
  • DAB
    DAB over 4 years ago

    Good start.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 4 years ago

    Good start.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube