Arduino Zero Timer / PWM Direct Access Notes

If you want to access the timer or PWM outputs more direct style here are some helpful links: Link to google docs explaining the PWM pins and their associated timers used on V1.0 of our microbot PCB    Arduino forum example library code to set PWM values manually – Includes TC3 code which most examples

Microbot 2016 Software/Firmware Setup

Install Arduino IDE Follow this guide to add the Adafruit board manager to the IDE Install the Adafruit SAMD board profile In the Arduino IDE Tools Menu > Board > Boards Manager > search for SAMD > Install “Adafruit SAMD Boards” Download our custom Radiohead library from Waiakea Robotics Github Click the green “Clone or Download”

Microbot Mechanical Design Guide

Wheels: Outer Diameter: 10.6mm Thickness: 2mm O-ring groove diameter: 1.8mm O-ring groove inner diameter: 9mm Center mounting hole:  2mm diameter – ideally with .5mm D cut or wheel may spin on shaft Chassis:  Starting Body Extrusion: 19mm width, 23.5mm length, 16mm height Top Cutout subtraction: 17mm width, 21.5mm length, 8mm height – this should leave you with 1mm

Microbot Motor Control

#define MOTOR_R_DIR 5 // Right motor direction pin #define MOTOR_R_SPD 9 // Right motor speed pin – apply PWM signal (analog out) to this pin #define MOTOR_L_DIR 6 #define MOTOR_L_SPD 10 #define FWD 0 // 0 = forward in our robot wiring #define BWD 1 // 1 = backward in our robot wiring In the

Microbots How to make a Function

Why do we have functions? A function is a way for programmers to reuse code without having to retype the code. This is a big time saver, and it makes code more readable, that is if the function names are well selected. For my example I will use returntype = void This returntype specifies that the block of code will not return any value. Calling such a

Microbot Infrared Object Sensor

The following defines are for the IR_LEDs, and the IR_SENSORs . #define IR_LED_R 1 // IR LED Left used for reflective wall sensing #define IR_LED_L 7 // IR LED Left used for reflective wall sensing #define IR_38Khz 3 // IR LED 38khz Cathode connection #define IR_SENSOR_R 15 // Right input from 38khz bandpass filter connected

Competition Categories Category 0/1 – Micro Robot Racer/Mountain Climbing Maze Category 2a/b – Autonomous/RC Micro Robot Maze Category 3/4 – Biped Locomotion/Micro Robot Performance  

%d bloggers like this: