Show Posts
Pages: [1]
1  Development / Suggestions for the Arduino Project / Re: Bug in SoftwareSerial and inverse logic on: April 12, 2013, 03:22:22 am
I think I managed to do it...

https://github.com/arduino/Arduino/pull/1362
2  Development / Suggestions for the Arduino Project / Re: Bug in SoftwareSerial and inverse logic on: April 12, 2013, 02:08:50 am
Reported bug as https://github.com/arduino/Arduino/issues/1361
3  Development / Suggestions for the Arduino Project / Re: Bug in SoftwareSerial and inverse logic on: April 10, 2013, 11:40:05 pm
Yes, I have two of these http://seetron.com/glo416.html, they use inverse logic.

When using one of them I had no trouble, but when using two of them together, I started getting weird data on the second screen I was using. So after a time of debugging and testing I found out that if the time from the instantiation of the SoftwareSerial and the first write was to long, the data was wrong on the display. The error was that the setTX is actually starting a start bit when using inverse logic, but not the rest of the trasmission.

When using two, both of them was instantiated at the same place, but before the first write to the second screen was done, the first screen was set up, and that took a little time.

So by doing the change i suggested, the setTX does not start a start bit when the SoftwareSerial is initilized.
4  Development / Suggestions for the Arduino Project / Bug in SoftwareSerial and inverse logic on: April 10, 2013, 02:57:41 pm
When using the SoftwareSerial and inverse logic, there is a bug in the setTX method, the method does not take into account the inverse logic flag when setting default output on the tx pin.

The second line in setTX should be
Code:
digitalWrite(tx, _inverse_logic ? LOW : HIGH);
5  Forum 2005-2010 (read only) / Bugs & Suggestions / Wrong link to code on one tutorial on: July 27, 2010, 01:27:25 am
On the tutorial for the ADXL3xx the link to the code is wrong, it should be arduino.googlecode.com/svn/trunk/build/shared/examples/6.Sensors/ADXL3xx/ADXL3xx.pde

Ref.
arduino.cc/en/Tutorial/ADXL3xx
6  Forum 2005-2010 (read only) / Syntax & Programs / Re: Precise reading of RC receiver signals on: August 26, 2010, 12:54:40 am
You can use TT-RecEnc to encode your for signals into a PPM signal. Connecting it to one of the external interrupts on the Arduino.

I do have some code for reading a PPM signal from the TT-RecEnc, if you are interested.

TT-RecEnc
http://tt-rc.ath.cx/SHOP/ITEM-10
7  Forum 2005-2010 (read only) / Syntax & Programs / Re: Looking for a complete ref for "Arduino Lang on: August 24, 2010, 01:17:59 am
I'm not aware of any complete list of examples, but the Arduino language is just C/C++ with a set of libraries simplifying the using of the Arduino hardware. So you should be able to find many examples for C on the Internet using a suitable search engine.

For just a list over the functions you can use, in addition to the one you find in the Arduino language reference, you can look at avr, it's the C/C++ compiler used in Arduino
You can find the complete library reference for avr here; http://www.nongnu.org/avr-libc/user-manual/modules.html
8  Forum 2005-2010 (read only) / Interfacing / Re: Arduino interface RC receiver ar6110 on: August 27, 2010, 12:50:37 am
Quote
Do you know if there is any way to do it without that extra board?  I have seen it done but I just don't know what the code is.

There are information on the internet that explains how to hack into the receiver and find the PPM signal internal.

But if you want, you can just connect all channels from the receiver into single inputs, and use input change trigger. I have never done it, but if my memory serves me well, the AeroQuad uses this approach, look at it's code. http://code.google.com/p/aeroquad/downloads/list
9  Forum 2005-2010 (read only) / Interfacing / Re: Arduino interface RC receiver ar6110 on: August 26, 2010, 01:03:21 am
I'm working on something similar, and I found out that the easiest way to get input from an RC receiver is to use something called TT-RecEnc (http://tt-rc.ath.cx/SHOP/ITEM-10), is a small board capable of reading up to eight inputs from an RC receiver, and outputs an PPM signal, that is an signal with all the eight servo signals in a series, this signal can be connected to the one of the external interrupts on Arduino, and easily decoded.

I have some simple code for decoding if you are interested.
Pages: [1]