Show Posts
Pages: 1 2 [3] 4 5 ... 24
31  Using Arduino / Programming Questions / Re: Please tell me why my IF statement is not working correctly on: September 05, 2011, 10:36:53 pm
I'm not sure why you said the first if statement is being run, but the second two run because you have given them a true value.
Quote
        if (vala >=100 && vala <300 && prevnote  || 60)
what are you trying to accomplish? Any non zero value is true, so this will always be true.
32  Using Arduino / Programming Questions / Re: Sending serial commands with an Ethernet Shield on: September 05, 2011, 01:00:00 pm
I think what you're missing is that this code still has people connecting to your arduino, acting as a server. However, instead of doing so directly, they are doing so through a form on a separate webpage. It really doesn't reduce the load on the arduino by very much at all.

The only way to eliminate using your arduino as a server entirely is to have your separate website save the form data to a file/page on the server. Then, have the arduino poll that file, and act on the data it contains.
33  Using Arduino / Installation & Troubleshooting / Re: I broke my arduino BT but BT modem still works. Can I reuse it? on: September 05, 2011, 11:38:13 am
You probably can still connect the BT modem to another arduino and use it. Also consider just replacing the Atmega processor.
34  Using Arduino / Microcontrollers / Re: Cheapest micro on: September 05, 2011, 11:32:54 am
Information about the board here: http://www.ti.com/tool/msp-exp430g2 . There is a link to buy it direct from TI.
You can also buy it from Mouser, Arrow, DigiKey, Sparkfun, etcetera...

It comes with two chips, but you can order more (free) from TI's sample site.
There is a development studio, but I really prefer the editor of my choice + mspgcc (see this tutorial: http://hackaday.com/2010/08/11/how-to-launchpad-programming-with-linux/ )
35  Using Arduino / Project Guidance / Re: Rotating Base With Arduino *need help* on: September 05, 2011, 11:28:24 am
Its a little more expensive, but get a properly rated (for the mass of your platform) stepper and driver. Then just turn the right number of steps on every button push. Very simple. Check out the stepper library.
36  Using Arduino / Programming Questions / Re: Sending serial commands with an Ethernet Shield on: September 05, 2011, 11:23:57 am
That example still uses the arduino as a web server, there is just no actual HTML interface, instead it uses GET. If you really dont want the arduino to be a server at all, you would need to set up a separate website hosted elsewhere that updates a status page when you change an option. The arduino would then have to poll this status page as a client and parse the results. I think that this would actually be more resource intensive.

If you want to have a site that is more complex than what can be hosted from the arduino, then set up your website and form on another computer. Then, have it submit the form information via GET to your arduino's ip, with code similar to that second example.
37  Using Arduino / Microcontrollers / Re: Cheapest micro on: September 05, 2011, 11:13:50 am
I do have to vouch for the MSP430 Launchpad board. Its a $4.30 development board for the Value Line chips and the F2xx series (which are all DIP). Once you have programmed the chips, you can remove them from the board and stick them into any project you want with just a few caps for extra hardware. The best part: TI will send you tons of free MSP430 samples, without a corporate or educational address. Essentially, once you have the board, you have a free supply of chips to program and use in projects. MSP430s arent quite as capable as the '328, but they use practically no power, have a great open source toolchain, and a full development platform is four dollars, with an almost unlimited free supply of chips. I use them all the time in projects that dont need all the power of a Atmega, and they really rock.
38  Using Arduino / Audio / Re: Puzzled about bit of code on: September 05, 2011, 11:07:56 am
Oh I wasn't aware that setFreq plays a tone indefinitely. The only thing I can think of is that the MIDI library's timer interrupts are interfering with yours.
39  Community / Bar Sport / Re: Scam in progress on: September 05, 2011, 11:00:22 am
The Wordpress software, which is available at Wordpress.org, is an open source, very flexible blog platform, that you can download and install on your own server. Wordpress.com, on the other hand, is a free hosting service for the wordpress software, but with its drawbacks.

I like to use Pastebin.com for a few source files, but if you have a real project going, I suggest sourceforge or google code.
40  Using Arduino / Programming Questions / Re: Implementing Serial and other functions into sketches made by Eclipse on: September 04, 2011, 11:16:05 pm
If you are sure that you are including all of the proper source files, including all of the AVR core files, it should compile. The question is, is there an eclipse cross-compiler for AVR8? Can eclipse support STK500?
What is it that is wrong with the IDE? Why not edit your code elsewhere and then paste it into arduino, or just use AVRDUDE?
41  Using Arduino / Project Guidance / Re: Rotating Base With Arduino *need help* on: September 04, 2011, 10:57:59 pm
It is difficult to have control the angle of a continuous rotation servo with reasonable accuracy. If you need precise turning, a regular servo would do, but instead of rotating all the way around, it would have to return the long way to its starting position after the fifth click. If this is not okay, consider using a stepper motor, and control its angle via steps.

Good luck!
42  Using Arduino / Audio / Re: Puzzled about bit of code on: September 04, 2011, 10:50:56 pm
I looked through the source, and I think your issue is that the return of input.read() is only true momentarily. Thus, as soon as the code loops back through again, setFreq() is not called, and no tone is played. Try replacing the
Code:
if (input.read() == true)
with
Code:
if (1)
and I think it should work. The way around this is to set a flag based on input.read() and service it each loop.

Hope this works
43  Using Arduino / Audio / Re: Crazy idea but bear with me - using sound for data transmission on: September 03, 2011, 01:25:02 am
Quote
If you can fit even the 26 letters in common English usage (not counting numbers or punctuation) into the 16 DTMF symbols, recommend contacting a patent attorney immediately to apply for protection of your intellectual miracle.

Hey ke7gkp, if you can fit even 128 ASCII characters in common usage into A message of 2 possible symbols, congratulations, contact a patent attorney right away, you've just invented binary.

DTMF tones could (inefficiently) be used to transfer data in HEX, with 8 times the thruput of a binary signal of the same baud rate.
44  Community / Bar Sport / Re: A project proposal of a "global nature" on: September 02, 2011, 02:46:28 pm
I agree with you, Lefty. The amount of pseudoscience floating around, and the number of people who believe it is really sad. Have you read Science Under Siege? Its a collection of essays by renowned scientists about the dangers of pseudoscience that I picked up for 50% off at the borders going out of business sale (also sad), and its a really good read.
45  Community / Bar Sport / Re: A project proposal of a "global nature" on: September 02, 2011, 02:28:00 pm
I think this just about sums up the tragic pseudo-science of this article:
Quote
While some of that charging could be attributed to a chemical reaction in the capacitor, I believe that much of it is caused by gravity-wave impulses bathing the capacitor at all times.
Good to know. I believe it is caused by bigfoot.

This guy is making ridiculous claims without a shred of proof. I second the call for peer reviewed material, or even just some evidence.
Pages: 1 2 [3] 4 5 ... 24