Show Posts
Pages: 1 ... 243 244 [245] 246 247 ... 837
3661  Using Arduino / Project Guidance / Re: Is a special order necessary on: November 04, 2013, 01:09:26 pm
Additionally, I recommend that you tackle the different hardware subsystems separately. Connect each one in isolation and write a minimal test harness to learn how to interact with it and confirm it does what you want, then add in the other hardware and confirm that your test harness still works as you want. Do this separately for each hardware subsystem, so you know all the hardware works and you know how to interact with each one before you try to combine those different software functions into your project.
3662  Using Arduino / Project Guidance / Re: USB Mouse on: November 04, 2013, 01:06:51 pm
That makes me suspect that you are not using a compatible mouse, or that it is not connected to the Arduino correctly.
3663  Using Arduino / Project Guidance / Re: Which is the common debugging software in use with Arduino ? on: November 04, 2013, 01:04:43 pm
My recommendation is that you get used to debugging the sketch on the target. At the scale of application suitable to be run on an Arduino it works just as well as an interactive debugger and better in some ways, it just needs the right mindset. If you plan to use an emulator/simulator you have to get into hardware emulation as well and it quickly becomes impractical so you will ultimately have to work on the target anyway - better to start there in the first place IMO.
3664  Using Arduino / Project Guidance / Re: Do Arduino libraries include source code? on: November 04, 2013, 01:01:06 pm
Yes. The modules that make up the Arduino runtime environment, all the standard libraries that ship with the IDE and all 3rd party libraries that you add are supplied as source files that are compiled with your sketch to make the final executable image.

The runtime framework and standard libraries are within the directory that the Arduino IDE is installed in. 3rd party files are wherever you installed them, which should have been under the libraries folder of your sketch directory.
3665  Using Arduino / Programming Questions / Re: Why EthernetClient does not name a type? on: November 03, 2013, 09:31:01 pm
This is caused by the mucking about that the Arduino does before compiling your code. If it used straight forward C++ you wouldn't have irrational behaviour like this.

What happens is the Arduino IDE uses the set of #include files in your .ino file to determine what libraries you are using, and then makes the corresponding source and header files available to the compiler (by copying the files into the compilation directory and setting include file paths and so on). If ANY of your code uses a library indirectly or directly, you must include the libary's header file in your main .ino file. This also holds for libraries which require other libraries - even though you may never access the lower level libraries in your code, you MUST include the corresponding header in your sketch .ino file in order for the sketch to build successfully.
3666  Using Arduino / Project Guidance / Re: Stress level detection on: November 03, 2013, 09:25:08 pm

Here is more info:

arduino spl meter
3667  Using Arduino / Project Guidance / Re: Need help with a science fair project on: November 03, 2013, 09:22:56 pm
Might be simpler to put two mics, one at each end, and trigger the sound yourself by tapping the material. That halves the number of devices you need to interface to.
3668  Using Arduino / Project Guidance / Re: Making a USB HID joystick without an Arduino Leonardo on: November 03, 2013, 09:20:15 pm
I haven't done it myself but I've read of people who have used a UNO to do HID emulation. I don't remember the details but I suppose it would involve reprogramming the Atmega16U2 that serves as the serial-to-USB converter.
3669  Using Arduino / Project Guidance / Re: Project Idea: Embedding SMS activated GPS tracker in a bike on: November 03, 2013, 09:17:56 pm
Seems to me that it would be better to focus on ways to stop it being stolen - i.e. stronger locking mechanisms and better discipline about using them. Adding tech to your bike just increases the amount of stuff you lose when the bike is stolen.
3670  Using Arduino / Project Guidance / Re: Send serial data without the IDE? on: November 03, 2013, 09:15:45 pm
I don't know what's involved in configuring the serial port with that OS, but perhaps there's something you need to do to set the serial parameters (speed, start/stop bits, parity). I don't see why that would cause the symptoms you're describing, but it's all I can think of.
3671  Using Arduino / Programming Questions / Re: define variables using for loop on: November 03, 2013, 07:56:55 pm
so I would have variable0, variable1, variable2.

This code defines an array variable named foo with three elements foo[0], foo[1], foo[2]:

int foo[3];
3672  Using Arduino / Programming Questions / Re: WiFiWebClient on: November 03, 2013, 07:52:31 pm
Find or install a server locally that you can connect to, to eliminate the internet part of the problem. A web server would be the most obvious one to go for since that would be useful for testing your web client too, but at this stage it doesn't absolutely have to be a web server, just anything that will accept TCP connections.
3673  Using Arduino / Programming Questions / Re: Direct Port Manipulation -- analogWrite? on: November 03, 2013, 07:49:11 pm
Hi there -- I'd like to know how I could do an analogWrite directly.

The simplest answer is to look at the source for analogWrite(), take out whatever functionality you think you don't need, and reproduce whatever's left in your code.

Is there any particular reason you want to do this?
3674  Using Arduino / Project Guidance / Re: Send serial data without the IDE? on: November 03, 2013, 07:45:58 pm
when I run echo '1' > /dev/tty.usbmodem1411, I get: /dev/tty.usbmodem1411: cannot create [Input/output error]. I run it in sudo with a same result. Any ideas? Thanks.

Does the Arduino reset when you run that command?
3675  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: November 03, 2013, 07:43:53 pm
So how am i supposed to fix it?

Well you could start by confirming the guess that your ArduinoWrapper.h is defining millis() as a macro.

If it is then that suggests that the code you have is probably not Arduino code - it's Arduino-like code. You can either run it as-is in whatever development environment and runtime environment it's designed to work in, or you can try to convert it into actual Arduino code. The way to do that would be to get rid of the wrapper and then see what errors that causes and work through fixing them all.
Pages: 1 ... 243 244 [245] 246 247 ... 837