Show Posts
Pages: 1 [2] 3 4 ... 15
16  Using Arduino / Programming Questions / Re: The Software serial multple serial test example does not compile on: July 01, 2014, 06:37:36 pm
Hi

Yes, I have v.105-R2 too
17  Using Arduino / Programming Questions / Re: The Software serial multple serial test example does not compile on: July 01, 2014, 05:20:44 pm
I got hardware serial port working. But if use them I must control the modem myself without GSM libraries.
18  Using Arduino / Programming Questions / Re: The Software serial multple serial test example does not compile on: July 01, 2014, 04:07:14 pm
This is a bit confusing.  I thought that the software serial library uses interrupts with RX. And so is new or at least good to use.
This is from GSM modem's reference page.
"It relies on the Software Serial library for communication between the moden and Arduino. "
19  Using Arduino / Programming Questions / Re: The Software serial multple serial test example does not compile on: July 01, 2014, 03:39:42 pm
I see. I thought that the Software serial is what is used with GSM library.
20  Using Arduino / Programming Questions / The Software serial multple serial test example does not compile on: July 01, 2014, 01:26:02 pm
I tried compile the "Software serial multple serial test " example code for Mega 2560. But got an error:
c:/program files/arduino-1.0.5-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function `__vector_default':
(.vectors+0xdc): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_55' defined in .text.__vector_55 section in core.a(HardwareSerial.cpp.o)

The code is unmodified and from examples in IDE. I list it here all the same.
/*
  Software serial multple serial test
 
 Receives from the hardware serial, sends to software serial.
 Receives from software serial, sends to hardware serial.
 
 The circuit:
 * RX is digital pin 10 (connect to TX of other device)
 * TX is digital pin 11 (connect to RX of other device)
 
 Note:
 Not all pins on the Mega and Mega 2560 support change interrupts,
 so only the following can be used for RX:
 10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
 
 Not all pins on the Leonardo support change interrupts,
 so only the following can be used for RX:
 8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
 
 created back in the mists of time
 modified 25 May 2012
 by Tom Igoe
 based on Mikal Hart's example
 
 This example code is in the public domain.
 
 */
#include <SoftwareSerial.h>

SoftwareSerial mySerial(10, 11); // RX, TX

void setup() 
{
  // Open serial communications and wait for port to open:
  Serial.begin(57600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }


  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(4800);
  mySerial.println("Hello, world?");
}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}

21  Products / Arduino GSM Shield / What are the RX/TX pins the GSM library uses in the Mega2560 on: May 30, 2014, 04:27:17 pm
This is a silly question but I have problems with a GSM shield. It's RX and TX are clearly marked but software defines those in the Mega. I will cross TX and RX of course. That is, RX goes to the TX and vice versa. Arduino's documentation is meant to be easy but it confuses me when there is no mention of TX and RX.

So, when I use GSM library, what is RX on the Mega2560 and what is TX.
22  Products / Arduino Due / Re: Long battery for arduino due on: May 25, 2014, 04:24:50 pm
If you looking for an IC, which lowers 12V to 3.3V, these can help. 919-R-783.3-1.0 This is a Mouser part number but there many others and from other vendors too.
23  Using Arduino / Networking, Protocols, and Devices / Re: I2C no go on Mega 2560 on: May 06, 2014, 12:37:49 pm
I don't know what you want, but I have a I2C bus working. Both ends are using 5V. Only difficulty was when I had to break 12bit data to 8 bit pieces. But that is C language.
24  Products / Arduino GSM Shield / Confusing info about serial pin numbers on the GSM shield page on: February 28, 2014, 05:07:24 pm
I am reading the GSM shield page http://arduino.cc/en/Guide/ArduinoGSMShield. There is a photo about the board taken directly above. The text on photo says: GSM TX (pin3) but it easy to see on the photo that it is really RX. The other pin is wrong also. The whole Arduino site seems confusing these.

I am trying to start Itead 3G  modem to communicate with the MEGA, but it is difficult to know what are the RX and TX pins really. They are crossed on the Itead Board. I can say now that Itead's  documentation is not very helpful either. Because of all this I have to trace the connections with a multimeter. I would rather do something else at Friday night.
25  Products / Arduino Due / Re: Parallel library for Due External Memory Bus/Static Memory Controller on: February 18, 2014, 04:58:11 pm
If address pins are missing you will have holes in the space that would cause duplications on top of other data.

So for example if A4 was missing you could write 16 contiguous bytes ok, but the 17th byte will go into location 0, thus overwriting the first byte. This could be manageable but a right PITA.

Likewise with data, the top bits may not matter if you stick to values below the first missing bit, but if you are missing any low-order bits you will be in trouble. This is almost not possible to use unless you "adjust" every variable you save and "unadjust" every variable you retrieve.

______
Rob

I don't think missing address pins cause other problems than a smaller device. For instance a 65000 byte device with 16 address bits. If leave one address pin/bit out, you'll have a device with 32000 usable bytes. If it is a some kind of rom and you connect it to a processor with all address pins, then you'll get gaps (or a great mess, if don't take care). I am not going to draw any truth tables so I leave this here.
26  Using Arduino / Project Guidance / Re: Cannot get 433MHz TX/RX pair to work ! on: February 18, 2014, 04:44:46 pm
Nonsense. I have a Remote running from 3.7V Lipo and a Main box with receiver running form 5V.
Having a higher voltage battery on the Tx would just provide greater transmit range.

Yes of course if you are using that transmitter. But direct pin to pin serial requires same logic levels.
27  Using Arduino / Project Guidance / Re: Cannot get 433MHz TX/RX pair to work ! on: February 18, 2014, 01:25:40 pm
You have been given some very good advise, but what about supply voltages for Unos and Nanos. They must be the same.
28  Products / Arduino Due / Re: Parallel library for Due External Memory Bus/Static Memory Controller on: February 14, 2014, 09:37:32 am
About unusable pins. You can still use external memory if some address or datapins are not available.  If address pin is missing, you just can't use the whole memory space. With missing data pins it is similar.

So we'll have like a 256k 14bit ram or something available, instead of a full 1M 16bit device. But ofcourse cpu with a proper external bus would be nice.
29  Products / Arduino Due / Re: Fast Software Serial (1-1M baud) on: February 03, 2014, 02:31:25 pm
Interesting. Thanks
30  Products / Arduino Due / Re: (Solved) a newly downloaded Arduino 1.5.5 BETA for DUE does not start on: January 31, 2014, 07:20:03 pm
I think I fixed it. At least it works now. I googled the error message and found this and others.
http://forum.arduino.cc/index.php?topic=167553.0
So I deleted all folders called Arduino I could find. I copied my programs elsewhere first. Then I ran CCleaner and deleted all files from C:\Users\XXX\AppData\Local\Temp folder.

Something made it
Pages: 1 [2] 3 4 ... 15