This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************** | |
| Author: Luke A. Bain | |
| Date: 11-14-13 | |
| Description: obstacle avoidance two sensors and motors | |
| ******************************************************************/ | |
| #include <SPI.h> // include spi for raspberry pi communication | |
| #include <Servo.h> // include servo to control both steering servo and brushless motors/ESC | |
| #include <NewPing.h> // include for ultrasonic sensor and distance measurement | |
| #include <SoftwareSerial.h> // include for motor controller communication | |
| #define rxPin 5 // not used receive from motor controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************** | |
| Author: Luke A. Bain | |
| Date: 11-14-13 | |
| Description: obstacle avoidance two sensors and motors | |
| ******************************************************************/ | |
| #include <SPI.h> // include spi for raspberry pi communication | |
| #include <Servo.h> // include servo to control both steering servo and brushless motors/ESC | |
| #include <NewPing.h> // include for ultrasonic sensor and distance measurement | |
| #include <SoftwareSerial.h> | |
| #define rxPin 5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************** | |
| Author: Luke A. Bain | |
| Date: 10-28-13 | |
| Description: obstacle avoidance two sensors | |
| ******************************************************************/ | |
| #include <SPI.h> // include spi for raspberry pi communication | |
| #include <Servo.h> // include servo to control both steering servo and brushless motors/ESC | |
| #include <NewPing.h> // include for ultrasonic sensor and distance measurement | |
| #define trigPinFL 8 // Front left sensor send on pin 8 | |
| #define echoPinFL 7 // Front left sensor receive on pin 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************** | |
| Author: Luke A. Bain | |
| Date: 10-12-13 | |
| Description: obstacle avoidance two sensors | |
| ******************************************************************/ | |
| #include <Servo.h> | |
| #include <NewPing.h> | |
| #define trigPinFL 8 | |
| #define echoPinFL 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********************************** | |
| Author: Luke A. Bain | |
| Date: 10-4-13 | |
| Description: ping to steer servo | |
| **********************************/ | |
| #include <NewPing.h> | |
| #include <Servo.h> | |
| #define trigPin 8; | |
| #define echoPin 7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************** | |
| Author: Luke A. Bain | |
| Date: 12-1-13 | |
| Description: obstacle avoidance two sensors and motors | |
| ******************************************************************/ | |
| #include <SPI.h> // include spi for raspberry pi communication | |
| #include <Servo.h> // include servo to control both steering servo and brushless motors/ESC | |
| #include <NewPing.h> // include for ultrasonic sensor and distance measurement | |
| #include <SoftwareSerial.h> // include for motor controller communication | |
| #define rxPin 5 // not used receive from motor controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define trigPinFL 8 // Front left sensor send on pin 8 | |
| #define echoPinFL 7 // Front left sensor receive on pin 7 | |
| #define trigPinFR 3 // Front right sensor send on pin 3 | |
| #define echoPinFR 4 // Front right sensor receive on pin 4 | |
| void setup(){ | |
| Serial.begin(9600); // baud rate for serial monitor interface | |
| pinMode (trigPinFL, OUTPUT); // Sets pin 8 as output for FL sensor | |
| pinMode (echoPinFL, INPUT); // sets pin 7 as input for FL sensor | |
| pinMode (trigPinFR, OUTPUT); // sets pin 3 as output for FR sensor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****************************************************************** | |
| Author: Luke A. Bain | |
| Date: 10-3-15 | |
| Description: restarting PC application for Arduino | |
| ******************************************************************/ | |
| int X = 1; | |
| int switchpin =7; | |
| int relaypin = 12; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************************************************************************************** | |
| Holgrim control arduino | |
| Written by: Luke A Bain | |
| Scope: Keyboard emulation,button lights and actuation of fan and rumble feature | |
| Version: sudo code | |
| Requirements: arduino Micro or Leonardo | |
| **************************************************************************************************/ | |
| #include <Keyboard.h> //for keyboard command to PC | |
| #include <motor.h> //for servo (fan) and rumble motor | |
| void setup(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /************************************************************************************************** | |
| Holgrim control arduino | |
| Written by: Luke A Bain | |
| Scope: Keyboard emulation,button lights and actuation of fan and rumble feature | |
| Version: sudo code | |
| Requirements: arduino Micro or Leonardo | |
| **************************************************************************************************/ | |
| #include <Keyboard.h> //for keyboard command to PC | |
| #include <Servo.h> //for servo (fan) and rumble motor | |
| void setup(){ |
OlderNewer