LED Change Code (Arduino)
// Simple LED on at various power levels - Serge
char serInString[10]; // array that will hold the bytes of the incoming string
int dataRead = 0;
void setup(){
// Set up pins
Serial.begin(9600); }
void readSerialString(char *strArray) {
int i = 0;
while (Serial.available()) {
strArray[i] = Serial.read();
i++; }
dataRead = i; }
void loop() {
readSerialString(serInString);
if (dataRead>0) {
int ledPin = serInString[0];
int ledBrightness = serInString[1];
if ((ledPin>=9) && (ledPin<=11)) {
char pinChar = '0' + ledPin;
Serial.println("Turning on LED: " + pinChar);
analogWrite(ledPin, ledBrightness); } }
dataRead = 0;
delay(1000); }
NEURAL NETWORKS FOR 3D MOTION DETECTION FROM A SEQUENCE OF IMAGE FRAMES
-
NEURAL NETWORKS FOR 3D MOTION DETECTION FROM A SEQUENCE OF IMAGE FRAMES
In video surveillance, video signals from multiple remote locations are
displayed...