cs-6 recon?

If anyone has a good modification that will 100% definitely work for the new nerf recon, please tell me.

Topic by Fenderpony   |  last reply

new gun

Go check NH front page. Me want.

Topic by vanpaun   |  last reply

modding a Nerf recon CS-6?

How can you mod a Nerf Recon CS-6 to shoot airsoft bbs?

Question by slimshaddy   |  last reply

My CS Clan Youtube Channel

I want to share my counter strike community main intro. Just only link if embeded code gives error Link: http://www.youtube.com/watch?v=EuWdcpi-7Ts i like to use female models in my counter strike 1.6 server but Cristmass time and we have santa girl. other character, nemesis and so friendly :D anyway i know many people say negative comment but we are good people and why i dont know bad characters love more and be more popular. Creat a community hard thing also find real team members. My most popular server zombie but i like to play Gungame, almost i have all games but i play gungame. here my zombie sv. gametracker link: http://www.gametracker.com/server_info/ if you want to join My community just do simple goole and search "Rebel Uprising Clan"  half - life, cs:go, cs: source and counter strike 1.6 server all i have. comminty forum: http://forum.blonde-lovers.com  

Topic by gunzn 

Nerf ak-47

I was looking around on the internet and found this http://www.youtube.com/watch?v=9Cwp9KeoyfE it was coll but i wanted one that shot and so i used the mag from it. then i used the barrel idea from here http://www.youtube.com/watch?v=cQEsGrvsE4M&feature;=related then used cardboard for the stock and i made this it does shoot if you want step by step directions feel free to ask.

Topic by ninjusk   |  last reply

how do you modify a alpha trooper cs-18 with no PVC pipes??

Its pretty self-explanatory.

Question by the dashing hero   |  last reply

Nerf N-Strike CS magazine mode

To keep a long story short, here is the problem I'm trying solve:  I'm in the process of moding  a Nerf N-Strike into  a coil gun.  My "ammo" for this are steel archery tips that measure 8mm in diameter.  Since I'm overseas right now and have to order the gun online, while I wait for it to show up, I'd like some input as to how I might increase the magazine's spring strength while narrowing the inside width of the magazine to accomodate the diameter of the of new round.  In the past I've tried small pieces of foam board and plexiglass, but that has a tendancy to get messy and cause too much friction.  I'm sure once I have the gun to look at and play with some "great idea" will come to me, but until them I'm stuck imagining.  Any help would be appreciated.

Topic by TM7677   |  last reply

What's the diameter of the NERF Longshot CS-6's barrel extension?

I'm currently using the existing Longshot barrel extension for my Recon, and I want a replacement for that to put one on my Longshot to make it look like a... well, a Longshot. If possible, could anyone recommend me a diameter that would fit snugly and yet still be able to be removed? I don't want it falling out while firing or holding, or not being removable.

Question by cld0000   |  last reply

Turning A Nerf Longshot cs-6 Bolt action rifle into a Spring Powered Paintball rifle?? Answered

I got the spring, inners and mods figured out, i just need to find a way to make it into a semi-automatic (one shot fired for every hit on trigger)Thanks

Question by Foehammer358   |  last reply

Looking for Nerf Raider CS-35 mods that WILL NOT shoot nerf darts.

Hey, I'm wondering if anyone knows of mods for the Nerf Raider that don't fire Nerf darts.  I've modded a few nerf guns, but I'd like to repurpose my raider to shoot something else.  I'm looking to make it like an airsoft gun or rocket launcher-type gun.  Any and all suggestioins are appreciated. Thanks!

Topic by TacticalTrumpet 

Women in Computer Science

There was a great article in this week's san francisco bay guardian about the interdisciplinary computer science program at mills college. the program is aim at students that would like to pursue a masters or phd in cs but did not study cs as an undergrad. link to program http://ics.mills.edu/link to article http://www.sfbg.com/entry.php?entry_id=2554&catid;=4&volume;_id=254&issue;_id=276&volume;_num=41&issue;_num=15

Topic by ammeze   |  last reply

How can I make my Nerf gun shoot quieter? Answered

It is a Deploy CS - 6!

Question by NatNoBrains   |  last reply

What is the best glue for attaching wood to metal?

The metal is a brushed copper pipe that will be fitted into a 15 inch groove in a poplar 2 by 6.

Question by Aztof   |  last reply

Can the front gun from a longshot be attached to the business end of a recon?

... There really isn't much more to say about this.

Question by MetroidMan347   |  last reply

Is it possible for me to go to a four-year college without getting As all year around in high school?What GPA do I need?

My freshman year of high school I have been playing around not really committed into my school work. I got mostly Cs, now I am in the 10th grade I have been getting Bs and 1 Cs . My question is what do I have to do better my chance on going to a four-year college?

Question by Deshaj   |  last reply

Are there any ways you can mod a nerf gun without taking it apart? Answered

 I need help. I want to mod my Deploy Cs-6 but I feel uncomfortable taking it apart. Is there any way I can mod without unscrewing?

Question by jrg3ni0us   |  last reply

The Recon is here!

The new nerf recon cs6 has arrived! if you dont know about it, see the picture on my group. i have one as of a few days ago, but for those of you who want one, BUY QUICKLY BEFORE THEY RUN OUT!

Topic by nerfer192   |  last reply

How can i mount my tom drum next to the floor tom?

I own a ludwig cs accent custom. I'd like to mount the mid tom next to the floor tom. Is it possible to mount without a clamp? If not what clamp would you use? Thanks

Question by DistantOverture 

How do I create one array or variable after another in a loop in javascript?

I am currently designing a calculator (https://www.khanacademy.org/cs/calculator/5724205359824896) and I need to create a new array every time an operator (+, - *, /, ^, etc) is pressed. I want the naming to be: var array1[]; var array2[]; var array3[]; var array4[]... etc; and more will be created as I add up the values inside. 

Question by -max-   |  last reply

***HELP, should i get a macbook, or Dell mini 10!!!???*** Answered

I want to get a macbook, but i have other things i want to buy, should i get a macbook or Dell mini 10?macbook> http://www.apple.com/macbook/features.htmlDell> http://www.dell.com/content/products/productdetails.aspx/laptop-inspiron-10?c=us&cs;=04&l;=en&s;=bsd

Question by led235   |  last reply

Can anyone help me program this 8x1 LCD with Arduino?

I'm having trouble programming this 8x1 character LCD. It's not compatible with the Arduino's LiquidCrystal library. The manufacturer failed to give a detailed datasheet. This is the supplier of the product: click Here's the Pin Map (according to supplier) : 1.) Gnd 2.) VDD (3.3v) 3.) CS Input 4.) SCL - clock signal input 5.) SI - data input 6.) /RES - reset signal 7.) Backlight Anode (3.3v) 8.) Backlight Cathode (Gnd)

Question by ASCAS   |  last reply

What's your Nerf arsenal?

Well, no one really talks about nerf guns here, and I thought I may as well bring it up. So, just like knexgunbuilder's topic on what your knex arsenal is, I want to know your nerf arsenal! Just to tell you had had three more guns: the Recon CS-6, a Nerf handgun, and some other gun that was really cheap. And also, my vulcan isn't automatic any more. (it's a long story, so don't ask)     What's yours?

Topic by Seleziona   |  last reply

Can you tell me the meaning of the abbreviation in this PlayStation controller ? Answered

My friend gave me this controller I'm trying to fix it but I don't know the meaning of these abbreviations, all i know is ACK = Acknowledge CLK = Clock and the Positive and Ground connection. I already searched for the color coding of the wires and try to guest it but still no luck. In case of you cant see the image clearly here are the abbreviations DO,OI,CLK,ACK,CS,Gnd,+3.7 and VDD or VDC im not sure about the VDD or VDC.

Question by RYM3U4JTJDFKZXHPLZTKAR   |  last reply

2.8"TFT display on Arduino Mega

My name is Leo van Staveren from the Netherlands.I have followed the instructables to apply a 2.8"TFT display with my arduino Mega.I got the UTFT into my library files. However as a ZIP file, which my IDE asked for.After uploading the sample (step 4) of the instructable, my display remains blanc.What I noticed on my display board, was that the Rs,Wr,Cs,Rst fit the analog inputs 2,1,3,4.So I changed this in my sketch but unfortunately without result.What did I de wrong??

Question by abby1010   |  last reply

Robotics-related outreach activities?

Hey, So I'm the outreach coordinator for the robot team in my college. I was wondering if anyone here knows of any activities that can be done with kids ranging from kindergarten up through high school.  The two that I like are: 'Robotic Hand':  Building a 'robotic' hand using normal household materials. (probably best suited for elementary or middle schoolers) 'Intelligent Paper': Basically a more CS-themed attempt to demystify AI (probably better for middle or high schoolers) They don't necessarily need to be all-encompassing, any suggestions related to any part of robotics are welcome

Topic by killersquirel11   |  last reply

Small wireless module, would you buy it? Answered

Hello fellow instructablees! I recently found a cheap product carrying a sender - receiver pair of an Xbee-like module. They transmit on the 2.4gHz range and have a range of 10m.  Would it be smart for me to buy the whole stock of these devices and sell them? would you buy it from me and for how much? Thanks EDIT: Just found some extra info on the back of the board. the wireless module has the following pins: -GND -IRQ -MISO -MOSI -SCLK -CS -CE -VCC -OSCO -OSCI perhaps that could make it more usable? The module is from a wii-nunchuck transmitter - receiver pair

Question by dunnos   |  last reply

Nerf Mods

There are so many different nerf mods for ALL nerf guns, But the question is "Which one brings enough power to make a nerf gun shoot far and fast with better accuracy?" Answer is all them, if you put all the mods for one gun into one gun you are going to get a great outcome unless you do the mod bad, take a Recon CS-6 for instance it is a low power nerf rifle not good for wars at all shoots around 20 feet but, mine has been modified and i am currently looking for different modifications for it but it shoots more than 80 feet  measured, exact results are 80 on most shots 1/10 shots shoots around 50 and that is because it was a BAD DART, here is what i did, (P.s: this will be a instructable for the mods in this....) 1 Removed AR 2 stretched out spring by plunger ( not recomended get a new spring if  you can ) 3 put a spring behind plunger to create more friction which pushes the barrel  forward more and causes a stronger air push. 4 made the air tube bigger by the AR with a drill Thats all i did it was easier than most mods i have done ( iremember the maverick i had no idea how to get into the roatating barrel) but it led to the best outcome, P.s doing the same thing makes the Raider CS-35 alot more stronger it will more than likely shoot 90+ I will be getting a longstrike soon so i will show you guys the AR Removal and other mods i know which can be applied to the gun and create another great Nerf Sniper Rifle, Later guys.

Topic by AirsoftTeam 

Is there any free video conversion software that converts and encodes all video file types including swf?

I make a lot of videos with adobe's flash CS Series however, I'd like to convert and encode them to any video file that exists including SWF and MPEG-4, MPEG-2, MPEG-1 and the High Definition MPEG-5 also including many more video files and encoding such as FLV (Adobe Flash Video). it comes with encoding like AVC and VC-1 also with region types PAL and NTSC. it can also let you edit how big the video file should be (For if it gets burnt onto a DVD or USB or Hard Drive). is there any freeware or GPL software that can do this?

Question by shoyru_master_11   |  last reply

Yaesu FT-290R internal battery power? Answered

 I have recently become a licensed radio amateur in the UK. I have acquired a few radios and my main one at the moment is a Yaesu FT-290R. I have been running it off a 12v regulated power supply just fine up to now, but I cannot get the 8 internal "C" cells to power it. I've put in 8 new Cs, correct polarity. I've looked at a .PDF of the owner's manual online, no help there. Any ideas?  I really want to get into SOTA and WOTA, but with no portable PS I can't.... :-( By the way, my callsign is M6AIM, mike, six, alpha, india, mike.

Question by DELETED_zoltzerino   |  last reply

Arduino: HELP: How to perform action if two rfid tag UIDs have been detected?

I'm using an rfid-rc522 and I want to print to the serial a string of text if two rfid tags have been read in a given time period. Essentially this: 1. First tag is read (print to serial: Tag 1 has been read) 2. Wait 2 seconds 3. Second tag is read (print to serial: Tag 2 has been read) 4. Print to serial: Tag 1 and Tag 2 has been read) 5. Bonus: Keep this state - and then when a button is pressed (print to serial: Tag 1 and Tag 2 are finished) I know how to read the UID and print to the serial if one is read. Thank you so much for your help, it's greatly appreciated. Here is my code so far: #include     // Core graphics library #include // Hardware-specific library #include #include // For the breakout, you can use any 2 or 3 pins // These pins will also work for the 1.8" TFT shield #define sclk 4  // SainSmart: SCL #define mosi 5  // SainSmart: SDA #define cs   6  // SainSmart: CS #define dc   7  // SainSmart: RS/DC #define rst  8  // SainSmart: RES Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, mosi, sclk, rst); #define SS_PIN 10 #define RST_PIN 9 MFRC522 mfrc522(SS_PIN, RST_PIN); float p = 3.1415926; void setup(void) {   Serial.begin(9600);   SPI.begin();   Serial.print("Starting cornhole leaderboard...");   mfrc522.PCD_Init(); // Init MFRC522 card   Serial.println("Scan PICC to see UID and type...");   // Use this initializer if you're using a 1.8" TFT   tft.initR(INITR_BLACKTAB);   // initialize a ST7735S chip, black tab   // Use this initializer (uncomment) if you're using a 1.44" TFT   //tft.initR(INITR_144GREENTAB);   // initialize a ST7735S chip, black tab   Serial.println("Initialized");   uint16_t time = millis();   tft.fillScreen(ST7735_BLACK);   time = millis() - time;   Serial.println(time, DEC);   // large block of text   tft.fillScreen(ST7735_BLACK); } void loop() {   // Look for new cards     if ( ! mfrc522.PICC_IsNewCardPresent()) {         return;     }     // Select one of the cards     if ( ! mfrc522.PICC_ReadCardSerial()) {         return;     }     if (mfrc522.uid.uidByte[0] == 0xA4 &&        mfrc522.uid.uidByte[1] == 0xB8 &&        mfrc522.uid.uidByte[2] == 0xB8 &&        mfrc522.uid.uidByte[3] == 0x96) {           Serial.println("Nate has checked in to the game.");           tft.fillScreen(ST7735_BLUE);           tft.setTextSize(2);           tft.setCursor(0, 0);           tft.setTextColor(ST7735_YELLOW);           tft.print("Nate ");           tft.setTextColor(ST7735_WHITE);           tft.println("has checked in ");           tft.setTextSize(2);           tft.println("to the game.");           delay(2000);           tft.fillScreen(ST7735_BLACK);     }     if (mfrc522.uid.uidByte[0] == 0x03 &&        mfrc522.uid.uidByte[1] == 0xFD &&        mfrc522.uid.uidByte[2] == 0xBC &&        mfrc522.uid.uidByte[3] == 0x02) {           Serial.println("Ted has checked in to the game.");           tft.fillScreen(ST7735_RED);           tft.setTextSize(2);           tft.setCursor(0, 0);           tft.setTextColor(ST7735_CYAN);           tft.print("Ted ");           tft.setTextColor(ST7735_WHITE);           tft.println("has checked in ");           tft.setTextSize(2);           tft.println("to the game.");           delay(2000);           tft.fillScreen(ST7735_BLACK);     } } Thank you!

Topic by djrage   |  last reply

how to make digital potentiometer as mechanical potentiometor using arduino?

 connection between digital pot x9c103p  INC - Arduino pin * U/D - Arduino pin 3 * VH  - 5V *VSS - GND *  VW  - Output: 150 Ohm resistor -> LED -> GND *  VL  - GND *  CS  - Arduino pin 4 *  VCC - 5V and the code i used #include DigiPot pot(2,3,4); void setup() {   Serial.begin(115200); } void loop() {   Serial.println("Starting");    for (int i=0; i<100; i++) {     Serial.print("Increasing, i = ");     Serial.println(i, DEC);     pot.increase(1);     delay(200);   }   for (int i=0; i<100; i++) {     Serial.print("Decreasing, i = ");     Serial.println(i, DEC);     pot.decrease(1);     delay(200);   } } what is error in that and how can i make sthing varry between 1k to 4k if i have digital potentiometer 10k

Question by britich   |  last reply

Connect Arduino UNO to a Laser with TCP/IP or RS232 protocol

Hi everyone, I am trying to comunicate with a Laser via ethernet or RS232 but I realy don't find enough information in internet to make my sketch. For TCP/IP, I am using a ENC28J60.CLK ---> D8SO ---> D12SCK --->D13SI --->D11CS --->D10VCC --->3,3vGND --->GNDYou will find attached the manual for TCP/IP comunications that the laser company gave me.Finaly for RS232, I tried to use the TTL-RS232 module (MAX3232) to comunicate but I was not able to make it works. (attached the manual for RS232 comunications that the laser company gave me.RXD ---> RX 0 TXD ---> TX 1VCC ---> 5vGNS ---> GNDPlease could somebody helps me with the code. Thank you,Jonathan

Topic by JonathanP233   |  last reply

How to use audio jack with 5" Raspberry pi Touchscreen? Answered

I've been building a portable pi recently and have finally gotten the touchscreen working... The only problem is that the audio is forced through HDMI instead of the audio jack, (my touchscreen doesn't have audio). I was wondering how I could edit the /boot/config.txt file to use the audio jack without messing with the display.                 /boot/config.txt code   GNU nano 2.2.6            File: /boot/config.txt                              # --- added by elecrow-pitft-setup Mon 18 Sep 16:41:00 CDT 2017 --- hdmi_force_hotplug=1 max_usb_current=1 hdmi_drive=1 hdmi_group=2 hdmi_mode=2 hdmi_mode=87 hdmi_cvt 800 480 60 6 0 0 0 dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapx$ display_rotate=0 # --- end elecrow-pitft-setup Mon 18 Sep 16:41:00 CDT 2017 --- Thank you.

Question by mderton   |  last reply

internet for xbox live

I used to have high speed internet., the service provider was AT&T. One day we could not get internet. at&t said we had it. The main point is that we don;t have any more. I was looking into one of those connect cards, and wondered is it fast enough for xbox live. Do you need 3G coverage for it to work.. I live right out side the boundry between 3G and the lower bit for Verizion. I checked a local cell phone service coverage and its the same thing as Verizion. My question is what do I do. Are the conect cards fast enough any way or what. And if so, who has the best. the cheapest, and the best MB limit.  Who should I go with and what do I do. My local cell company is Cellular South. I was looking at CS's Huawei EC 168 Data Card. Just google cellular south connect card to find it.  I am definetly going to get the 5 gigs of possible downloads.(if my parents will pay for it) I am only 14, so I can't do a whole lot. Please help!

Topic by electronicdude 

Simple Computer Based Project Time Log

Recently I've been playing around with BASH and terminal in linux more. I've also been trying to become more organized and use my time more efficiently. Since I'm not studying CS or working with computers for a living these two things usually work against each other. It's winter break for me now though, so I can play around as much as I want, and in doing so I've come up with a basic way to track time spent working on each project for my next semester. How it works: I plug in a 1GB USB drive (smallest I have) which is labeled "Time Card". Time Card has an autorun script on it. Linux prevents this from actually running automatically, but tells me it's there with the option to run it. The autorun script launches a script from my computer which asks me which project I'm working on. The script logs the 'Time In' and, once the "Time Card" USB is removed, logs the 'Time Out' and 'Total Time Spent' in minutes, to a text file with the name of the project. It's nothing special, but I'm a little excited about it and wanted to share. I've attached slightly modified copies as text files for anyone interested. Edit: I've also uploaded a sample output file (project.txt)

Topic by rogers236   |  last reply

Local text only chat room for under 100$: This may be a little insane

I am looking to create a local text only chatroom as a gallery installation for a sculpture class. In the most basic terms I want 4 text output displays and 4 text inputs to be connected through a cheap computer allowing people to carry on a simple conversation locally. As this makes absolutely no sense and has no practical applications it is difficult to find similar projects. Oh and because it just seemed too easy to wire some laptops together I am trying to do this for around 100$  There are Three basic problems I need to solve: Output:  So far my best idea is to use a monochrome lcd such as this:  https://www.sparkfun.com/products/10168 and soup up/ replace the back-light and create and old school overhead projector.  Input: burner cell phone keyboards? cheap keyboards from goodwill? Alternatives?  Make them work together: some unholy union of breadboards arduino and raspberry pi So basically this is barely possible if at all, and I am amateur at best in the hardware department (although I have a CS degree in a couple months) Any help from the seasoned veterans of this community would be greatly appreciated. (and I mean anything like if you have a favorite cheap keyboard or lcd that would be an immense help)  

Topic by mallen26   |  last reply

If I want to convert the number 2, 5, 7 into 257, and also do the inverse (257 to 2, 5, 7)? how do I do that in code?

If I want to convert the number 2, 5, 7 into 257, and also do the inverse (257 to 2, 5, 7)? how do I do that in code? I have considered using math to do this: 2, 5, 7;   2*100 + 5*10 + 7 = 257; but This will only work with numbers with X number of digits. I need to to work with a variable amount of numbers in an array or stored in separate variables. Also, I need to do the reverse, so how would I go about doing that? particularly in C, arduino, and Javascript.  If anyone wants to know why I need to do this, I am trying to program a simple calculator app in java, and I would find this useful with the arduino too. I am learning programming here, and this is currently the calculator app: https://www.khanacademy.org/cs/calculator/5724205359824896. It is not finished, but I got over 200 lines of code to draw out the buttons and screen, and make them interactive. I need a way to capture the presses of the buttons and store them in arrays that when an operator is pressed,  a new array is created with more numbers inside it and those numbers are joined together. 

Question by -max-   |  last reply

Help With Arduino Robot Arm Record & Playback With SD Card, Bluetooth

Hi, I need some help please with the following code - lots of errors occur when I try to verify it. The author is unavailable for help & the code appears to be in the public domain. Check out the clip, it looks awesome! https://www.youtube.com/watch?time_continue=1&v;=7A1WL60wMe0 https://github.com/Dileepmeom/Arduino-Robotic-Arm- //# Arduino-Robotic-Arm---Copt-Cat //This project controls the Cartesian robotic arm using Arduino, Motion sequence can be recorded and played back just like //Industrial robot does /* COPY CAT Servo controlled Robot 5-axis Cartesian robot This software logs the angular movement of joints by reading the servo angles and stores it in the SD card, reproduces the movement by the reading back from the SD card. The circuit: analog sensors on analog ins 0, 1, and 2 SD card attached to SPI bus as follows: ** MOSI - pin 11 ** MISO - pin 12 ** CLK - pin 13 ** CS - pin 4 created 24 Nov 2010 modified 9 Apr 2012 by Tom Igoe This example code is in the public domain. */ include include define TRUE 1 define FALSE 0 // On the Ethernet Shield, CS is pin 4. Note that even if it's not // used as the CS pin, the hardware CS pin (10 on most Arduino boards // 53 on the Mega) must be left as an output or the SD library // functions will not work. const int chipSelect = 4; // constants won't change. They're used here to // set pin numbers: const int buttonPin = 2; // the number of the pushbutton pin const int servo3 = 5, servo4 = 6,servo5 = 5; // PWM for servo 3 // variables will change: int buttonState = 0; // variable for reading the pushbutton status int recievedchar = 0,dataON=0; int SDdata = 0; Servo myservo1; // create servo object to control a servo Servo myservo2; // create servo object to control a servo Servo myservo3; // create servo object to control a servo Servo myservo4; // create servo object to control a servo Servo myservo5; // create servo object to control a servo int servo1angle = 0,servo2angle = 0; unsigned long current_servo_micros, prev_servo_micros; unsigned long currentMillis,previousMillis = 0; int scheduler = 0; int servointerval = 20; int S3_microlocal; char servoON=0; void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } pinMode(buttonPin, INPUT_PULLUP); Serial.print("Initializing SD card..."); // make sure that the default chip select pin is set to // output, even if you don't use it: pinMode(10, OUTPUT); // see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println("Card failed, or not present"); // don't do anything more: return; } Serial.println("card initialized."); } void loop() { long servo3ticks = 1000, servo4ticks = 1000, servo5ticks = 1000; // interval for servo cyle time / / read the state of the pushbutton value: buttonState = digitalRead(buttonPin); recievedchar = Serial.read(); // make a string for assembling the data to log: String dataString = ""; String arraystring = ""; String SDstring = ""; char firstseperator=0; unsigned long sensorarray[10]; int servoangle[5]; char arrayindex = 0; // open the file. note that only one file can be open at a time, // so you have to close this one before opening another. if(dataON == TRUE) { // read three sensors and append to the string: for (int analogPin = 0; analogPin < 5; analogPin++) { int sensor = analogRead(analogPin); sensorarray[analogPin] = sensor; dataString += String(sensor); if (analogPin < 4) { dataString += ","; } } File dataFile1 = SD.open("datalog.txt", FILE_WRITE); // if the file is available, write to it: if (dataFile1) { if(buttonState == HIGH) { // print to the serial port too: // Serial.println(dataString); /////////////////////////// debug code ///////////////////// for (arrayindex= 0; arrayindex < 5; arrayindex++) { int arrayvalue = sensorarray[arrayindex]; //arraystring += String(arrayvalue); } servo1angle = map(sensorarray[0], 102, 433, 0, 170); arraystring += servo1angle; arraystring += ","; servo2angle = map(sensorarray[1], 84, 468, 0, 180); arraystring += servo2angle; arraystring += ","; servo3ticks = map(sensorarray[2], 90, 393, 0, 150); arraystring += servo3ticks; arraystring += ","; servo4ticks = map(sensorarray[3], 107, 445,0, 180); arraystring += servo4ticks; arraystring += ","; servo5ticks = map(sensorarray[4], 151, 406, 10, 140); arraystring += servo5ticks; arraystring += ","; // Serial.println(arraystring); //// WRITE TO SD CARD // dataFile1.println(arraystring); dataFile1.close(); ///////////////////////////////////////////////////////////////// delay(10); } else { dataFile1.close(); // print to the serial port too: Serial.println("No signal for writing"); } } // if the file isn't open, pop up an error: else { Serial.println("error opening datalog.txt"); } } // the reading's most significant digit is at position 15 in the reportString: ////// switch case starts ///////////////////////// switch (recievedchar) { case 'D': { dataON = TRUE; Serial.print("Recording"); Serial.print("\n"); myservo1.detach(); myservo2.detach(); myservo3.detach(); myservo4.detach(); myservo5.detach(); break; } case 'S': { dataON = FALSE; Serial.print("Stopped"); Serial.print("\n"); break; } case 'R': { myservo1.attach(5); // attaches the servo on pin 9 to the servo object myservo2.attach(3); // attaches the servo on pin 9 to the servo object myservo3.attach(8); // attaches the servo on pin 9 to the servo object myservo4.attach(7); // attaches the servo on pin 9 to the servo object myservo5.attach(9); // attaches the servo on pin 9 to the servo object File dataFile1 = SD.open("datalog.txt"); Serial.print("Playing Back Motions"); Serial.print("\n"); // if the file is available, write to it: if (dataFile1) { while (dataFile1.available()) { SDdata = dataFile1.read(); SDstring += (char)SDdata; // if(isDigit(SDdata)) // { // SDstring += (char)SDdata; // } // else // { // // int Sensordata = (inString.toInt()); // SDstring += ("_"); // } if(SDdata == '\n') { digitalWrite(servo4, LOW); String reportString = SDstring; // Serial.print("\n"); // Serial.println(reportString); // Serial.print("\n"); int seperator[5]={0}; int n=0,startfrom=0; for(n=1;n<=5;n++) { seperator[n]= reportString.indexOf(',',startfrom); startfrom = seperator[n]+1; // Serial.print(seperator[n]); // Serial.print("\n"); } seperator[0]=-1; for(int count=0;count<=4;count++) { String sens1data = ""; for(int index = (seperator[count]+1); index < seperator[count+1]; index++) { char mostSignificantDigit =SDstring.charAt(index); sens1data += String(mostSignificantDigit); // Serial.print(index); // Serial.print(","); } servoangle[count+1] = sens1data.toInt(); // Serial.print(servoangle[count+1]); // Serial.print(sens1data); // Serial.print("\n"); } delay(15); SDstring = ""; } // myservo1.write(0); // myservo2.write(100); // myservo3.write(100); // myservo4.write(100); // myservo5.write(10); myservo1.write(servoangle[1]); myservo2.write(servoangle[2]); myservo3.write(servoangle[3]); myservo4.write(servoangle[4]); myservo5.write(servoangle[5]); } dataFile1.close(); myservo1.detach(); myservo2.detach(); myservo3.detach(); myservo4.detach(); myservo5.detach(); } // if the file isn't open, pop up an error: else { Serial.println("error opening datalog.txt"); } break; } case 'E': { if(SD.exists("datalog.txt")) { Serial.print("datalog.txt file found, preparing to delete"); SD.remove("datalog.txt"); Serial.print("\n"); Serial.print("file deleted..."); } break; } } }

Topic by steve444   |  last reply

Advice on preparing/presenting a Python Master Class?

I am preparing a master class to present to a group of Technical Artists# at work. Everyone in the group has previously programmed in C/C++/MEL/MAXScript/Python. The purpose of the class is to collectively bring everyone's skill levels and technical understanding on variety of Computer Data Science topics to a common level.I would like some advice as this first time I've delivered such a class. I am planning on structuring the course to be two 2 hour sessions, with 30 minute blocks of content interspersed with Q&A;, code-review, and individual assistance. I know this a multi-part question, so don't feel you need to be able answer everything, just contribute what you can. Any links to articles, SO questions, or reflection on personal learning experiences is greatly appreciated. Questions/Advice/Links to Further Reading- What CS topics should I attempt to cover?- Examples of other Python training courses? - What do you wish someone taught you when you first started programming?- Python programming best-practices- Tips for delivering technical content to creative/artist audience? Using Dive Into Python as a textbook and referencing the MIT Open Courseware Introduction to Computer Science on Academic Earth. I have also been given a 2 minute overview on adult training (Malcolm Knowles), i.e., working the students through the cycle of: identify the problem, determine the cause, researching a solution, and applying.

Question by emmablisa   |  last reply

USB, AVR, and PICs! Oh my!

Heya! I come from a pretty solid CS background, so I'm trying to wrap my head around the concept of EE projects.  I've got the basics of circuit design down, but I'm getting a little bogged down researching how to interface USB<-->ICs.  While I know efforts like Arduino provide a significant amount of pre-built software and hardware that can accomplish most DIY projects, I would really prefer to learn/have control over the whole software stack (and as much of the hardware stack as possible) from App to Userspace Driver to Kernel Driver (I've written a few, but never actually built my own circuitry to talk to).  I'm looking to learn for some resources on how to interface at a low level.  I wouldn't shy away from writing my own PIC/AVR/??? bootloader if it means I have more control over the communication stack.  I'm sure I'd be re-writing a lot of the Arduino/AVR software that's out there, but hey, I see it as a learning opportunity... right? :) It seems that FTDI makes some USB/UART(Serial) chips that many of the sparkfun-esque USB->Breadboard adapters are based on.  From what I can tell though, most of the chips do literal USB Full/Low speed->115200 bit/s Serial connection.  This seems like an awfully large downsample of the possible communication bandwidth... Is this how things like printers, external hard drives, and webcams work? So, in short, if I was going to write my own USB stack/drive/kernel module to go along with a custom IC bootloader, how would I go about it? Are there any resources out there describing how one would go about this? Thanks for your time! 

Topic by skyfire360   |  last reply

How to attract and catch wild animals ?

Hi, i living in Bosnia and Herzegowina in Southeast Europe (probably you heared for that country if you are living in USA, Barrack Obama loves us!). I live in city usually (not my house), but on holidays in my village (something like mountain). I readed a lot off books at home about animals, and i love animals. I like to watch them, play with them, take photo of them...) and because i am living in village with my old parents both more than 60 years :P and my brother I cant play with anyone expect animals. My brother is lazy and just plays some games like CS and Tetris on laptop and doesn't like experiments and animals. I am 16 years old. I have seen lot off animals in my mini forest at my property and at forest near my property lot off animals like: birds, bats, frogs, bugs and i rarely i have seen: rabbit, wolf, wild pig, squirrel... So how to attract and catch any animal easy with 100% success without buying any trap expect buying something really cheap under 3$ or using something found in forest? (BUT SOMETHING AS LITTLE AS POSSIBLE SO THAT MY FATHER WONT RECOGNIZE TRAP, I WANT TO CATCH ANY ANIMAL EXPECT BUGS, SPIDERS, FROGS).AT LEAST A BIRD EVEN IN WINTER HOW TO CATCH? I DONT WANT THE TRAP SEEN BY MY FATHER NOT BIGGER THAN BALL. I WILL NOT HURT BIRDS BUT JUST WANT TO PICTURE WITH THEM AND I WILL RLEASE IT AFTER SOME PLAYING AND TAKING A PICTURE. SO IF YOU DONT KNOW ANSWER DONT SAY ANY COMPLIMENTS!!!

Question by h0meIandsecurity   |  last reply

How to catch animal expect bugs, spiders and frogs with 100% success?

Hi, i living in Bosnia and Herzegowina in Southeast Europe (probably you heared for that country if you are living in USA, Barrack Obama loves us!). I live in city usually (not my house), but on holidays in my village (something like mountain). I readed a lot off books at home about animals, and i love animals. I like to watch them, play with them, take photo of them...) and because i am living in village with my old parents both more than 60 years :P and my brother I cant play with anyone expect animals. My brother is lazy and just plays some games like CS and Tetris on laptop and doesn't like experiments and animals. I am 16 years old. I have seen lot off animals in my mini forest at my property and at forest near my property lot off animals like: birds, bats, frogs, bugs and i rarely i have seen: rabbit, wolf, wild pig, squirrel... So how to attract and catch any animal easy with 100% success without buying any trap expect buying something really cheap under 3$ or using something found in forest? (BUT SOMETHING AS LITTLE AS POSSIBLE SO THAT MY FATHER WONT RECOGNIZE TRAP, I WANT TO CATCH ANY ANIMAL EXPECT BUGS, SPIDERS, FROGS).AT LEAST A BIRD EVEN IN WINTER HOW TO CATCH? I DONT WANT THE TRAP SEEN BY MY FATHER NOT BIGGER THAN BALL. I WILL NOT HURT BIRDS BUT JUST WANT TO PICTURE WITH THEM AND I WILL RLEASE IT AFTER SOME PLAYING AND TAKING A PICTURE. SO IF YOU DONT KNOW ANSWER DONT SAY ANY COMPLIMENTS!!! I DONT HAVE PLANT FOR MAKING BIRD LIME AND I THINK MOUSE TRAP IS TOO EXPENSIVE!

Question by h0meIandsecurity   |  last reply

I need help with this code

Hello, I'm creating a PIR Sensor Alarm with Arduino. I'm using Arduino Uno, PIR Sensor, Breadboard, LED, Piezo Buzzer, TTL JPEG Camera, SD Card and SD Card Module (Breakout Board) I tested my code and it didn't give me any errors. However, the LED and the Buzzer are on all the time, my idea is to have them on once the PIR Sensor detects motions. I know that I'm having problem with the code. Therefore, I'd appreciate it so much if someone could find out which parts of my code should I change. ---------------------------- #include #include #include int pirPin = 7; int ledPin = 8;                // choose the pin for the LED int pinSpeaker = 10;           //Set up a speaker on a PWM pin (digital 9, 10, or 11) int minSecsBetweenEmails = 60; // 1 min long lastSend = -minSecsBetweenEmails * 1000l; byte ZERO = 0x00; byte incomingbyte; SoftwareSerial mySerial(2,3);          // Set Arduino pin 2 and 3 as softserial long int a=0x0000,j=0,k=0,count=0,i=0; uint8_t MH,ML; boolean EndFlag=0; File  myFile; void SendResetCmd(); void SetBaudRateCmd(); void SetImageSizeCmd(); void SendTakePhotoCmd(); void SendReadDataCmd(); void StopTakePhotoCmd(); void setup() {   pinMode(pirPin, INPUT);   pinMode(ledPin, OUTPUT);      // declare LED as output   pinMode(pinSpeaker, OUTPUT);   Serial.begin(9600);   Serial.begin(115200); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } mySerial.begin(38400); Serial.print("Initializing SD card..."); // On the Ethernet Shield, CS is pin 4. It's set as an output by default. // Note that even if it's not used as the CS pin, the hardware SS pin // (10 on most Arduino boards, 53 on the Mega) must be left as an output // or the SD library functions will not work. pinMode(10, OUTPUT); if (!SD.begin(10)) { Serial.println("initialization failed!"); return; } Serial.println("initialization done."); } void loop() {   long now = millis();   if (digitalRead(pirPin) == HIGH)   {     digitalWrite(ledPin, HIGH);  // turn LED ON     playTone(300, 160);     delay(150);     if (now > (lastSend + minSecsBetweenEmails * 1000l))     {       Serial.println("MOVEMENT");       lastSend = now;     }     else     {       digitalWrite(ledPin, LOW); // turn LED OFF       playTone(0, 0);       delay(300);         Serial.println("Too soon");     }   }   delay(300); } // duration in mSecs, frequency in hertz void playTone(long duration, int freq) {     duration *= 1000;     int period = (1.0 / freq) * 1000000;     long elapsed_time = 0;     while (elapsed_time < duration) {         digitalWrite(pinSpeaker,HIGH);         delayMicroseconds(period / 2);         digitalWrite(pinSpeaker, LOW);         delayMicroseconds(period / 2);         elapsed_time += (period);     } byte a[32]; int ii; SendResetCmd(); delay(4000);                            //Wait 2-3 second to send take picture command SendTakePhotoCmd(); while(mySerial.available()>0) {   incomingbyte=mySerial.read(); } myFile = SD.open("pic.jpg", FILE_WRITE); //The file name should not be too long while(!EndFlag) {   j=0;   k=0;   count=0;   SendReadDataCmd();   delay(200); //250 for regular   while(mySerial.available()>0)   {      incomingbyte=mySerial.read();     k++;     if((k>5)&&(j<32)&&(!EndFlag))     {      a[j]=incomingbyte;      if((a[j-1]==0xFF)&&(a[j]==0xD9))     //tell if the picture is finished      EndFlag=1;      j++;     count++;     }   } for(j=0;j { if(a[j]<0x10) Serial.print("0"); Serial.print(a[j],HEX);           // observe the image through serial port Serial.print(" "); } for(ii=0; ii myFile.write(a[ii]); Serial.println(); i++; } myFile.close(); Serial.print("Finished writing data to file"); while(1); } void SendResetCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x26); mySerial.write(ZERO); } void SetImageSizeCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x31); mySerial.write(0x05); mySerial.write(0x04); mySerial.write(0x01); mySerial.write(ZERO); mySerial.write(0x19); mySerial.write(0x11); } void SetBaudRateCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x24); mySerial.write(0x03); mySerial.write(0x01); mySerial.write(0x2A); mySerial.write(0xC8); } void SendTakePhotoCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x36); mySerial.write(0x01); mySerial.write(ZERO); } void SendReadDataCmd() { MH=a/0x100; ML=a%0x100; mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x32); mySerial.write(0x0c); mySerial.write(ZERO); mySerial.write(0x0a); mySerial.write(ZERO); mySerial.write(ZERO); mySerial.write(MH); mySerial.write(ML); mySerial.write(ZERO); mySerial.write(ZERO); mySerial.write(ZERO); mySerial.write(0x20); mySerial.write(ZERO); mySerial.write(0x0a); a+=0x20; } void StopTakePhotoCmd() { mySerial.write(0x56); mySerial.write(ZERO); mySerial.write(0x36); mySerial.write(0x01); mySerial.write(0x03); } --------------------------- Thanks a lot!

Topic by fhussein1   |  last reply

Trying to make a arduino based photo booth, and need help with my code for the countdown to be triggered by a button?

I am new to Arduino and am trying to make an Arduino based Photo Booth which will have a button that is pressed and triggers a countdown on an 8x8 SPI matrix and at the end of the countdown it triggers a SLR Camera (Nikon D5500) (i still need to work out how to trigger the camera and write the camera trigger code). at the moment i have managed to create code that starts the countdown when a button is pressed however it seems to only want to listen to the button randomly and triggers whenever it seems to feel like it. Here is the code i have so far...Have i written it correctly? #include "LedControl.h" const int buttonPin = 2;     // the number of the pushbutton pin int buttonState = 0;         // variable for reading the pushbutton status LedControl lc=LedControl(12,11,10,1);  // Pins: DIN,CLK,CS, # of Display connected unsigned long delayTime=1000;  // Delay between Frames // Put values in arrays byte invader1a[] = {   B01111110, // #9   B11111111,   B11100111,   B11111111,   B01111111,   B00000111,   B11111111,   B01111110 }; byte invader1b[] = {   B01111110, // #8   B11111111,   B11100111,   B01111110,   B01111110,   B11100111,   B11111111,   B01111110 }; byte invader1c[] = {   B11111111, // #7   B11111111,   B00000111,   B00001110,   B00011100,   B00111000,   B00111000,   B00111000 }; byte invader1d[] = {   B01111110, // #6   B11111111,   B11100000,   B11111110,   B11111111,   B11100111,   B11111111,   B01111110 }; byte invader1e[] = {   B11111111, // #5   B11111111,   B11100000,   B11111110,   B11111111,   B00000111,   B11111111,   B01111110 }; byte invader1f[] = {   B11101110, // #4   B11101110,   B11101110,   B11111111,   B11111111,   B00001110,   B00001110,   B00001110 }; byte invader1g[] = {   B11111110, // #3   B11111111,   B00000111,   B11111110,   B11111110,   B00000111,   B11111111,   B11111110 }; byte invader1h[] = {   B01111110, // #2   B11111111,   B11100111,   B00001110,   B00111000,   B11100000,   B11111111,   B11111111 }; byte invader1i[] = {   B00011100, // #1   B00111100,   B01111100,   B00011100,   B00011100,   B00011100,   B00011100,   B00011100 }; byte invader1j[] = {   B00000000, // #smile   B00000000,   B00100100,   B00000000,   B10000001,   B01000010,   B00111100,   B00000000 }; byte invader1k[] = {   B00000000, // #blank   B00000000,   B00000000,   B00000000,   B00000000,   B00000000,   B00000000,   B00000000 }; void setup() {   lc.shutdown(0,false);  // Wake up displays   lc.shutdown(1,false);   lc.setIntensity(0,5);  // Set intensity levels   lc.setIntensity(1,5);   lc.clearDisplay(0);  // Clear Displays   lc.clearDisplay(1);   pinMode(buttonPin, INPUT); } //  Take values in Arrays and Display them void sinvader1a() {   for (int i = 0; i < 8; i++)    {     lc.setRow(0,i,invader1a[i]);   } } void sinvader1b() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1b[i]);   } } void sinvader1c() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1c[i]);   } } void sinvader1d() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1d[i]);   } } void sinvader1e() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1e[i]);   } } void sinvader1f() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1f[i]);   } } void sinvader1g() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1g[i]);   } } void sinvader1h() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1h[i]);   } } void sinvader1i() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1i[i]);   } } void sinvader1j() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1j[i]);   } } void sinvader1k() {   for (int i = 0; i < 8; i++)   {     lc.setRow(0,i,invader1k[i]);   } } void loop() {// read the state of the pushbutton value:   buttonState = digitalRead(buttonPin);   // check if the pushbutton is pressed.   // if it is, the buttonState is HIGH:   if (buttonState == HIGH) {     sinvader1a();     delay(delayTime);     sinvader1b();     delay(delayTime);     sinvader1c();     delay(delayTime);     sinvader1d();     delay(delayTime);     sinvader1e();     delay(delayTime);     sinvader1f();     delay(delayTime);     sinvader1g();     delay(delayTime);     sinvader1h();     delay(delayTime);     sinvader1i();     delay(delayTime);     sinvader1j();     delay(delayTime);     sinvader1k();   } if (buttonState == LOW) {    buttonState = digitalRead(buttonPin);   }   }

Question by DanielB118   |  last reply