The forums are retiring and are now closed for new topics and comments. The existing content will remain online and accessible through 2020 to provide everyone the opportunity to save any relevant information. In the spring of 2021, these Community forums will be taken offline.

Search for D9 in Topics


your opinion about the movie district 9

OK i just went and heard the whole plot of Neill Blomkamp masterpiece the Monalisa of movies D9. he was supposed to make the halo movie but Microsoft was complaining its multimillion dollar A$$ off so Neill felling sad thought up remixing his movie Alive in norunburg i think its called. so here this movie is a unsuspecting antagonist "Wikus van Der Merwe" is doing a documentary on MNU moving the Aliens to district 10 but he then goes into a shack and is screwing around with items of none of his concern and sprays a crap-storm virus in his eye that mutates his arm to a alien arm and changes his DNA so he can operate alien machinery MNU being the bastards they are jacks him up and takes him to there base for dissection he then daringly grabs a scalpel and holds a doctor hostage leading up to that he escapes to district 9 where he meets Christopher who at first is reluctant to kick Wikus's A$$ they soon befriend each other they then steal some alien weaponry and launch a counter attack on the MNU mercs were he retrieves a fuel cell to power a ship were Chris finds out that MNU have been experimenting on his people later on Wikus finds out that it would take up to 3 years to turn him back to a human,then a Emnite shamalan twist pops up Chris wants to go home for help before coming back to cure Wikus he then gets angry and kicks poor Chris's A$$ and powers up a ship were his engine is shot up and he crashes he than crawls out. soon cute Christopher's son Little CJ gains control of a mechanized battle suit from inside the crashed shuttle and helps free Wikus, Wikus then enters the alien walker battle suit and defends Christopher as the mother ship uses a tractor beam to lift the shuttle on board.he shuttle docks with the mother ship, Wikus is shot in the back and the walker suit ejects him after taking critical damage. Wikus drags himself away from the leader of the mercenaries, but is unavoidably caught. Just before the trigger is pulled, four aliens burst out of the surrounding slums and rips apart Wikus's attackers.The film concludes with another series of interviews and news broadcasts, showing the humans view on the events that unfolded. An interview with Wikus' wife reveals a small metal rose was left on her doorstep (one of Wikus' trademarks, he strongly believed a gift is worth more if it was made personally). She concludes it couldn't possibly be Wikus, no one has heard from him since he was last seen crawling from the mangled battle suit. An alien is then seen standing in a junk yard inside District 9 fashioning a small metal rose out of scrap metal, implying that Wikus is alive, his transformation from human to alien is complete, and is still awaiting Christopher's promised return. just tell me what you think about the ending

Topic by albylovesscience    |  last reply


your opinion on the movie district 9 (warning spoiler only read if you want to know the ending) ?

OK i just went and heard the whole plot of Neill Blomkamp masterpiece the Monalisa of movies D9. he was supposed to make the halo movie but Microsoft was complaining its multimillion dollar A$$ off so Neill felling sad thought up remixing his movie Alive in norunburg i think its called. so here this movie is a unsuspecting antagonist "Wikus van Der Merwe" is doing a documentary on MNU moving the Aliens to district 10 but he then goes into a shack and is screwing around with items of none of his concern and sprays a crap-storm virus in his eye that mutates his arm to a alien arm and changes his DNA so he can operate alien machinery MNU being the bastards they are jacks him up and takes him to there base for dissection he then daringly grabs a scalpel and holds a doctor hostage leading up to that he escapes to district 9 where he meets Christopher who at first is reluctant to kick Wikus's A$$ they soon befriend each other they then steal some alien weaponry and launch a counter attack on the MNU mercs were he retrieves a fuel cell to power a ship were Chris finds out that MNU have been experimenting on his people later on Wikus finds out that it would take up to 3 years to turn him back to a human,then a Emnite shamalan twist pops up Chris wants to go home for help before coming back to cure Wikus he then gets angry and kicks poor Chris's A$$ and powers up a ship were his engine is shot up and he crashes he than crawls out. soon cute Christopher's son Little CJ gains control of a mechanized battle suit from inside the crashed shuttle and helps free Wikus, Wikus then enters the alien walker battle suit and defends Christopher as the mother ship uses a tractor beam to lift the shuttle on board.he shuttle docks with the mother ship, Wikus is shot in the back and the walker suit ejects him after taking critical damage. Wikus drags himself away from the leader of the mercenaries, but is unavoidably caught. Just before the trigger is pulled, four aliens burst out of the surrounding slums and rips apart Wikus's attackers.The film concludes with another series of interviews and news broadcasts, showing the humans view on the events that unfolded. An interview with Wikus' wife reveals a small metal rose was left on her doorstep (one of Wikus' trademarks, he strongly believed a gift is worth more if it was made personally). She concludes it couldn't possibly be Wikus, no one has heard from him since he was last seen crawling from the mangled battle suit. An alien is then seen standing in a junk yard inside District 9 fashioning a small metal rose out of scrap metal, implying that Wikus is alive, his transformation from human to alien is complete, and is still awaiting Christopher's promised return. just tell me what you think about the ending

Question by albylovesscience    |  last reply


HELP

SOME BODY PLEEZ MAKE A KNEX AIRSOFT GUN! i mean real airsoft fight ready, shoots thrugh cardboard, airsoft. PLEEZ I need something to fight my freind who just just got a real one(thinking to myself"@#$%in sniper99! y did u get 1 and not me!)

Topic by nerfer192    |  last reply


CNC Homing

Hello, I work on CNC Alamode project, raspberry pi and Alamode is configured to control 3 stepper motors: My configuration: Raspberry Pi Alamode (Arduino compatible), 3 stepper motors and 3 EasyDriver. Everything works, grbl is ok. Here is my story: I wanted to install a homing system, I first started with the x axis, as in the drawing, it worked well, it has stopped the motor, but I realized that the current 5v  passed directly on Limit X (D9), without 330 Ohm resistance. Then I put this resistor like a drawing but now the homing no longer works. My question is: Have I damaged my card, knowing that everything works? Can I redo my original configuration without resistance? My last statement :  4.96 Volts between limit x (D9) and Ground. Thank you for your help. http://www.exonet3i.com

Topic by end3x  


need help writing Arduino sketch for Nano to Adafruit FX mini soundboard communications?

Hello everyone.  I am new here, and fairly new to arduino. Im an electrician/ communications tech by trade, but have only been working with code as a hobby for a few weeks (have wanted to learn this for a long time).  I am working on a project that would require an Motion sensor input to play an audio track at random, whilst illuminating a corresponding PWM LED. said LED should fade in sync with the audio file. ITs a robot of sorts that will detect movement and speak a random audio track.  Some nice (0-5) and some not so nice (6-12).  it will have a a diffused glow when on, blue when speaking nice, and red when speaking not so nice.  hence the audio input to act as an anologRead and output to the PWM's I know, a lot to take on for a noob.  but go big or go home.  I have put together what I thought was a good start sketch, but it doesnt even illuminate an LED, communicate with the soundboard, or serial link on the monitor. I think I am on the right track in regards to the parts and overall Idea.  And im pretty sure my sketch needs a lot of work, but i am trying. so here are the parts I had intended to use. (if im going down the wrong path, or you see another way, feel free to say so.  I expect some criticism, I can handle it) Arduino elegoo Nano V3.0, CH340/ATmega328p Adafruit Audio FX Mini soundboard w/o amp Adafruit Mono 2.5W Class D amplifier (PAM8302) Sodial mini IR motion sensor module, 3-pin LED's are undecided for finished product, but i was thinking RGB 6302's (5-7) speaker is an 8 ohm 2W power will be supplied by a small 3.7v lipo (thats the plan) My wiring idea should be easily discernible from the sketch, but i can draw my idea, and add it if need be. I did install the soundboard _library. but thats the only one (didnt think i needed others) Any and ALL help is greatly appreciated. the sketch... [code] /*   Menu driven control of a sound board over UART.   Connect UG to ground to have the sound board boot into UART mode */ #include #include #define SFX_TX 9      // Defines pin D9 as TX to FX Mini #define SFX_RX 10     // Defines pin 10 as RX to FX Mini #define PLAYING 11    // Connect to the ACT pin on the FX Mini #define SFX_RST 13   // Connect to the RST pin on the FX Mini SoftwareSerial ss = SoftwareSerial(SFX_TX, SFX_RX);  // Passes Software Serial to FX Mini SoftwareSerial mySerial(SFX_RX, SFX_TX); Adafruit_Soundboard sfx = Adafruit_Soundboard(&ss;, NULL, SFX_RST); // can also try hardware serial with // Adafruit_Soundboard sfx = Adafruit_Soundboard(&Serial1;, NULL, SFX_RST); int incomingAudio;            // Audio input assigned from FX Mini Right audio output int RedLED = 5;         // the PWM pin the Red LED is attached to int BlueLED = 3;        // the PWM pin the Blue LED is attached to int LED = 4;            // the output the normal state LED is attached to int Button = 12;        // pushbutton test play track pin int Track = random(0,13);     int inputPin = 2;       // choose the input pin (for PIR sensor) int pirState = LOW;           // we start, assuming no motion detected int val = 0;                  // variable for reading the pin status void setup() {   Serial.begin(115200);         // softwareserial at 115200 baud   Serial.println("Adafruit Sound Board!");   ss.begin(115200);      pinMode(LED, OUTPUT);           // assigning LED as an output   pinMode(RedLED, OUTPUT);        // assigning RedLED as an output   pinMode(BlueLED, OUTPUT);       // assigning BlueLED as an output   pinMode(incomingAudio, INPUT);  // assigning incomingAudion as an input   pinMode(Button, INPUT);         // assigning Button as an input   pinMode(inputPin, INPUT);       // declare sensor as input   if (!sfx.reset()) {     Serial.println("Not found");     while (1);   }   Serial.println("SFX board found"); } void loop(){   digitalWrite(LED, HIGH);        // assigning LED to start with +5V   incomingAudio = analogRead(A0);               //read voltage at A0   incomingAudio = (incomingAudio+1)/4 - 1;      //scale from 10 bit (0-1023) to 8 bit (0-255)   if (incomingAudio<0){                         //deal with negative numbers     incomingAudio = 0;   }   PORTD = incomingAudio;   Serial.println(PORTD);   val = digitalRead(inputPin);                 // read input value    if (val == HIGH) {                          // check if the input is HIGH       sfx.playTrack(Track);       Serial.println(Track);       if (pirState == LOW) {                   // we have just turned on       Serial.println("Motion detected!");      // We only want to print on the output change, not state       pirState = HIGH;       }     }    else {       if (pirState == HIGH){                   // we have just turned of       Serial.println("Motion ended!");         // We only want to print on the output change, not state       pirState = LOW;     }   }     if (Button=HIGH){                             // pin D12 to button, ground thru 10K res, and +5v       sfx.playTrack(Track);       Serial.println(Track);       }   if (incomingAudio>=128 &&Track;>=0 &&Track;<=6){      digitalWrite(RedLED, incomingAudio-128);      digitalWrite(LED, LOW);      }   else if (incomingAudio>=128 &&Track;>=7 &&Track;<=12){      digitalWrite(BlueLED, incomingAudio-128);      digitalWrite(LED, LOW);      }   else{      digitalWrite(LED, HIGH);      digitalWrite(RedLED, LOW);      digitalWrite(BlueLED, LOW);      delay(15000);   } } [/code]

Question by supramp  


Arduino Countdown timer code problem?

I was using the Crazy Countdown Timer as a base for yet another project and I seem to have hit a dead end with the code. I have taken an input (A3) that used to speed up the countdown time and tried to change the function to add five minutes to the remaining time. I have tried various methods and the results have not been the best. From setting the total time to 5 minutes to it's current state of not doing anything at all, I have limited knowledge of the coding and would appreciate some help if you would be so kind. Thanks in advance :-) The code so far is /*   Arduino clock on a standard 4-digit clock display   Uses a Liteon LTC-617D1G clock display Connections: LTC - Arduino 1 - nc 2 - nc 3 - nc 4 - d7 5 - d3 6 - d2 7 - d11 8 - d10 9 - d4 10 - gnd 22 - d9 23 - d5 24 - d6 25 - A0  // because d13 already has a built-in LED getting in the way 26 - d8 27 - d12 28 - A1 29 - gnd button: 5v - button - A5 - 10k resistor - gnd crazy wires: 5v - red jumper wire - A4 - 10k resistor - gnd 5v - blue jumper wire - A3 - 10k resistor - gnd 5v - yellow jumper wire - A2 - 10k resistor - gnd Action: pin D13 is already hooked up to an LED */ #define DIGIT1 2 #define DIGIT2 3 #define DIGIT3 5 #define DIGIT4 6 #define SEGMENTA 7 #define SEGMENTB 8 #define SEGMENTC 9 #define SEGMENTD 10 #define SEGMENTE 11 #define SEGMENTF 12 #define SEGMENTG A0 #define COLON 4 #define AMPM A1 #define BUTTON A5 #define STOPWIRE  A2 #define PLUSFIVE A3 #define ZEROWIRE  A4 #define ACTION 13 #define ON  HIGH #define OFF LOW #define DELAYTIME 50 int FiveState;             // the current FiveRead from the input pin int lastFiveState = LOW;   // the previous FiveRead from the input pin long FivelastDebounceTime = 0;  // the last time the output pin was toggled long FiveDebounceDelay = 50;    // the debounce time; increase if the output flickers unsigned short hours, minutes, seconds; unsigned long lastTime; // keeps track of when the previous second happened int buttonState;             // the current reading from the button pin int lastButtonState = LOW;   // the previous reading from the button pin unsigned long button_down_start = 0; // how long the button was held down unsigned long lastDebounceTime = 0;  // the last time the output pin was toggled unsigned long debounceDelay = 50;    // the debounce time byte flash;    // indicates when display should be flashing byte flash_on; // indicates that display is current in "on" part of a flash byte timer_stopped; // indicates that the timer is not counting down #define ONE_SECOND 1000 #define FLASH_TIME 100 // 10 times as fast unsigned long time_chunk; void setup() {   // Serial.begin(9600);     // initialize all the required pins as output.   pinMode(DIGIT1, OUTPUT);   pinMode(DIGIT2, OUTPUT);   pinMode(DIGIT3, OUTPUT);   pinMode(DIGIT4, OUTPUT);   pinMode(SEGMENTA, OUTPUT);   pinMode(SEGMENTB, OUTPUT);   pinMode(SEGMENTC, OUTPUT);   pinMode(SEGMENTD, OUTPUT);   pinMode(SEGMENTE, OUTPUT);   pinMode(SEGMENTF, OUTPUT);   pinMode(SEGMENTG, OUTPUT);   pinMode(COLON, OUTPUT);   pinMode(AMPM, OUTPUT);     // button is input   pinMode(BUTTON, INPUT);     // wires are inputs   pinMode(STOPWIRE, INPUT);   pinMode(PLUSFIVE, INPUT);   pinMode(ZEROWIRE, INPUT);     // the action is output   pinMode(ACTION, OUTPUT);     // set the initial time   hours = 0;   minutes = 25;   seconds = 00;   flash = 0;   flash_on = 0;   timer_stopped = 0;   time_chunk = ONE_SECOND;   lastTime = millis(); } void loop() {     // Keep showing the display while waiting for timer to expire    while (millis() - lastTime < time_chunk) {             if (!flash || flash_on) {             if (hours > 0) {         clock_show_time(hours, minutes);             // and blink the colon every even second         if (seconds % 2 == 0) {           clock_show_colon();         }       }       else {         clock_show_time(minutes, seconds);         clock_show_colon(); // show a steady colon       }           }         // check the crazy wires         if (digitalRead(STOPWIRE) == HIGH) {  // stops time       timer_stopped = true;     }     else {       timer_stopped = false;     }     /*     if (digitalRead(SPEEDWIRE) == HIGH) { // speeds up the time and flashes display       flash = 1;       time_chunk = FLASH_TIME;     }     */          // read the state of the switch into a local variable:   int FiveRead = digitalRead(PLUSFIVE);   // check to see if you just pressed the button   // (i.e. the input went from LOW to HIGH),  and you've waited   // long enough since the last press to ignore any noise:    // If the switch changed, due to noise or pressing:   if (FiveRead != lastFiveState) {     // reset the debouncing timer     FivelastDebounceTime = millis();   }     if ((millis() - FivelastDebounceTime) > FiveDebounceDelay) {     // whatever the FiveRead is at, it's been there for longer     // than the debounce delay, so take it as the actual current state:     // if the button state has changed:     if (FiveRead != FiveState) {       FiveState = FiveRead;       // only toggle the LED if the new button state is HIGH       if (FiveState == HIGH) {         minutes += 5;       if (minutes > 59) minutes = 59;           }                     // button has been pressed           incrementTime();         }     // save the FiveRead.  Next time through the loop,   // it'll be the lastFiveState:   lastFiveState = FiveRead;    }        if (digitalRead(ZEROWIRE) == HIGH) {  // sets time to zero       hours = 0;       minutes = 0;       seconds = 0;       time_chunk = FLASH_TIME;     }         // button presses increase minutes     int reading = digitalRead(BUTTON);      // If the switch changed, due to noise or pressing:     if (reading != lastButtonState) {       // reset the debouncing timer       lastDebounceTime = millis();     }         if ((millis() - lastDebounceTime) > debounceDelay) {       // whatever the reading is at, it's been there for longer       // than the debounce delay, so take it as the actual current state:             if (buttonState != reading) {         button_down_start = millis(); // record the start of the current button state       }             buttonState = reading;             // buttonState is now either on or off       if (buttonState == HIGH) {         flash = 0; // takes it out of panic mode         digitalWrite(ACTION, OFF); // turns the action OFF.         time_chunk = ONE_SECOND; // reset to regular time counting.                   // slow it down by only doing this every 10th millisecond         if ((millis() % 10) == 0) {           // if the button was held down more than 5 seconds, make it go faster           if ((millis() - button_down_start) > 5000) {             seconds += 10;             if (seconds > 59) seconds = 59;           }                     // button has been pressed           incrementTime();         }       }     }     lastButtonState = reading;   }   lastTime += time_chunk;     if (!timer_stopped) {     decrementTime();   }     if (flash) {     flash_on = !flash_on;   } } // // a call to decrementTime decreases time by one second. // void decrementTime() {       if (seconds == 0) {               if (minutes == 0) {                   if (hours == 0) {                      // time is at 00:00, flash the zeroes             flash = 1;             time_chunk = FLASH_TIME;                               // and do the action             do_action();           }           else {             minutes = 59;             hours--;           }         }         else {           seconds = 59;           minutes--;         }               }       else {         seconds--;        } } // // a call to incrementTime increases time by one second. // void incrementTime() {     if (seconds == 59) {     seconds = 0;         if (minutes == 59) {       minutes = 0;             if (hours == 12) {                  hours = 1;       }       else {         hours++;       }     }     else {       minutes++;     }   }   else {     seconds++;    } } // // clock_show_time - displays the given time on the clock display //   Note that instead of hr/min the user can also send min/sec //   Maximum hr is 99, Maximum min is 59, and minimum is 0 for both (it's unsigned, heh). // void clock_show_time(unsigned short hours, unsigned short minutes) {   unsigned short i;   unsigned short delaytime;   unsigned short num_leds[10] = { 6, 2, 5, 5, 4, 5, 6, 3, 7, 6 };   unsigned short digit[4];   unsigned short hide_leading_hours_digit;       // convert minutes and seconds into the individual digits   // check the boundaries   if (hours > 99) hours = 99;   if (minutes > 59) minutes = 59;     // convert hr   if (hours < 10 && hours > 0) {     hide_leading_hours_digit = 1;   }   else {     hide_leading_hours_digit = 0;   }     digit[0] = hours / 10;   digit[1] = hours % 10; // remainder   digit[2] = minutes / 10;   digit[3] = minutes % 10; // remainder    for (i = hide_leading_hours_digit; i < 4; i++) {     clock_all_off();     clock_show_digit(i, digit[i]);     // fewer leds = brighter display, so delay depends on number of leds lit.     delaytime = num_leds[digit[i]] * DELAYTIME;       delayMicroseconds(delaytime);   }       clock_all_off(); } // // clock_all_off - turns off all the LEDs on the clock to give a blank display // void clock_all_off(void) {     // digits must be ON for any LEDs to be on   digitalWrite(DIGIT1, OFF);   digitalWrite(DIGIT2, OFF);   digitalWrite(DIGIT3, OFF);   digitalWrite(DIGIT4, OFF);     // segments must be OFF for any LEDs to be on   digitalWrite(SEGMENTA, ON);   digitalWrite(SEGMENTB, ON);   digitalWrite(SEGMENTC, ON);   digitalWrite(SEGMENTD, ON);   digitalWrite(SEGMENTE, ON);   digitalWrite(SEGMENTF, ON);   digitalWrite(SEGMENTG, ON);     // turn off colon and alarm too   digitalWrite(COLON, OFF);   digitalWrite(AMPM, OFF); } // // clock_show_digit - turns on the LEDs for the digit in the given position //      position can be from 0 through 3: 0 and 1 being the hour, 2 and 3 being the seconds //      value can be from 0 through 9, ie, a valid single digit. // //      (if value is out of range, it displays a 9. if digit is out of range display remains blank) // void clock_show_digit(unsigned short position, unsigned short value) {   byte a;   byte b;   byte c;   byte d;   byte e;   byte f;   byte g;   switch (position) {     case 0:       digitalWrite(DIGIT1, ON);       break;     case 1:       digitalWrite(DIGIT2, ON);       break;     case 2:       digitalWrite(DIGIT3, ON);       break;     case 3:       digitalWrite(DIGIT4, ON);       break;   }   a = !(value == 1 || value == 4);   b = !(value == 5 || value == 6);   c = !(value == 2);   d = !(value == 1 || value == 4 || value == 7);   e =  (value == 0 || value == 2 || value == 6 || value == 8);   f = !(value == 1 || value == 2 || value == 3 || value == 7);   g = !(value == 0 || value == 1 || value == 7);     if (a) digitalWrite(SEGMENTA, OFF);   if (b) digitalWrite(SEGMENTB, OFF);   if (c) digitalWrite(SEGMENTC, OFF);   if (d) digitalWrite(SEGMENTD, OFF);   if (e) digitalWrite(SEGMENTE, OFF);   if (f) digitalWrite(SEGMENTF, OFF);   if (g) digitalWrite(SEGMENTG, OFF); } // // clock_show_colon - shows the colon that separates minutes from seconds // void clock_show_colon(void) {   unsigned short delaytime;   digitalWrite(COLON, ON);                                // 2 leds = 2 delays needed   delaytime = DELAYTIME * 2;  // must use variable to have similar delay to rest of clock   delayMicroseconds(delaytime);   //   because use of variable slows it down slightly.   digitalWrite(COLON, OFF); } // // clock_show_alarm - shows the ampm dot (bottom right of clock display) // void clock_show_ampm(void) {   unsigned short delaytime;   digitalWrite(AMPM, ON);                         delaytime = DELAYTIME;  // must use variable to have similar delay to rest of clock   delayMicroseconds(delaytime);   //   because use of variable slows it down slightly.   digitalWrite(AMPM, OFF); } // // do_action - this function gets called when the timer completes. // static void do_action(void) {   // the exciting action here is just to turn on a LED   digitalWrite(ACTION, ON);   Serial.println("ACTION!"); }

Question by Djandco    |  last reply