Show Posts
Pages: [1] 2
1  Using Arduino / Installation & Troubleshooting / Re: Home made Arduino with ATmega32 on: July 24, 2011, 08:45:17 pm
Code:
Do you know where can I find more information about this firmware ?

start here: http://www.arduino.cc/en/Hacking/Bootloader

Code:
How to migrate this firmware from an ATmega328 (arduino┬┤s official) to an ATmega32 microcontroller?
start here: http://retrointerfacing.com/?p=30
2  Topics / Robotics / Re: Map Generation on: July 22, 2011, 01:19:07 pm
I'm also working on robot map building at the moment but in my case, because of computational constraints (and I'm using a dual Arduino setup!!) , I moved the calculations to an external computer and it looks like this will work well.

About your question:

Code:
Does anyone know of a program, like matlab perhaps that is capable of taking a 2D matrix, and chracteristing it as 3D function?

I never thought about things this way and it's very interesting, but in my view:

1. Should you consider to use it on an external computer (read common PC), an array of 12096 elements is not a problem, so I wouldn't use that function. But,
2. if you plan to use that hypothetical 3D function on the robot on the UNO, you potentially use up less memory but you need to consider the very likely possibility that the UNO will just be bogged down by way too many slow floating point divisions and multiplications once you start manipulating the function to generate something useful...
3. I would consider decreasing the grid resolution, what is the size of your machine? For many cases a grid (matrix) that is much smaller than the machine itself adds no advantage to the goal.

Good luck!
3  Using Arduino / Installation & Troubleshooting / Re: unable to upload to Uno with Arduino-0022~maverick1 on Ubuntu 10.10 on: July 22, 2011, 12:43:44 pm
make sure that the usb port is opened correctly by running dmesg just after you plug in the board. That will tell you if the Uno was correctly assigned to a USB port and also which port it was associated with. Then, and assuming the port is opened correctly, on the IDE, select that exact port. If it still does not work after this, I would look at the cable, or trying another physical USB port.

Rui
4  Using Arduino / Installation & Troubleshooting / Re: Error message for sample stepper motor program on: July 22, 2011, 12:21:17 pm
This may happen if the library is not installed and/ or not place on the correct folder. Sure you have the library properly installed as per the instructions in here?
5  Using Arduino / Installation & Troubleshooting / Re: Intermittent Arduino Mega2560 problem: "COM5 already in use" on: July 22, 2011, 11:51:48 am
I have the same setup and that problem happens to me sometimes. In my case, it seems to have something to do with the console as it is more likely to happen when I just had the console open and then press the upload sketch button without explicitly closing the console first. Sometimes, after I close the console and try to upload the sketch immediately after, I still get the message COMX already in use. Pressing the load sketch one more time then works for me.

Rui
6  Using Arduino / Installation & Troubleshooting / Re: stk500_recv(): programmer is not responding on: July 22, 2011, 11:45:30 am
Start by confirming you have the duemilanove board selected on the Tools -> Board menu of the IDE

Rui
7  Using Arduino / General Electronics / Re: Use charger as DC supply to Arduino on: July 22, 2011, 11:38:01 am
Many thanks! I will not connect it this way then and will use two battery packs instead during development - use one while the other charges...
8  Using Arduino / General Electronics / Use charger as DC supply to Arduino on: July 22, 2011, 04:06:09 am
Hello All!

I have a project that uses a 7.2V battery pack for power. Up to this point, every time I need to recharge the pack I remove the power plug from my Arduino and plug in the charger to it. Works well of course, but I need to wait until the pack is charged to continue to work.

That pack power is also connected as DC motor power.

My question is: if I install two plugs in parallel on the wire that comes from the battery pack, connect one to the Arduino and the other to the charger every time the pack needs to be charged, will this setup charge the batteries and at the same time keep power to the circuit at around 7.2 to 7.5V?

This is my charger: http://supertechman.dyndns.org/~zodiak/charger.pdf

TIA,
Cheers,
Rui
9  Using Arduino / Programming Questions / uint8_t clarification on: May 02, 2011, 08:48:18 pm
Hello All,

when I write "uint8_t *" as in for example: Wire.send((uint8_t *)&var1, sizeof(var1)); what does the * after uint8_t mean?

Many thanks,
Rui

10  Using Arduino / Storage / Re: Sd card read/write sector library on: February 22, 2011, 10:39:52 am
Hey carl47,

Many thanks for this library, almost exactly what I was looking but I had to make some minor modifications to suit my needs:

1. Be able to use any pin for SS that I choose, not just D10.
2. Be able to use the existing SPI library instead of implementing its own SPI comms code.

In case anyone needs the same requirements I had, I packaged my changes on to a modded version of carl47 library called SDCARDmodded ;-)

Main visible changes are:

SDCARDmodded.readblock(sector number, port); //read 512 bytes from this sector, port is the SS pin (any pin you choose)
SDCARDmodded.writeblock(sector number, port); //write 512 bytes to this sector, port is the SS pin (any pin you choose)
and sketch will require an #include <sdi.h> to run.

Read description and get modded library from here: http://code.google.com/p/wifispeak/downloads/detail?name=SDCARDmodded.zip&can=2&q=

Hope it helps,
Cheers and thanks carl47
Rui
11  Using Arduino / Programming Questions / Re: array to progmem on: February 10, 2011, 08:32:51 pm
thanks!

yeah, I actually did think about the SDcard storage, here's something I did sometime ago regarding that: http://supertechman.blogspot.com/2011/01/convert-old-ethernet-shield-to-sdcard.html

I was just thinking about other possibilities before I added more HW to the project. I think I'll go the SDcard way.

Cheers,
Rui
12  Using Arduino / Programming Questions / array to progmem on: February 10, 2011, 02:54:52 am
Hello All,

I'm working on a project that gets a data stream (sequence of bytes which I want to place in an array) and then does something with it. I would like to receive the stream and save it to the program memory because I would like to store 4096bytes and flash is not enough on my 328P.

The following section of my program is quite simple and works saving the elements to an array in flash memory:
Code:
...
unsigned char HelloMP3[1024] = { };
...
//******************SAVING ARRAY TO FLASH:
//DATA IS COMING IN FROM THE NETWORK
 while (client2.connected()){           
            p = &HelloMP3[0];
            while (p <= &HelloMP3[sizeof(HelloMP3)-1]) {
              *p = client2.read();
              p++;
            }
}
//******************READING ARRAY
p = &HelloMP3[0]; // Point "p" to the beginning of array
while (p <= &HelloMP3[sizeof(HelloMP3)-1]) {
            variable = p*;
            p++;
}

now I would like to implement the exact same code but saving each element in progmem as they are made available or alternatively I can store the data on a 1024 array (I have this amount available in flash) and then transfer it to progmem and repeat this until I get to 4096bytes.

I hope I was clear enough! Any good ideas?

TIA,
Rui
13  Forum 2005-2010 (read only) / Troubleshooting / [m by=mellis destboard=interfacing dest=1265389280]: manipulating serial data on: February 06, 2010, 06:20:54 am
[moved] [link=http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1265389280/0]Interfacing[/link] [move by] mellis.
14  Forum 2005-2010 (read only) / Interfacing / Re: manipulating serial data on: February 06, 2010, 06:20:54 am
Brilliant and clever! Took me a while to see that but I got it. Thanks!
15  Forum 2005-2010 (read only) / Interfacing / Re: manipulating serial data on: February 05, 2010, 12:40:33 pm
Thank you for the replies, guys!

Groove the following code works like a charm, many thanks:
Code:
g_pos = ((command[1] - '0') * 100 + (command[2] - '0') * 10 + (command[3]) - '0') - 100;

May I just ask what the code above does? I'm confused, subtracting char '0' to the ascii code on each array element??
Pages: [1] 2