Open GoogleCodeExporter opened 8 years ago
Is the ATtiny84 running from the internal oscillator or external crystal?
Original comment by arduino....@gmail.com
on 5 Nov 2012 at 7:20
I've burned the 8MHz bootloader using the Arduino IDE and so it's running from
the internal oscillator at 8MHz.
Original comment by dancinturkey123@gmail.com
on 5 Nov 2012 at 8:02
From the factory, the oscillator is ±10%. Past ±4.5% serial communications
becomes unreliable; especially with "software serial".
I suggest ensuring the oscillator is tuned.
Original comment by arduino....@gmail.com
on 5 Nov 2012 at 8:11
But surely the transmission would be unreliable as well then? However, the
transmission is working perfectly at a baud rate of 57600. The reception is not
just unreliable it simply does not see anything on the Rx pin. Would it help if
I attached the code I am using?
Original comment by dancinturkey123@gmail.com
on 5 Nov 2012 at 8:16
> The reception is not just unreliable it simply does not see anything on the
Rx pin.
You've checked with an oscilloscope or logic analyzer?
Original comment by arduino....@gmail.com
on 5 Nov 2012 at 8:27
Sorry I didn't explain that very well. The signal that I am hoping to 'read'
using SoftwareSerial is being fed into the Rx pin (confirmed using an
oscilloscope) correctly. And is simply a stream of 24 bits. However, obviously
if I was just using an Arduino I could use the serial monitor in the IDE to
confirm the bit sequence that was being received is correct but since it is an
ATtiny I can't use the serial monitor. Therefore, I have to find a way of
confirming that the ATtiny is reading in the same bit sequence I am
transmitting from my Arduino Uno. In order to do this I take the incoming
bitstream on the Rx, write it to the SoftwareSerial Tx pin on the ATtiny and
connect this to the Uno's Rx pin and check on serial monitor. However there is
nothing transmitted from the ATtiny to the Uno and since I already know that
the transmit function is working perfectly on the ATtiny this means that it is
constantly reading a value of zero from the Rx pin even though the oscilloscope
clearly shows that there is an input of 24 high bits.
Can I just say thanks very much for your help so far, it's good to get the
opinion of someone else, think I'm getting tunnel vision from looking at the
same problem for the past 8 hours straight.
Original comment by dancinturkey123@gmail.com
on 5 Nov 2012 at 9:26
When I say that nothing is transmitted from the tiny to the uno I meant that it
is transmitting all zero bit vaues.
Original comment by dancinturkey123@gmail.com
on 5 Nov 2012 at 9:28
> but since it is an ATtiny I can't use the serial monitor
Sure you can. Tiny Debug Serial and TinyISP will easily get you what you need.
Original comment by arduino....@gmail.com
on 13 Nov 2012 at 8:00
I am facing the exact same issue, have you fix it yet?? I'm still researching
if I found something I get back here and post it.
Original comment by abraham...@gmail.com
on 24 Sep 2013 at 8:53
Buongiorno,
ho problemi con arduino uno r3 a settare l'ATtiny84a-PU
con il blink ho tentato più volte :
int led = 7;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
}
Original comment by pastore....@gmail.com
on 29 Jul 2014 at 7:51
Attachments:
Original issue reported on code.google.com by
dancinturkey123@gmail.com
on 5 Nov 2012 at 6:42