SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 215 matches

 Go to advanced search

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Tue Apr 03, 2012 7:13 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

/* GearboxParkingUsingADC 4-3-2012 previous working code BasicAirsoftBarrelSensor The circuit: * LED on board at pin 13 * Motor control on pin 3 (PWM pin) * pushbutton attached to pin 7 from +5V * 10K resistor attached to pin 7 from ground * ADC on analog pin 0 * The photo-interrupter on pin 2 Seri...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Mon Apr 02, 2012 7:08 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

New code, included here to be complete. I'm going to put a function snippet in a bit, with the really relevant parts. /* GearboxParkingUsingADC 4-1-2012 previous working code BasicAirsoftBarrelSensor The circuit: * LED on board at pin 13 * Motor control on pin 3 (PWM pin) * pushbutton attached to pi...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sun Apr 01, 2012 1:12 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

I just started looking at arrays, and I realized I haven't used arrays yet in Arduino-code. Python, yes, but there are some huge differences here. I'm really going to have to make this code as lean as possible. I need to go take a break. I'm starting to get crispy around the edges. I think I've got ...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sun Apr 01, 2012 12:44 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

Dataset three is KILLING ME! I can get pretty good predictors with 11 datapoints. Pretty much 100%. I'm trying to get it down to 8 datapoints, and I'm getting bad results. When I say "Bad", I mean "Stop the gearbox during the middle of the compression cycle, bad". Whew. This is an uphill battle. I t...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sun Apr 01, 2012 11:54 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

OK, I'm playing with Excel. I made a sheet with the last four sets of data. I'm now trying to come up with a simple system to predict when the gearbox has cycled. With Column A being the ADC readouts from the amperage and column B being the hits on the photo-interrupter, I set up column D with the f...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sun Apr 01, 2012 9:39 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

Yeah. I really think BB detection (versus gearbox cycling detection) needs to be incident to gearbox cycling detection and irrelevant to determining the cycling of the gearbox. I may have to look for local events to go to, just to get more information on gearbox activities. Right now, I think I can ...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sun Apr 01, 2012 8:16 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

...annnnd still reading. I'm looking at the graphs right now (I'm having to relearn graphing. There were significant changes since Office 2001 or whatever it is I used to use). I think we're pretty fortunate that these four tests show some different data trends, particularly during the inrush cycle....

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sat Mar 31, 2012 7:19 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

My apologies, on two counts. First, I got dragged out to see "The Hunger Games"... If you can, go out and see it. It's a good movie, and the first preview is pretty incredible. Second, I'm going to flub the math problem. It looks like the BB detections coincide with negative slopes except at the 350...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sat Mar 31, 2012 8:43 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

OK, so now the hard part. We've been able to examine graphs and figure out where the peaks are. How do I write the computer code to figure that part out, while still keeping it speedy? It looks like we should be able to reliably identify the gearbox cycles. Hell, we can eyeball it ourselves, even wi...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Sat Mar 31, 2012 8:02 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

Mr. E:
Beg, borrow, and steal any ideas you see here. The goal is to have a completely open-source/open-hardware based project. I need to check in with Airsoft Mechanics again. Things got crazy, so I stopped prowling the web.

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Fri Mar 30, 2012 2:27 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

I had a similar issue happen to me when I first started shooting. That one got melted down. I'm planning on having the system do shot counts on the gearbox cycles, not on the barrel sensor. With the barrel sensor, by default, reading a "zero", there's too much room for "bad stuff" if the wiring goes...

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Fri Mar 30, 2012 12:49 pm ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

OK, here goes. In all cases, the gearbox shouldn't stop cranking until it is in a "good spot", AND the trigger is off. This saves us on debounce issues. If the trigger is pressed, the gearbox fires a round and increments the round counter. The motor continues to run until the round is fired. In SA m...

Re: ATMega Lasertag

 by StaticDet5 ¦  Fri Mar 30, 2012 11:14 am ¦  Forum: SparkFun Product Questions ¦  Topic: ATMega Lasertag ¦  Replies: 36 ¦  Views: 5590

Which brings me to my next question: beam scatter from the terrain/target.

How much scattering is there? Could I bounce the beam off of a wall (or tree) to get a "suppression hit"?

Re: Arduino Airsoft Controller with Display

 by StaticDet5 ¦  Fri Mar 30, 2012 11:12 am ¦  Forum: SparkFun Product Questions ¦  Topic: Arduino Airsoft Controller with Display ¦  Replies: 465 ¦  Views: 57085

OK. I'll start code bashing over here. I also need to update some pics. I owe Dan a pic of the safety rig (newly upgraded yesterday with a big orange Home Depot bucket... I should start soliciting sponsors...), some of the side projects (The airsoft pistol with pulse laser), and the prototype area.

Re: ATMega Lasertag

 by StaticDet5 ¦  Thu Mar 29, 2012 6:00 pm ¦  Forum: SparkFun Product Questions ¦  Topic: ATMega Lasertag ¦  Replies: 36 ¦  Views: 5590

That's the question I had as well. I just scoured the LaserSoft site, and I can't believe we can't do it cheaper.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 15