Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino R4 Minima not supported #42

Open
boc811 opened this issue Oct 27, 2023 · 5 comments
Open

Arduino R4 Minima not supported #42

boc811 opened this issue Oct 27, 2023 · 5 comments

Comments

@boc811
Copy link

boc811 commented Oct 27, 2023

Hi, unfortunately I can't get my code running with Arduino R4 Minima Board.
I get the following errors message:

../src/IBusBM.h:43:14: error: reference to 'HardwareSerial' is ambiguous
void begin(HardwareSerial &serial, int8_t timerid=0, int8_t rxPin=-1, int8_t txPin=-1);

@megacct
Copy link

megacct commented Oct 31, 2023

Hi, you could try changing line 32 of IBusBM.h to add your board:

#if defined(ARDUINO_ARCH_MBED) || defined(ARDUINO_UNOR4_MINIMA)

n.b. timer won't work so you'll need to set IBUSBM_NOTIMER and call the loop yourself

@boc811
Copy link
Author

boc811 commented Nov 1, 2023

Hello Megactt, thanks so much. Adding || defined(ARDUINO_UNOR4_MINIM to the ibusBM.h worked out so far. The compilation took quite a while, but at the end the compiler just reported some warnings and no more errors. Now I am going to exchange the arduino Uno with the Arduino Uno R4 mimima in my hardware project. I'm quite excited how the outcome will be. The exchange of the boards will probably take a week. I'll keep you updated and I am going to post a video on youtube of my project called "Circle Heli" just for fun and share it with you. Cheers, Björn

@boc811
Copy link
Author

boc811 commented Nov 3, 2023

Hello Megactt,
unfortunately your proposal didn't work out with the connected HW (FS-IA6b Receiver ) at the end.
The enclosed test code works fine with an Arduino Uno, but with an Arduino R4 minima it shows only 0's for Channel 0 instead of 1500. However thanks for your support so far.
Regards, Björn

Ibus_test.txt

@megacct
Copy link

megacct commented Nov 4, 2023

Timer should be disabled in the begin call: IBus.begin(Serial, IBUSBM_NOTIMER);

Not sure if this will make a difference as you are calling the loop yourself already

@PaulNTU
Copy link

PaulNTU commented Apr 27, 2024

I have just created a branch that should work with your Arduino R4 and put a pull request in for the main library if that helps. This uses the FspTimer to run the loop at 1000hz

You can find the repository with the code here
https://github.com/PaulNTU/IBusBM/tree/Renesas-Support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants