Skip to content

AMYTOL have created a Library and Sample Code for the NEXTGEN CODECAMP Robot

License

Notifications You must be signed in to change notification settings

and900/AMYTOL_Robot

Repository files navigation

Logo

All My Things Online

Logo

An awesome Robot project to jumpstart your knowledge!
Explore the docs »

View Demo · Report Bug · Request Feature

AMYTOL Robot

AMYTOL created Library and Sample Code for the NEXGEN Rover v3

Amytol Robot

The NexGen Robot has a number of built in sensors which are used bt eh code.

If you have built your own Robot the code can be used just mofify the OIN configuration in the file Amytol_Robot.cpp.
This library is designed to easily access the robot's functionality.
AMYTOL Robot provides a library for Forward, Back, Brake, Turn Left and Turn Right classes for the motors of the to the NEXGEN Robot

WIRING AMYTOL_X_ Examples

The Ultrasonic sensor uses the provided library NewPing. No need to add an additional library

WIRING AMYTOL NexGen Examples

This program assumes wiring for the Rover 3V motor driver inputs
and allocation of Arduino output pins are as outlined in the tables below.

Rover 3 Wiring

Grove Connector Grove Pin Wire Colour To Motor Driver Arduino Pin Notes
J1 1 Yellow PWM A 3 Left Motor PWM duty cycle for Speed
J1 2 White DIR A 2 Left Motor for Direction
J1 3 Red Not Used
J1 4 Black Not Used
J4 1 Yellow PWM B 6 Right Motor PWM duty cycle for Speed
J4 2 White DIR B 5 Right Motor for Direction
J4 3 Red Not Used
J4 4 Black GND
J3 Ultrasonic

Motor Driver Outputs

From Motor Driver Motor Wire Colour
B+ Left Motor Red
B- Left Motor Black
A- Right Motor Red
A+ Right Motor Black
# Author Created by Andrew Morgan September 8th 2023 All My Things On Line AMYTOL wwww.AllMyThingsOnLine.com

Description

This is an Arduino library to demonstrate how you to extend the functionality of Arduino C+. Pin configuration is stored in the Construction file called by yhe constraint Libary autocomplete prefix is "rbt"
ArduinoWorkspace --- /
AMYTOL_Robot/ ----+ /
examples/-------- + AmytolRobot.ino
src/ -------- + AmytolRobot.cpp
+ AmytolRobot.h

Initalise

Rbt rbt (007); Secret Agent Pin Delaration

Fixed Variables

Variable Name and Value
BATTERY_PIN = 0
ultrasonicPin = 7
buzzerPin = 8
touchSensorPin = 9
buzzer = 8
fast_speed = 255 milliseconds
medFast_speed = 240 milliseconds
medium_speed = 150 milliseconds
medLow_speed = 140 milliseconds
slow_speed = 80 milliseconds
tenthofaSecond = 100 milliseconds
halfaSecond = 500 milliseconds
oneSecond = 1000 milliseconds
twoSeconds = 2000 milliseconds
fiveSeconds = 5000 milliseconds
num_times_to_repeat =1
WARRANTY

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

About

AMYTOL have created a Library and Sample Code for the NEXTGEN CODECAMP Robot

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published