I'm pretty new to this so bear with me. So I have an Arduino Uno and started developing a sketch. I'm noticing I may need more GPIO ports and possibly an Ethernet port.
I have 2 options - 1: get a port expander chip sold on Adafruit, and an Ethernet Shield.
2: get an Arduino Mega
So the question is, can I upload the same sketch used on the Uno and continue on with the Mega? I haven't seen much mention of the Mega so I'm not sure if it is a different animal altogether or a part of the same family.
Almost the same.
You select your new board in the Arduino IDE, let it compile, upload it, and it might just run.
There are a few things.
The pins for the I2C bus are in a different location, and you can no longer use 3.3V I2C devices on that I2C bus.
The internal reference voltage is a little different, less pins for state-change-interrupt, other pins for pwm and interrupt and SPI, and a few more small things.
But in most cases, it's easy to transfer from Arduino Uno to Arduino Mega 2560.
What kind of pins are you using at the moment, and what for ?
Peter_n:
Almost the same.
You select your new board in the Arduino IDE, let it compile, upload it, and it might just run.
There are a few things.
The pins for the I2C bus are in a different location, and you can no longer use 3.3V I2C devices on that I2C bus.
The internal reference voltage is a little different, less pins for state-change-interrupt, other pins for pwm and interrupt and SPI, and a few more small things.
But in most cases, it's easy to transfer from Arduino Uno to Arduino Mega 2560.
What kind of pins are you using at the moment, and what for ?
Thanks Peter, primarily I will be utilizing just the digital pins to set relays on and off. The other things you mentioned I'm not too familiar with. I originally started with a Raspberry Pi but found it tedious to use it's digital GPIO's to function properly, so here I am.