| Arduino Forum ::  Members :: Schmidtn
 Show Posts Pages: 1 2 [3] 4 5 ... 9
 31 Using Arduino / Sensors / Re: Code for PING sensor on: May 06, 2011, 04:44:57 pm I have done something similar to this before.  Unfortunately I do all my coding on a netbook, which I forgot at my folks' house when I visited a couple months ago.  But, what I did was use the sample PING code from the Arduino web page and then measured the width of my door frame with the PING in the serial monitor.  Then I subtracted one inch from that and added an if loop in my code asking if the the variable that's being printed to the serial monitor was less than that value.  If so, execute case 1 (which for you is making the servo do whatever) and if not execute case 2 which is to keep looking if the value is less than (door width - 1).
 32 Community / Bar Sport / Re: 48รท2(9+3) = ? on: April 20, 2011, 12:21:40 pm Quote from: biocow on April 14, 2011, 01:02:18 pm...  It's math. There can only be 1 answer.What aboutf(x) = sin (x)What's the root?  That has infinite answers.  Or a quadratic.  That always gives two answers (both aren't always plausible, but you still get two answers).  Lots of mathy stuffs yield two+ answers.
 33 Using Arduino / Project Guidance / Re: how do I get arduino to read black and white? on: April 14, 2011, 01:09:17 pm A QTI Sensor can tells shades of gray if you hook it up to an analog pin.  Of you could overkill it and get a Linescan Imaging Sensor that pretty much takes a picture of your picture and saves it.  Or, you could buy a light to frequency IC (TSL230R) and get your math on....or you could just scan it.  You've got some options here.
 34 Using Arduino / Programming Questions / Re: How do you generate 3 different random numbers in Arduino Mega & send to Serial on: April 11, 2011, 03:28:36 pm I think he just wants to verify that he's getting any sort of data at all, not really important how it's separated (commas or spaces) as long as he can read it.  I'm guessing he's going to assign the numbers he gets from his sensors to variables that plug into an equation.... and I base that on absolutely nothing, so take it for what it is.
 35 Using Arduino / Programming Questions / Re: How do you generate 3 different random numbers in Arduino Mega & send to Serial on: April 11, 2011, 12:05:22 pm I think he's trying to debug the Arduino side of a project.  He'll later add three sensors, but right now he's using random numbers generated by static on analog pin zero to get his sensor inputs.Your test sketch looks like it'll work, to me.  Ever 50 delay you get a new data sample (from static right now, but later from your sensors).  I know nothing about C# so I can't help you there.What else are you trying to do with the data?  Do they go into some kind of physics/ME equation?
 36 Using Arduino / General Electronics / Re: Can anyone explain a ground loop, and when tieing grounds together is needed. on: April 04, 2011, 09:36:01 pm Ha!  For some reason when you said hunting for Uranium deposits was popular in the late 1950's the first thing that came to mind was Ward Cleaver smoking a pipe and telling Beaver to be careful with his Geiger Counter and to stay out of trouble while Beaver skips out the front door with one of his buddies on a Uranium hunt.  Can't wait for people 50 years from now to look back at us and think, "What were they thinking?! Didn't they know how toxic handling transistors is?" Or whatever we're doing now that we really shouldn't be.
 37 Using Arduino / General Electronics / Re: Can anyone explain a ground loop, and when tieing grounds together is needed. on: April 04, 2011, 11:36:49 am Scroll down to page 209, number three in the pink box.  Don't look inside your car battery using a match for light.  Thanks for the tip PopSci! On a related note.  When I was on a ship in the navy we had acquisition antennas and direction finding antennas.  Long cables can act as resistors (the ship was 820 foot long and you could very rarely take a straight shot to wherever you were trying to go) those DF antenna arrays could be a pain that way with ground loops.  We did a yards period where all our antennas went off ship and new cables were strung.  Recalibrating everything sucked pretty hard and we did it with software, not even with pinching cables to make notch filters.
 38 Using Arduino / Sensors / Re: Line following sensor on: March 31, 2011, 04:38:45 pm Two of thesehttp://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/51/List/0/SortField/0/Level/a/ProductID/100/Default.aspxwill work well.  If both sensors see the black line, go forward.  If only one sensor sees the black line, turn towards the sensor that still sees the black line until both sensors see the black line.  Then go forward... repeat until you win.As for not spilling the drink, maybe a couple mercury switches to make sure your drink holder is still more or less upright.  I see the drink holders and the chassis with the wheels being jointed with pivoting servos for those little hills.
 39 Using Arduino / Sensors / Re: Infrared Receivers and Transmitters? on: March 06, 2011, 03:47:10 pm Ah, I see.  Why did you make two posts about this, it's kind of confusing.A 38kHz Infrared Receiver Module from RadioShack is around 4 bucks and will work.http://www.radioshack.com/product/index.jsp?productId=2049727I'm not sure if a 38K module from an old TV or DVD player will work, but if you've already salvaged one and it is not working you might try to see if there is a filter over the lens.  Taking that off might get your module working but it will also open you up to false readings.  Best bet is just to get a new 38K IR module.
 40 Using Arduino / Sensors / Re: Infrared Receivers and Transmitters? on: March 06, 2011, 01:42:57 am Is it my turn?So, what are you doing?
 41 Using Arduino / Sensors / Re: Universal Remote for arduino? on: March 06, 2011, 12:15:06 am ... not to take away business from RC but,This will teach you how to get pulse codes from your remote.http://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step2/Getting-Pulse-Codes-from-your-TV-Remote/If you click the orange "Next Step >>" button it will take you to another step that will show you how to clean up the pulse codes.
 42 Using Arduino / Project Guidance / Re: tremolo guitar effect feasability?? on: March 04, 2011, 07:14:49 pm Hey that was pretty neat, kind of what I was thinking but he actually did it.  So are you avoiding digital for tone reasons?  I know a lot of people are all analog this and true bypass that but to be honest I don't get what all the hubb bubb's about.  I run digital pedals into a tube amp every day and think it sounds nice.
 43 Using Arduino / Project Guidance / Re: tremolo guitar effect feasability?? on: March 04, 2011, 02:51:52 pm Wouldn't it be easier to use a digital potentiometer to make the existing signal from your effect chain a sin/saw wave?  I too make guitar pedals and have thought about using my Arduino in a pedal, but haven't come up with any good ideas yet.
 44 Using Arduino / Programming Questions / Re: Need help with remote and IR sensor on: March 02, 2011, 12:22:52 am I think Steps 2, 3 and 4 of an Instructable I made would help you.Step 2 (I think you've got most of this done already) Getting codeshttp://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step2/Getting-Pulse-Codes-from-your-TV-Remote/Step 3 Cleaning up your Pulse Codeshttp://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step3/Clean-up-your-Pulse-Codes/And Step 4 Testing Your Remotehttp://www.instructables.com/id/Fart-Operated-Random-Channel-TV-Remote/step4/Test-Your-Remote/Your application is a little different than mine, but my sketches (at the end of step 4) is a good start with lots of comments.
 45 Using Arduino / Programming Questions / Re: Arduino with Ping sensor on: March 01, 2011, 08:44:48 pm Yeah, that's how I normally troubleshoot sketches that aren't working out for me... but then again I make A LOT of silly little errors that lead to minor breakdowns.  So far I haven't thrown my Arduino but I know some day I probably will.
 Pages: 1 2 [3] 4 5 ... 9