Show Posts
Pages: 1 [2] 3 4 ... 17
16  Using Arduino / Project Guidance / Re: PD0 and PD1 as digital output and serial programmin interface on: April 20, 2011, 06:27:15 am
How i can say to arduino - now run your program and use PD0 and PD1 and now is programming time?

Programming time is only available for a few moments after reset when using the normal bootloader.  When your sketch is running, programming time is over.  When you decide to re-program the device, the Arduino IDE automatically resets the device allowing it to enter programming time.  If it is not programmed within the set amount of time, programming time is ended and your sketch starts.  So you would also want to hook up the reset pin to allow for this.
17  Using Arduino / Project Guidance / Re: how to do parallel processing? on: April 09, 2011, 04:37:58 pm
As shown in the blink without delay example you need to look at how much time as passed before doing something instead of creating a delay.

So in your loop you would have an IF statement for each "delay" you need that would check to see how much time has passed since it last started or ended.  The easiest way to think of how this works is to assume that everything in the loop happens instantly over and over again but the time that has past keeps going up.  So keep checking the time that has passed then do what needs to be done once the time has passed and reset your counter for that particular function.

If you want to run 3 "parallel" processes at the same time that each have a different "delay" you would need a variable for each that had the start time.  You then compare this time to the current time and decide if enough time has past to change the outcome... if not, then continue, if so, then change a variable or do something, reset your start time variable and continue.
18  Using Arduino / Installation & Troubleshooting / Re: Arduino Mega 2560 compatability? on: March 23, 2011, 10:47:11 pm
The code looks like it was designed specifically for the Atmega328.  Most of that code is using direct C code and not Arduino functions.  You will probably have to change the timers or ports that are used to make it work on the Atmega2560. Normally this is done in the background via the Arduiono IDE but in this case the code bypasses these functions, probably because it is very dependent on timing to do what it needs to do.  This is most likely not a hardware problem but a lower level programming issue.  Unfortunately I haven't worked with this type of code enough to help you fix it, but that should point you in the right direction.
19  Community / Website and Forum / Re: Moderation Guidelines && Applications for Moderators on: March 15, 2011, 06:51:24 pm
I would be interested in helping out in any of the following

Project Guidance
Product Design
Other Hardware Development
20  Using Arduino / Project Guidance / Re: Electronic lock suggestions for an RFID system on: March 12, 2011, 02:45:18 pm
This seems promising... but it already has all the electronics so you wouldn't really have to build much.
21  Using Arduino / Installation & Troubleshooting / Re: Arduino Mega 2560 with possible bad USB chip on: January 30, 2011, 10:28:09 am
You can test the USB interface by doing a loopback test.  Search the old forums for examples on how to do this.  Essentially you need to jumper digital pins 1 and 0 together.  Then open up the serial monitor.  Anything you type in there should be echoed back.  If this happens then the USB interface is most likely working correctly.
22  Using Arduino / Project Guidance / Re: change 5v breadboarded arduino (atmega 328) to 3.3v on: January 29, 2011, 03:07:24 pm
I think you will also need to flash an 8MHz bootloader or it may not have the correct baud rate when loading a sketch.
23  Using Arduino / General Electronics / Re: Cheap/Good PCB houses outside China (Chinese New Year) on: January 29, 2011, 09:50:26 am
Well, there are a lot of Chinese people in Malaysia and their site says they're closed.

My fault for looking at the site on a netbook.  I should have scrolled down a little more.
24  Using Arduino / General Electronics / Re: Cheap/Good PCB houses outside China (Chinese New Year) on: January 28, 2011, 07:11:37 pm
on topic... is in Malaysia.  Just ordered some prototypes from them.  They verified my design with me and even doubled my order!
25  Forum 2005-2010 (read only) / Troubleshooting / Re: Over 64K of code on Mega = troubles? on: September 08, 2010, 08:48:54 pm
There are also bugs in gcc that prevent bigger programs from working.  Look at some of the post by Mark S, he has some good explanations on this.
26  Forum 2005-2010 (read only) / Troubleshooting / Re: how to upload program wirlessly on: August 02, 2010, 07:19:38 pm
To load a program into the Arduino, you need to tell the bootloader you are trying to do so.  The bootloader will only listen for this signal right after reset.  It happens something like this...
1. Reset arduino
2. bootloader if the first program to run, it listens for commands on the serial connection (UART0, arduino pins 0 and 1)
3. If the correct command is received before a certain amount of time, then the bootloader will allow you to upload your program.  If it does not get these commands in the correct amount of time, the bootloader then continues to execute the program that is already on the arduino.

Hopefully that helps you understand what is going on.

The problem is that the Nordic wireless transceivers need to be initialized and talked to in the correct way.  I don't think you can just relay serial commands with them.  If this is the case, you will need to rewrite the bootloader to be able to communicate with the Nordic transceiver. You would also need a way to accomplish the same thing on the computer you are trying to program with.
27  Forum 2005-2010 (read only) / Troubleshooting / Re: Loading bootloader on ATMega2560 on: July 06, 2010, 01:47:36 pm
I would try and make sure the fuse bits are being set correctly.  Maybe use avrdude from the command line to see what the fuse bits are.
28  Forum 2005-2010 (read only) / Troubleshooting / Re: Export firmware from Arduino to PC on: June 01, 2010, 07:24:04 am
You could recover the file you have on the Arduino, unfortunately it will probably be of no use to you.  It is the compiled version and not the nice easy to read code you created previously.  
29  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: Blink example on Mega2650 and 0019 on: September 19, 2010, 12:00:36 am
What changes have you made to 0018 and 0019 to allow you to compile and load programs on to the 2560 (I assume you mean 2560 and not 2650)?
30  Forum 2005-2010 (read only) / Syntax & Programs / Re: Help Porting Wireless Bootloader to MEGA (1280)? on: August 24, 2010, 06:01:07 pm
I didn't look at this too closely, but maybe have a look at app_start  compare it to the app_start in the arduino bootloader.  I sort of remember this being an issue.
Pages: 1 [2] 3 4 ... 17