Serial Port - Nexus Automation Nexus Robot User Manual

Kits
Table of Contents

Advertisement

www.nexusrobot.com
analogWrite(E1,100);
TCCR2B = TCCR2B & 0b11111000 | 0x01;
}
void loop() { }

Serial Port

This example shows you how to monitor the state of a switch by establishing serial communication
between your Arduino and your computer over USB.
Sample code
/*
DigitalReadSerial . Reads a digital input on pin 0, prints the result to the serial monitor
Use the example of gp2y0A21.to see how the Serial work.
*/
const int GP2Y0A21 = 0;
int incomingByte = 0;
void setup()
{
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
//set the timer1 as the work intrrupt timer
// to use the timer will defualt at the function of setup;
The Motor sample to link wries
//set analog pin 0 as the signal pin
// for incoming serial data
Robot Kits manual
22

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Nexus Robot and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents