Professional Documents
Culture Documents
8 Robotics
Touch Sensors Object Avoidance
using ATX 2 Robot
Objectives
int pushButton=A6;
• Upload the calibration code to the robot,
don’t uplug the usb cable.
Click the
Sample Program for Object Avoidance by
Contact using Touch Sensors
#include <ATX2.h> // ATX2 Board
void setup() {
OK(); // ATX2 initialize
}
void loop()
{
int touchOne = digitalRead(A6); // left touch sensor
int touchTwo = digitalRead(A7); // right touch sensor
motor(ALL4, 50);
Importa Learning
nce Insights
Topic
1 Example / Applicat
Real life
scenario ion