element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
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
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Attack of the Drones requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: ralphjy
Date Created: 10 Apr 2021 4:50 PM
Views: 165
Likes: 7
Comments: 2
  • 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 .

 

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
Upload Preview

 

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.

Anonymous

Top Comments

  • genebren
    genebren over 1 year 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 1 year ago +1

    Good start.

     

    DAB

  • DAB
    DAB over 1 year ago

    Good start.

     

    DAB

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
  • genebren
    genebren over 1 year ago

    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 that I have worked with, I have not yet experienced any of the protected cells.  My initial work with Li-Ion batteries (unprotected) were in very high current draws (>100A pulses), where protection would not have worked.  As I continued to use them, I stuck with what I knew and continued to use unprotected cells, and provided protection within my charge and discharge circuits.

     

    Good luck as you move forward with your project.

    • Cancel
    • Up +1 Down
    • Reply
    • More
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube