Show Posts
Pages: 1 ... 243 244 [245] 246 247 ... 746
3661  Using Arduino / Project Guidance / Re: how to connect a phone-camera to a PC via USB? on: August 09, 2013, 06:38:37 am
There are a few "5mp camera modules" on aliexpress and such, but since they are not showing any sample photos, I doubt that their quality is any better then of a webcam...

There's no grounds for that doubt. As a general rule the greater the number of pixels the better the image quality will be. Since you only showed a composite of the two images and not the raw images I have no way to know what the resolution of the webcam images was. The 'web cam' part was obviously much poorer quality and presumably came from a low resolution camera. The S3 has an 8MP camera so a 5MP web cam will not be *quite* as good resolution but it should be close. The camera resolution (and optical quality) is what matters - not the way that it is connected to the PC. Once you get close, note that camera settings can have a significant impact on the image quality.
3662  Using Arduino / Project Guidance / Re: Making a keyboard with an arduino AND putting the arduino under the pcb on: August 08, 2013, 06:47:52 pm
Yes I did.

In that case I don't understand their advice.

Also, it seems to me that I wouldn't need a pcb. Is this correct?

What external circuit you use will depend on which solution you adopt. If you believe that a switch matrix will do what you want then you could implement that by wiring the matrix directly to the Arduino I/O pins and I don't see what you'd need a PCB for. If you use any external electronic components such as shift registers or multiplexers then you would need a circuit between that, the switches and the Arduino - a PCB would be one way to make that circuit.

I'm not sure whether you've already committed to using a Duo, but if not then there are some Arduino clones available which include lots of I/O pins - see http://crossroadsfencing.com/BobuinoRev17/index.html for some ideas.


3663  Using Arduino / Programming Questions / Re: parseInt() returns an int? on: August 08, 2013, 06:04:41 pm
Yes, I have to read it in the context of the Arduino environment

The Arduino online reference is abysmal and even where it provides information about the actual method/function signature I wouldn't put a great deal of faith in it. In many places, it doesn't actually tell you what the signature is and also doesn't give you any hint as to where you'd find that defined in the source code. Other than a bit of general hand-waving about the purpose of the API it's next to useless. Which is odd, given how many ways there are to generate API documentation from the source code these days.
3664  Using Arduino / Project Guidance / Re: values on my temp project slowly increase on: August 08, 2013, 06:00:33 pm
both numbers are stable

If the analog reference voltage is stable and the voltage at the analog input pin is stable then the results from analogRead() should also be stable. If that's not the case then one of your assumptions must be invalid.
3665  Using Arduino / Project Guidance / Re: Making a keyboard with an arduino AND putting the arduino under the pcb on: August 08, 2013, 05:57:46 pm
The person at Electronics Stackechange said a matrix would work.

Did you explain that you wanted to support having multiple keys pressed simultaneously? I don't see how that would work with a conventional matrix.

Google will show you how to use shift registers to provide extra inputs or outputs with an Arduino.
3666  Using Arduino / Programming Questions / Re: Arduino Camera Control on: August 08, 2013, 05:33:06 pm
Suggest you start with the first error - it seems that code in dataitem.h is referring to a type that hasn't been declared in that compilation unit. I suggest you locate the reference to that type in the file being compiled, see whether it's a valid reference (there may be some error/corruption in your source), find where the type is actually declared, and work out why it isn't accessible at the point that compilation unit is compiled. I don't see the source for dataitem.cpp or dataitem.h in https://github.com/felis/Arduino_Camera_Control so perhaps it's something you added, or something you obtained (are expected to obtain) from somewhere else.
3667  Using Arduino / Programming Questions / Re: Programming adapter on: August 08, 2013, 05:25:47 pm
The adapter pictured has 6 spring loaded pins that make contact with Reset, SCK, MISO, MOSI, GND, VCC to program the 328P on the board.

Oh, you mean you access the pins on the chip itself rather than via pins on the PCB? I get it.
3668  Using Arduino / Programming Questions / Re: Serial Port Error - Arduino and Processing can't run together on: August 08, 2013, 05:23:29 pm
Quote
I've concluded that I can't run Arduino and processing at the same time,
You are wrong, I have been using them at the same time for years.

I think in this context it would be more accurate to say that you can't use Processing and the Arduino IDE's Serial Monitor to connect to a given Arduino's serial port at the same time. And I believe it's true that you can't, unless you're willing to consider much more complicated solutions to replicate the data passing to/from the serial port. However, given a Processing application that you have control over, I don't see why you would need to use the serial monitor at the same time. Surely, whatever you wanted to do with the serial monitor could be done by the Processing application instead?
3669  Using Arduino / Project Guidance / Re: how to connect a phone-camera to a PC via USB? on: August 08, 2013, 05:14:15 pm
even with the best webcam image quality was rather poor.

I don't know what you consider 'the best' web cam but web cams are available with relatively good resolution. What image resolution are you looking for?
3670  Using Arduino / Project Guidance / Re: values on my temp project slowly increase on: August 08, 2013, 05:12:57 pm
Have you checked whether the actual analog output voltage from the sensor is changing, and whether the voltage you're supplying to the sensor is changing? It would be a good start to know whether the change is occurring within the sensor, or the Arduino.
3671  Using Arduino / Project Guidance / Re: Making a keyboard with an arduino AND putting the arduino under the pcb on: August 08, 2013, 05:10:33 pm
If you're going to support simultaneous key presses then you can't use a simple matrix. You could use a separate matrix for each set of characters which can't be pressed together, but that would still go wrong if somebody ever did press multiple keys in the same matrix. You don't have a huge number of keys there - have you considered using shift registers to provide a separate input per key?
3672  Using Arduino / Project Guidance / Re: Problems reading serial data from a GPS module on: August 08, 2013, 05:06:37 pm

Code:
Serial.write(GPS.read());


You need to check there is input available before you read it. If you call read () when there is nothing available it will return -1, which if treated as an ascii character (as you're doing) will display ΓΏ.
3673  Using Arduino / Project Guidance / Re: Getting around the 32K limit of memory in a 328 on: August 08, 2013, 05:03:51 pm
You could do, but as a code paging solution it's a pretty horrible approach because it's going to be extremely slow - and you'd have to worry how long your flash memory is going to last. You'd be better IMO looking for alternative approaches such as using an interpreter, or simply moving to a more appropriate platform. I know you say you want to stick with the 328 chips, but that doesn't mean it's a sensible platform for what you're trying to do.
3674  Using Arduino / Programming Questions / Re: Programming adapter on: August 08, 2013, 11:17:54 am
Given that SPI/ICSP is (presumably) not available, what mechanism is the Atmel MKii using to upload the bootloader?
3675  Using Arduino / Programming Questions / Re: Serial port object in custom library on: August 08, 2013, 11:13:30 am
Unfortunately, due to design decisions taken by the implementors of the HardwareSerial and SoftwareSerial classes, it's not possible to have a common abstraction of a bidirectional serial port. smiley-sad

But if the serial port is only going to be used for input or only for output, you can refer to it by an abstraction which is common to the hardware and software serial ports.
Pages: 1 ... 243 244 [245] 246 247 ... 746