Show Posts
Pages: [1] 2 3 ... 16
1  Using Arduino / Project Guidance / Re: Arduino Mega 2560 mega on Flexible PCB on: March 23, 2014, 12:37:06 am
Assuming the chip is programmed and I don't need to program it again
Will program via ICSP.
I am thinking of dropping the Ft2232 chip. take out the ICSP pins
How do you plan to program the chip?

I have an uno board so I am thinking I can program the Atmega2560 board via ISP.
Or I was also thinking on the lines of having a TQFP package holder and program it with a Mega board and drop and solder it in the final flexible PCB version...

However I would breakout the JTAG pins so that you can do some debugging if need be.
Yup. Thinking about it. I have a JTAG ICE3 so it should help in debugging...
2  Using Arduino / Project Guidance / Re: Arduino Mega 2560 mega on Flexible PCB on: March 21, 2014, 11:48:13 pm
Thanks Crossroads smiley
I am thinking of dropping the Ft2232 chip. Will program via ICSP.

In the barebones board I am thinking of including(all SMD ones) Atmega2560 IC + power supply regulator + decoupling capacitors + 16MHz crystal + crystal capacitors + take out the ICSP pins.

One general question though, why did official arduino choose Atmega16u2 as a replacement IC for ft2232 ics? I am not seeing an advantage... Am I missing something?
3  Using Arduino / Project Guidance / Arduino Mega 2560 mega on Flexible PCB on: March 21, 2014, 11:51:57 am
I am trying to make a Arduino Mega 2560 on a flexible PCB for a hobby project I am working on(Haven't started on it yet though! ). I was wondering if anyone here had done something similar for Mega(I have seen the Seeduino project I would like to know if there is something I should keep in mind before attempting something like this(Soldering Atmega2560 TQFP100 package on flex PCB? ) or something which could prevent me from making the flexible version of the board work.
Couple of more doubts...
1) Should I use Atmega 16U2 in place of a FT2232 chip? because I cant find any advantage of using a uC for this?  Atmega 16U2 is I think more expensive than the other one?? Will the board work the same way if I use  FT2232?

2) What all should I leave on the board to create a barebones board of Mega2560? When I saw the schematic, I am guessing the uC would work on its own if I just have the power supply regulator + decoupling caps + Atmega2560 IC and crystals of 16MHz. Is there anything I should keep on the board?(Assuming the chip is programmed and I don't need to program it again)

3) If I do the connections as mentioned in Step 2 will I be able to program it in someway?(I am assuming ISP or JTAG would work if I take out the pins)

Hoping someone can respond smiley
4  Using Arduino / Project Guidance / Re: Anti baggage theft alarm on: December 02, 2013, 10:13:09 am
 I know its already out there... but point is, is it accurate enough to detect distances and all? I have seen tag and so on which helps you find the stuff which are in a vicinity... I want to have a device which would cause an alarm if you move out of a region. It needs to consistantly do that with no false triggers or droppages... I was wondering if it could be done with this accuracy...
5  Using Arduino / Project Guidance / Re: Anti baggage theft alarm on: December 02, 2013, 03:53:05 am
A quick question, will these items of luggage ever go on board an aircraft?
if so, be very careful with RF transmissions as this is not only a possible safety issue but I suspect you will also get pulled aside at many airports due to a piece of luggage with lots of electronics bits and pieces inside it.

hmm... havent thought of that... but it would ideally be a small Tx unit. and the base station could be a keychain or a mobile phone running an app...
6  Using Arduino / Project Guidance / Anti baggage theft alarm on: December 02, 2013, 03:23:10 am
Hi u guys, its been a while...
I am thinking of working on a small project over the winter here to kill boredom...
I was planning to make a anti theft baggage alarm, which is basically a unit which you put in your bags and it alerts you whenever you are 'x' meters(upto say 20m?) away from the bag.
I was looking at various tech thats available to use for the system like Bluetooth 4, but the problem  with these would be range is not always a constant(say if I put the Transmission unit inside the bag) and connection can be dropped at anytime. So is there a some tech which could give me a fail safe method? Or maybe the safest bet among the tech available?
What are the other technologies I should look at? Rfid(Very low range) or zigbee maybe?

Is there anyone here who has worked on something similar or own a device similar to these? Any help would do... I am just looking for new directions... smiley

Thanking you guys in advance... smiley
7  Using Arduino / Microcontrollers / Re: Arduino Leonardo Communication issues on: May 17, 2013, 02:51:14 pm
Thank you will check it out  smiley
8  Using Arduino / Microcontrollers / Re: Arduino Leonardo Communication issues on: May 17, 2013, 01:24:41 am
Thanx for that info  smiley
But where in the arduino folder is this exception written into?? I am not able to find out where.
9  Using Arduino / Microcontrollers / Arduino Leonardo Communication issues on: May 16, 2013, 03:29:56 pm
This is kind off a continuation of this thread a way its not thought it would be better to start off a new one). I am trying to develop a new Atxmega128a3u board(Preferably arduino compatible). Now the board is ready and I was able to bootload it with JTAGICE3 and I was able to do blinky program with Atmel studio 6. I was able to upload it via flip and its working fine. smiley

Now since this is not arduino compatible, I wanted to know how I would do USB communication between PC and uC. (Same as the serial.print in arduino terms). I asked this here because, ATXmega128a3u also uses native USB communication as Arduino leonardo. Doesnt Leonardo virtualizes a serial communication over USB? I wanted to know how it does that and where this exception is handled in the Arduino codes because all other boards work via UART and Leonardo works via native USB. (and it uses same Serial commands to do it in Leonardo and)
Can anyone tell me how(and where) this is done in Leonardo? If I can figure that out I might be able to do that same thing with Atxmega128a3u.
10  Using Arduino / Microcontrollers / Re: Atxmega Series development on: April 28, 2013, 12:03:03 am
@Coding Badly Thanx for the info  smiley
I am definitely going to take a look at those after this week smiley (Finals coming up this week..)

Since those guys have ported it might give that a go..
• Webroot identified one threat in the download: .\arduino-1.0.1-windows-x\arduino-1.0.1\hardware\tools\avr\utils\bin\info.exe but Webroot has a tendency to generate false positives
Thanx for the headsup smiley-wink

Xmegaduino. I have seen it online(Couldn't go through it in detail though). Will give it a go soon...
about the only advantage of xMega is the 32MHz clock rate, which is pretty much "not compelling" for the effort required for a new core and new hardware (especially since ... ARM!)  (ok, "big" xMega chips are now running lower cost than big MEGA chips...)
Built in DACs, 32Mhz, 128KB Flash memory, sufficient I/Os and I think its cheaper than ATmega2560. So thats what got me interested in this at the first place.

What I had in mind is something like a small portable oscilloscope with the Atxmega. But what happened was that a bit of googling made me land up on this 
smiley-sad  Kind of exactly what I had in mind(Except the display) smiley-sad
Its kind of hard to innovative these days. smiley-sad

Any ideas on something similar which I could improve/work upon on this?

11  Using Arduino / Microcontrollers / Re: Atxmega Series development on: April 27, 2013, 01:28:40 am
@Coding Badly Thanx for the tips smiley

• pinMode is always first.  digitalWrite is always second.  digitalRead is always third.  millis or delay is always fourth.  With those four functions you have the ability to perform crude debugging.  If possible, Serial is next.

So it should basically be just re assigning of pins right? (I know you might not be able to answer unless you go through the datasheet properly)
My question is where do I edit these parameters from? (Sorry if I am being naive about it) 

Finally I may not actually port it because I think people have already ported it here.
(Did anybody on this forum did the above porting?)
I just wanted to know what were the basic things you do for such a porting.

You may want to spend some time with Google performing general searches.  For example, this looks helpful...

Yes. That was the link that first got me interested in the chip. smiley
I believe the Arduino IDE ships with a compiler for the XMega processors.

Shouldnt the compilers be the same?
12  Using Arduino / Microcontrollers / Re: Atxmega Series development on: April 26, 2013, 02:39:24 pm
Are you planning to develop the hardware and software?

hardware to be specific. I was wondering how to do software portion also. I wanted do something like Xaduino.
Do you have a specific application in mind?
Currently no. Thinking in some areas though. It has built in DACs too. Seems better to invest time in these chips for future anyway smiley

I'm going to go with "no". 
Why is that? Is it because its a new line of chips? How to start off developing these to arduino compatible form?
13  Using Arduino / Microcontrollers / Re: Atxmega Series development on: April 26, 2013, 02:02:20 pm
Can anyone give a start on where to begin in this ?
14  Using Arduino / Microcontrollers / Atxmega Series development on: April 25, 2013, 09:13:44 am
I was thinking on the lines on why there wasn't any rush for arduino compatible Atxmega series of boards like Atxmega128a3u?(Is it due to Arduino Due?)
I was wondeing whether I could give it a go on this for the next couple of months.  I started googling and found this item. Seems that someone has already worked on this.

So my question is how is this developed? I mean how do you go about porting a new series of chips to arduino compatible ones? Can anyone shed any light on this issue? Because I would like to go down to the details on how this is being done. What are the steps involved?

From my understanding, (forgive me if I am totally wrong on this one) I have to write a new bootloader for the Atxmega128a3u and I am done with it? Will all the things work (All libraries) as with say a normal MEGA board? (Or is some porting required? If so how?)
If this is the case how hard (in terms of programming) is it to write a bootloader?

Hoping someone can answer these questions..
Thanking you guys in advance smiley
15  Using Arduino / Programming Questions / Re: Reading and writing to a single digital pin on: February 19, 2013, 03:56:51 am
Back... smiley

Yes, good point.  He should avoid  reading the one that has already been latched on-- and only read the other ones.  That is the problem with his current code.

Believe it or not I had tried this with flags but I was getting the same results so I quit trying(it was one late night) rather than thinking it could be a coding error. I think I coded it badly that day because my algorithm was exactly same as @johncc

Anyways I got it working with johncc code. smiley-grin Thank you so very much. smiley
So its actually possible to do it.

So for completion if someone ever faces this same problem. I have attached the code I used for 10 Ledpairs and and the schematic of one.
All thanks to johncc and PeterH smiley

const int nButtons=10;  // Number of buttons
int ledButtons[]= {
  2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };  // Enter all the LED/Button pair pins on Arduino
int currentOn = -1;

void turnLedOn( int onPin)
  // Turn the particular LED pin on,
  digitalWrite(onPin, LOW);
  pinMode(onPin, OUTPUT);

  // if there is an other pin on, turn it off
  if (currentOn > -1)
    pinMode( currentOn, INPUT_PULLUP);  // Enable pullup and turn off other LEDs

void setup()
  for(int i=0; i<nButtons; i++)
    pinMode(ledButtons[i],INPUT_PULLUP);  // Enabling internal pullups

void loop()
  for (int i=0; i< nButtons; i++)
    // read all but the currenly-on button
    if (ledButtons[i] != currentOn && digitalRead( ledButtons[i])== LOW)  // active LOW
      currentOn = ledButtons[i];

Pages: [1] 2 3 ... 16