Offline
Full Member
Karma: 2
Posts: 212
|
 |
« 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.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 311
Posts: 35470
Seattle, WA USA
|
 |
« Reply #1 on: September 22, 2012, 07:10:53 am » |
because with a little bit more ram, say 32Mb or 64Mb or so a whole new range of applications would becomme insight. Given that the Arduino has 1K, 2K, or 8K of SRAM, depending on model, adding 32M is hardly "a little bit more ram". I am in the middle of writing a c# library for image recognition. You don't really expect C# code to run on the Arduino, do you?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 212
|
 |
« Reply #2 on: September 22, 2012, 07:17:12 am » |
No i dont put my c# code inside Arduino  ) 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.
|
|
|
|
|
Logged
|
|
|
|
|
South England
Offline
Full Member
Karma: 3
Posts: 194
|
 |
« Reply #3 on: September 22, 2012, 07:19:37 am » |
For all that messing around, why not just start with a more suitable platform for your project that already does what you need it to do?
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3118
|
 |
« Reply #4 on: September 22, 2012, 07:20:42 am » |
If you have a Mega, then you can add up to 512KB directly into the memory map. http://ruggedcircuits.com/html/quadram.html
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 311
Posts: 35470
Seattle, WA USA
|
 |
« Reply #5 on: September 22, 2012, 07:20:54 am » |
There are SRAM extensions available for the Mega that allow using external SRAM just like the built in SRAM.
|
|
|
|
|
Logged
|
|
|
|
|
Milton Keynes UK
Offline
Tesla Member
Karma: 88
Posts: 6287
-
|
 |
« Reply #6 on: September 22, 2012, 08:46:50 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.
If you're familiar with microcontrollers and can see projects that are pushing the boundary of the possible, it's tempting to try to move that boundary a little. But really, it seems to me that a microcontroller is not a suitable platform for the type of project you're describing; you would be better off starting with a microprocessor-based solution.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #7 on: September 22, 2012, 10:00:07 am » |
One of the other downsides of image processing on eight bit architectures is that, unless your image is binarised, fetching pixels (bytes) one at a time is tedious.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2304
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #8 on: September 22, 2012, 10:03:26 am » |
Seems to me that the look-up table for that "extended" ram would exceed the native ram capacity.
Doc
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 212
|
 |
« Reply #9 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 ?.
|
|
|
|
|
Logged
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3118
|
 |
« Reply #10 on: September 22, 2012, 12:42:55 pm » |
The tiger person sugest SRAM module, do you have some more info on that ?. http://ruggedcircuits.com/html/quadram.html
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #11 on: September 22, 2012, 12:44:01 pm » |
Pictures might for some people be complex datastructures JPEG images are indeed complex datastructures, as are just about any compressed image format. I really wouldn't want to wait around for an eight bitter to perform multiple IDCTs.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 212
|
 |
« Reply #12 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.
|
|
|
|
|
Logged
|
|
|
|
|
Chile
Offline
Edison Member
Karma: 28
Posts: 1144
Arduino rocks
|
 |
« Reply #13 on: September 22, 2012, 02:31:57 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.
Maybe you want Netduino or some C# capable board?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Full Member
Karma: 2
Posts: 212
|
 |
« Reply #14 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.
|
|
|
|
|
Logged
|
|
|
|
|
|