arduino-libs-manchester
arduino-libs-manchester copied to clipboard
Cant get to work on 32U4
Hello all, kind of urgent issue.
Great library, and I'm using lots on Attiny85's and 328 Uno, but for the life of me I can't get it to receive on the 32U4.
Am I missing something?
Cheers
Ben
I can confirm what Ben found. In fact if it wasn't for his comment I would have pulled my hair out even more. I spent 2 days on this and could not get my UNO transmitter to work with my Leonardo (Mega32u4) as the receiver.
Everything compiles fine and uploads fine, but the Mega32u4 just sits there and receives nothing.
Leo as RX with Uno as TX = doesn't work Leo as TX with Uno as RX = works perfectly
I'm using Arduino IDE 1.0.5-r2
Any ideas on what's wrong?
What have you tried to get this working? What clock speed do the Leo and Uno have?
On 31 Jul 2014, at 01:52, M5864 [email protected] wrote:
I can confirm what Ben found. In fact if it wasn't for his comment I would have pulled my hair out even more. I spent 2 days on this and could not get my UNO transmitter to work with my Leonardo (Mega32u4) as the receiver.
Everything compiles fine and uploads fine, but the Mega32u4 just sits there and receives nothing.
Leo as RX with Uno as TX = doesn't work Leo as TX with Uno as RX = works perfectly
I'm using Arduino IDE 1.0.5-r2
Any ideas on what's wrong?
— Reply to this email directly or view it on GitHub.
Great to see someone else found the same issue, and it wasn’t me going mad.
I never did get it working in the end and moved over to a Uno only platform.
On 31 Jul 2014, at 08:05, mchr3k [email protected] wrote:
What have you tried to get this working? What clock speed do the Leo and Uno have?
On 31 Jul 2014, at 01:52, M5864 [email protected] wrote:
I can confirm what Ben found. In fact if it wasn't for his comment I would have pulled my hair out even more. I spent 2 days on this and could not get my UNO transmitter to work with my Leonardo (Mega32u4) as the receiver.
Everything compiles fine and uploads fine, but the Mega32u4 just sits there and receives nothing.
Leo as RX with Uno as TX = doesn't work Leo as TX with Uno as RX = works perfectly
I'm using Arduino IDE 1.0.5-r2
Any ideas on what's wrong?
— Reply to this email directly or view it on GitHub. — Reply to this email directly or view it on GitHub.
Hello together,
I have the same problem on an Arduino Yún.
No solution or some ideas in the meantime?
I have a quick fix by adding two lines to Manchester.cpp. It is not well tested. Make TCCR3A and TCCR3B zero before doing something else with Timer3.
` /* Timer 3 is used with a ATMega32U4. http://www.atmel.com/Images/doc7766.pdf page 133 How to find the correct value: (OCRxA +1) = F_CPU / prescaler / 1953.125 OCR3A is 16 bit register */
TCCR3A = 0; // 2016, added, make it work for Leonardo
TCCR3B = 0; // 2016, added, make it work for Leonardo
TCCR3B = _BV(WGM32) | _BV(CS31); // 1/8 prescaler
#if F_CPU == 1000000UL
...
`
I confirm Koepel fix on Arduino Micro.