Antplus-arduino library on Seeeduino Xiao ble sense

Hi all

I am trying to make an antplus sensor to send data to my garmin edge.
For this I was going to use the Seeed Xiao BLE sense board together with the antplu-arduino library: GitHub - cujomalainey/antplus-arduino: An Implementation of the ANT+ Network on top of ant-arduino

I installed the Seeed Xiao and the antplus library on the arduino IDE as described in following link: Getting Started with Seeed Studio XIAO nRF52840 (Sense) - Seeed Wiki
Now I can upload example projects from seeeduino to the board and I can compile examples from the antplus library on other boards.

Whenever I try to compile an example from the antplus library on the seeeduino board, I get following errors:

When I look in the header files of the seeeduino board, I noticed indeed that the Serial was defined as UART1:
image
It seems that the antplus library can not handle this, and does not recognize UART1 as a type?

Thanks in advance for any help!

Can the Garmin take BLE data instead? I have never used the Arduino libraries but I have a lot of experience using ANT+ in group fitness applications. While ANT+ works great when you're on the receiving end, it's a pain in the ass when it comes to reliably transmitting data to a sensor.

If BLE is available, that will probably be much easier.

The error message is from:
libraries/ANT-Arduino/src/MainClasses/ANT_MbedSerialAnt.h

I looked in the antplus-arduino library you pointed to and it doesn't contain this file. ???

Thank you for your answer!
I think using BLE should be possible, but I would prefer to use ANT+.
I am trying to make a powermeter and ANT+ would allows to make a dual sided powermeter, while that is harder with BLE.
Also, the "antplus-arduino" library already contains a powermeter example, so (I think) they already took care of the transmitting message protocol of a powermeter.

Hi, thank you for your answer!
Indeed the error message comes from the file "libraries/ANT-Arduino/src/MainClasses/ANT_MbedSerialAnt.h", but indirectly, that files calls a function that uses "Serial1".
This file is contained in thee "ant-arduino" library: ant-arduino/src/MainClasses at master · cujomalainey/ant-arduino · GitHub
My apologies, I forgot to mention this library, it is installed together with the "antplus-arduino" library in the arduino ide.

Yes, PWR (Bike Power) is standard ANT+ profile.
Maybe I misunderstood. I thought you were trying to send directed ANT traffic to the Garmin specifically. If you're "just" broadcasting PWR messages, that is far easier.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.