Show Posts
Pages: 1 2 3 [4] 5 6 ... 15
46  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Camera Interface on: September 22, 2012, 04:08:36 pm
i am curious..
it turns out that the arduino has too little memory to store an image.
One wouldnt put a arduino in between a cam if it can be attached directly.
Are you sending the image to an extension board directly ? (wifi or ... ? )

And is the cam / arduino combination in .. well in speed match, because camera's can be fast.
47  Using Arduino / Interfacing w/ Software on the Computer / Re: how to make arduino send signal to csharp on: September 22, 2012, 03:49:52 pm
see :    http://msmvps.com/blogs/coad/archive/2005/03/23/SerialPort-_2800_RS_2D00_232-Serial-COM-Port_2900_-in-C_2300_-.NET.aspx
48  Using Arduino / Programming Questions / Re: memory extensions ? on: September 22, 2012, 03:35:25 pm
Quote
Simple cheap camera's dont record in jpg they take snapshots or stream in RGB or other similar formats.
I still wouldn't choose an 8 bitter to pick apart something like a 5:5:5 RGB stream
be it rare it is decodable see http://www.fourcc.org/rgb.php ..my cheapo cam does 8bpp
49  Using Arduino / Programming Questions / Re: memory extensions ? on: September 22, 2012, 03:24:06 pm
i didnt new that netduino existed,
i was aware of another connection between visual studio and normal arduino (nice for the code completion, but some how for arduino i like its notepad editor)
I have used many editors, even when i had visual studio.
However also netduino lacks enough memory for this
Somehow thinking about it i find this strange.. USB stick prices are pretty low, memory isnt that expensive.

But maybe people are right here despite i like the arduino and its I/O possibilities, it just is to small.
Well i'm not that deeply into various micro controllers / processors any ideas for a 32 MB or more.. system that would be programmable like an arduino
(so one that includes a bootloader  usb connect or wireless etc)
As far as i know a rasberry pi has 256MB, but maybe there are others too,
I wished arduino had it but oh well something else might be better suited for it
I would like a board with lots of IO ports on it including analog/digital pins (not a strong point of the rasberry).
And preferably an active community around it like here. 
50  Using Arduino / Programming Questions / Re: memory extensions ? on: September 22, 2012, 02:19:32 pm
Well i never talked about jpeg
Simple cheap camera's dont record in jpg they take snapshots or stream in RGB or other similar formats.
51  Using Arduino / Programming Questions / Re: memory extensions ? on: September 22, 2012, 12:35:57 pm
just a reply to all of them above.

Well a micro controller or anothers.. it doesnt matter as long they can read c++ it shouldnt matter, the Arduino isnt worse, its a pretty cool chip in my opinion.
Pictures might for some people be complex datastructures, but realy to me it not that complex, the math i put against it is more complex then reading an image, but still my code would be small.
A small BMP picture 640x 480 is about 1 Mb
A small bmp picture 800x600 is around 1.3 Mb
So maybe 32Mb is luxery (although it would allow for image storage, in for example a motion detector application)

The tiger person sugest SRAM module,  do you have some more info on that ?.
52  Using Arduino / Programming Questions / Re: memory extensions ? on: September 22, 2012, 07:17:12 am
No i dont put my c# code inside Arduino smiley)
But C# is easy to translate (although be it a bit more work..); i first do c# for faster development, later it might become c++
I understand its a lot for arduino perspective, but compared to my labtop its almost nothing (12Gig mem)
And wel 32MB isnt realy huge, for exampl a memory stick on my desk is 4GB and the other stick is 64GB...
But i can imagine that wouldnt be addressable with arduino so much, just 32B or so would allready be fine.
53  Using Arduino / Programming Questions / memory extensions ? on: September 22, 2012, 06:36:29 am
I am in the middle of writing a c# library for image recognition.
I know the arduino has to little memory to load an image from for example a small webcam 800x600 pixels.
So i wondered are there memory extensions for arduino, ... because with a little bit more ram, say 32Mb or 64Mb or so a whole new range of applications would becomme insight.
54  Using Arduino / Programming Questions / Re: NEED HELP FAST!!!!! on: September 19, 2012, 04:43:37 pm
oh and also he did this

if (blabla==blblblb); {  }
note that red ; is wrong


if (your logical test here){actions sperated by; like another one here;}

if you logical test is more complex you can nest them like this if((a==b)||(c==d)){do things;}
55  Using Arduino / Programming Questions / Re: "Immunity-aware programming" on: September 19, 2012, 10:28:37 am
i am not 100% sure but here an advice if your device operates near people and might harm them. (note that arduino shouldnt be used in such environment)
however in such environments and as an addded saferty like such environments.

Besides electrical discharge, it it is for safety reasons then your sensor output to keep a machine going should always be on (provide signal).
In other words if you loose signal the device should stop whatever it is doing.
So even an "on" button cannt be a single push signal, and there cannt be a on signal to turn something off in a flow of behaviours.
no signal is then interprented as broken signal, and thus a reason to stop or to behave different.

 
56  Using Arduino / Programming Questions / Re: How to save a constant updating value on: September 13, 2012, 05:25:28 pm
hmm some side notes.
So the angle is from a device (bike) that can turn over (fall)..

Hmm it might be hard to balance something if thats your goal.
There are accellero meters and there are things who precizely measure an angle but no acceleration.
The math to balance is kinda complex dough there was an article recently i tink on "hack a day" website..
Dough, it might perhaps be an idea to not use complex math for it, but train a more general neural net (there is even a neural net example for arduino)
Training dough will require a lot of falling, but eventualy by learning such software will work (hey even you i can walk by using our real neurons).
I remember for (real) long time ago such neural software has been used on targeting rockets, and kept better track under real world conditions (wind, unstable engines etc).
It wont be easy but.. if learning was your goal.. there is a lot one can learn from it.
57  Using Arduino / Programming Questions / Re: Multi-dimensional byte array Init on: September 12, 2012, 04:35:52 pm
hm, this might have to do something with the scope of the code, i wonder.
Usually libraries contain functions, and do things separately from main code
It might be that the values are private only available in your library itself.

this might interest you            http://stackoverflow.com/questions/5620256/understanding-how-to-correctly-treat-c-class-constants
there are other methods too   [url]http://codewrangler.home.comcast.net/~codewrangler/tech_info/cpp_const.html[/ur]
depending on the code one could keep values inside the library (and have functions exposed of how to respond*.) or expose variables like the alphabet to outside the library.

*Like Send(pin,"SOS") and    msg=Read(pin)
58  Using Arduino / Programming Questions / Re: How to save a constant updating value on: September 12, 2012, 06:04:50 am
ehm the code idea i presented allowed for defining a moment when the button is active
the push button would only become active again after a specific condition
isnt that what your looking for ?
59  Using Arduino / Programming Questions / Re: How to save a constant updating value on: September 11, 2012, 04:41:57 pm
Its not exactly clear to me what you want to achieve, but i believe maybe an extra variable could help here.
Below i give a sample based on your code, it might not be complete because i'm not sure what you try to do.

Well here is how it can work for you, use another variable in which you track when its OK to use the activate button.
While readkey = false you wont go into the condition where you store your angle data.
Only when both are true you store your data, so when its not true you only check for the condition of readkey, at certain angle become true..

i placed it all in an if construction, perhaps you might consider while too, but not sure if the code had to keep running (e.e so it wont lock inside a loop) below code wont lock / halt inside a function.



Code:
// put in setup
Boolean readkey = true;


// put in main...

val = digitalRead(button); //Read input


if ((val==True) ||(readkey==True))
 {    // i asume code below is what you want to happen when things are true
   Serial.write(0xFE);   //command flag
    Serial.write(192);    //position
    saveY=Yangle;
    Serial.print(saveY);
    readkey = false;    //ADDED
 }
else
 {  
  if (readkey==false) { //here you can decide when to enable the readkey
                                 if (yourvalue =< ???? ){ readkey = true; Storemyvalue = ?????}                          
                             }
 }

60  Using Arduino / Programming Questions / Re: Multi-dimensional byte array Init on: September 11, 2012, 10:35:31 am
why do you need a multiple dimensioned array to create morse code ???
be aware that such arrays use a lot of memory.


you only need to store short long and empty so  01 11 00 is enough.
If you want to improve you better create something that also does improve for example by using less memmor

the letters are made of 4 signals, so in essence you could do this with just 1 byte per letter character. ( A = 01 11 00 00) equals 112
such alfabet stored in bytes would only require 24 bytes, thats a lot less memory.

Only numbers require 5 signals so you cannt store them in a single byte (5*2 bits =10 bits).
However numbers have a simple presentation invent a function to write and read them.. also not that complex.
Pages: 1 2 3 [4] 5 6 ... 15