GSM shiled and Ethernet shild compatibility - arduino

I have an Arduino Uno Rev. 3 and have bought a GSM Shield
and an Ethernet Shield.
If I use the Arduino and GSM shield or the ethernet shield all works well. However, I want to use the Arduino with both the GSM shield and the ethernet shield.
I have searched the Internet and have read that I have a conflict on pin 4. The GSM shield uses pin 4 for the SD Card and the ethernet shield uses pin 4 for TX.
Can i fix this error? Is it possible to change this pin.

In a shield, hardware is managed in such a way that it will always connect to the particular pins. you can understood this in this way that if you place your Ethernet shield upon the Arduino then Ethernet's Tx pin will always connect to Arduino's pin 4.
So there is only one method to overcome this problem, don't place Ethernet shield directly to Ardunio. connect this with the jumpers externally and change Tx pin 4 to another pin in the programming which is free.
I don't know which pins are free in your code but lets assume Arduino's pin 6 is free so declare this as Ethernet TX pin (you will find out this in program) and connect this to Ethernet's pin 4.
You can use only one shield directly, now choose which one you want to use directly and change the pin configuration for the shield which is used externally.

Related

connect arduino to arduino mega adk by USB

I have an arduino mega ADK, with usb port, and an arduino uno.
- On the arduino uno, I put a xBee shield with the wifly module for connect to the internet.
- On the arduino mega ADK, I put the TinkerKit! shield.
I need to use both : xBee shield and TinkerKit!. and the single way i found, is to connect the arduino uno to the arduino mega ADK by USB wire (the wire is the one I use to connect an arduino to my computer).
Do you think it could work ? If yes, How can I get what is writting on the outpu of the arduino uno ? If no, is there an other way to do what I need ?
yes, it can be done, but is is way more easier to use directly the Hardware/Software Serial. Even if you get iw work, it will be a serial simulation over usb..
So using USB is just a layer of complexity that can break, and nothing more.

Conflict between arduino shield with 10 pin

Just beginning to to understand with arduino. I plan to put together a small device that accesses the internet at the site, and then, depending on the information that plays a mp3 file. From the annotation of to the Enternet Shield mp3 Shield and read that they both involve the 10-pin, and thus come into conflict. What to do in such a case, or is there an opportunity for playing time off Ethernet Shield and vice versa?
I dont know about your mp3 shield but on the ethernet shield pin 10 is the Slave Select pin.
The MISO, MOSI, and CLK pins can be shered with other shields but not the SS pin.
The only way to solve this would be to cut the connector from the mp3 shiled and connect it to antother pin. Then you will also need to recompile the libs for your mp3 shield to reflect the change of pin.
For further information see Arduino SPI, Arduino Ethernet

Project using Arduino microcontroller board

I want to start a project using arduino microcontroller board. In this project I will use a Mini Thermal Receipt Printer, barcode scanner and the arduino ethernet shield to transfer data to my pc and from my pc. my question is, what arduino board should I buy for such project? is the arduino uno is enough?
The choice of a right Arduino depends on the sort of peripherals you need for example if your barcode reader is SPI enabled and you can't bit-bang SPI then this counts for Hardware SPI usage and as such will take the SPI pins on the UNO which has support for only 1 SPI hardware connection but if you want more SPI connections go for a MEGA ,similarly UART, two wire etc are communication protocols that may be needed by you based on the chipssets you use in your project, also GPIO's are there which just turn on and off.
I will suggest starting off with an Arduino UNO which DIP ATmega328P and get a spare Bootloader acquipped ATmega328P chip standalone in case as a newbie you magic-smoke the chip on the board.

Can't get serial output while using Ethernet

I started to experimenting with the Arduino Ethernet shield and got it working with not much effort. However, when I try to debug through the hardware serial port of the board, I get nothing, and though the program still runs, and I know it should be giving me something, it doesn't. Truth be told, I haven't got a clue of what's going on. How do I fix this problem?
P.S. I am using one of the example sketches included in the Arduino IDE.
The Ethernet shield does not use the RX and TX pins (0,1) and I have personally used Serial communication with the shield before.
So it definitely had to do with your code. Can you post your code?
Also have you connected anything to digital pins 0 and 1?
The Arduino Ethernet board is not equivalent to Arduino Uno + Etherent shield. In the Arduino Ethernet board the USB-to-serial chip is not present.
From the official Arduino Ethernet board page
The Ethernet differs from other boards in that it does not have an
onboard USB-to-serial driver chip, but has a Wiznet Ethernet
interface.
So I don't think you can print any values in the serial monitor.
Update:
You need an external FTDI adapter like http://arduino.cc/en/Main/USBSerial get the serial communication between Arduino and your computer to work.

Arduino Mega 2560 connection with a CAN bus shield (SparkFun)

I am trying to connect an Arduino Mega2560 with the CAN bus shield from SparkFun and communicate. How do I go about it?
You connect the CAN device to your shield (connecting the CAN-Low and CAN-High signals correctly) and put at least one resistor of 120 ohm between the CAN low and CAN high signals (they are sometimes called terminating resistors, but they primarily act as pull-together resistors (similar to pull-up resistors for open-collector/open-drain)).

Resources