Tell us about yourself!

Complete Your Profile
  • Audio Amplifier | Simple & Powerful

    This is my favorite of the single component amps.

    View Instructable »
  • Voice activated Rocket Launcher

    I think I would call it Proximity activated rocket launcher. However, I like it because it shows how to get the emic2 to announce what it is reading from a sensor. Not caring too much about the rocket.

    View Instructable »
  • Easy ultrasonic 4-pin sensor monitoring (hc-sr04)

    There is a project where I'd like to use the 4 pin (I have) instead of a 3 pin . The code for the other project is here.https://www.instructables.com/id/Voice-activated-Ro...I'm just beginning to learn how to code and don't feel comfy enough to change it./* This program is based off the demonstration of the Emic 2 module by Joe Grand [www.grandideastudio.com] */ #include #define rxPin 2 // Serial input (connects to Emic 2 SOUT) #define txPin 3 // Serial output (connects to Emic 2 SIN) // set up a new serial port SoftwareSerial emicSerial = SoftwareSerial(rxPin, txPin); const int pingPin = 7; long int duration, distanceInches, distanceCm; byte LimitCm= 30; byte ledPin = 12; long microsecondsToInches(long microseconds) { return microseconds / 74 / 2; } long microsec...

    see more »

    There is a project where I'd like to use the 4 pin (I have) instead of a 3 pin . The code for the other project is here.https://www.instructables.com/id/Voice-activated-Ro...I'm just beginning to learn how to code and don't feel comfy enough to change it./* This program is based off the demonstration of the Emic 2 module by Joe Grand [www.grandideastudio.com] */ #include #define rxPin 2 // Serial input (connects to Emic 2 SOUT) #define txPin 3 // Serial output (connects to Emic 2 SIN) // set up a new serial port SoftwareSerial emicSerial = SoftwareSerial(rxPin, txPin); const int pingPin = 7; long int duration, distanceInches, distanceCm; byte LimitCm= 30; byte ledPin = 12; long microsecondsToInches(long microseconds) { return microseconds / 74 / 2; } long microsecondsToCentimeters(long microseconds) { return microseconds / 29 / 2; } void setup() // Set up code called once on start-up { // define pin modes pinMode(rxPin, INPUT); pinMode(txPin, OUTPUT); pinMode(ledPin,OUTPUT); // set the data rate for the SoftwareSerial port emicSerial.begin(9600); /* When the Emic 2 powers on, it takes about 3 seconds for it to successfully intialize. It then sends a ":" character to indicate it's ready to accept commands. If the Emic 2 is already initialized, a CR will also cause it to send a ":" */ emicSerial.print('\n'); // Send a CR in case the system is already up while (emicSerial.read() != ':'); // When the Emic 2 has initialized and is ready, it will send a single ':' character, so wait here until we receive it delay(10); // Short delay emicSerial.flush(); // Flush the receive buffer } void loop() // Main code, to run repeatedly { //check distance with Ping))) pinMode(pingPin, OUTPUT); digitalWrite(pingPin, LOW); delayMicroseconds(2); digitalWrite(pingPin, HIGH); delayMicroseconds(5); digitalWrite(pingPin, LOW); pinMode(pingPin, INPUT); duration = pulseIn(pingPin, HIGH); distanceInches = microsecondsToInches(duration); distanceCm = microsecondsToCentimeters(duration); check(); delay(100); } void check() { if (distanceCm > 30) { emicSerial.print('S'); emicSerial.print(); emicSerial.print('\n'); while (emicSerial.read() != ':'); } if (distanceCm < 30) { emicSerial.print('S'); emicSerial.print("object detected. Fire."); emicSerial.print('\n'); while (emicSerial.read() != ':'); digitalWrite(ledPin, HIGH); delay(100); digitalWrite(ledPin, LOW); delay(100); } } IMadeIt Approved

    View Instructable »
  • Voice activated Rocket Launcher

    could you change the code for the four pin ultrasonic sensor ? Please ?

    if you need data for the four pin sensor, its herehttps://www.instructables.com/id/Easy-ultrasonic-4-pin-sensor-monitoring-hc-sr04/

    View Instructable »
  • californiakayaker followed jp30302 years ago