Hello,
I managed to program an ATTiny84 via Arduino ISP.
I would like to use serial monitoring from the ATTiny via Arduino to the serial monitor in the Arduino IDE.
I tried several tutorials I found, but was not successful.
A promising approach is the "knock bang" protocol (it should even work with the 8 MHz internal speed of the ATTiny).
It is not clear to me:
which pin is used connecting ATTiny84 and Arduino
what is the correct baud rate (9200?) from ATTiny to Arduino (communication Arduino with the PC is 19200, that works: I see "monitoring enabled" when I send the exclamation mark !)
where can I get the client library for the ATTiny84 and how should that be integrated in the Arduino IDE? (something for #including "TinyDebugKnockBang.h").
Probably the found downloads are made for older versions of the Arduino IDE?
I installed the ATTiny84 in the Arduino IDE via "board manager" and ATTinyCore from Spence Conde.
Would that work in combinatin with the "knock bank" library? or is that part of my problem?
Specificially, it has a built in software serial that works pretty well - TX is AIN0, RX is AIN1. Have you tried just using that? usually on the ATTiny84, I've found that it works with the factory calibration. IMO, it's probably easier to tweak OSCCAL and use the software serial, vs farting around with knockbang, which needs another Arduino to translate it into serial....
what is the correct baud rate (9200?) from ATTiny to Arduino
The baud rate parameter is irrelevant and ignored.
where can I get the client library for the ATTiny84
and how should that be integrated in the Arduino IDE? (something for #including "TinyDebugKnockBang.h").
Don't know.
Probably the found downloads are made for older versions of the Arduino IDE?
Yup.
I installed the ATTiny84 in the Arduino IDE via "board manager" and ATTinyCore from Spence Conde.
Would that work in combinatin with the "knock bank" library?
My core should work with knockbang. There was a thread a while back where someone had problems with making it work, but I fixed that, and they seemed to be satisfied with it.