Easier path to start with

56 views
Skip to first unread message

Paolo Cecchini

unread,
Jan 5, 2022, 6:45:01 AM1/5/22
to ant-api
Hi.

I have Ant+ successfully running on Raspberry Python for years now. I did that to interface with my C2 rower. I would be happy to try on microcontrollers now, better if within the Arduino IDE.

What is, if any, the easier path to approach? As an example, I own this


but it looks like mostly useless because of interfacing issues.

TyL for any hint. Cu. Paolo.

Curtis Malainey

unread,
Jan 5, 2022, 6:32:02 PM1/5/22
to Paolo Cecchini, ant-api
Hello Paolo,

The easiest approach in my opinion is to get a D52 module dev module from dynastream and hook it up to a 3.3V controller using UART. It comes preloaded with the correct radio stack which is where a lot of pain of getting it setup is if you pick another board. The wiki has the recommended wiring. Let me know if you have any other questions.

Curtis

--
You received this message because you are subscribed to the Google Groups "ant-api" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ant-api+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ant-api/08f5f78f-830d-43e8-8c14-fa806fdb96c3n%40googlegroups.com.

Paolo Cecchini

unread,
Jan 6, 2022, 9:16:59 AM1/6/22
to ant-api


Il giorno giovedì 6 gennaio
Hello Paolo,

The easiest approach in my opinion is to get a D52 module dev module from dynastream

I'm going to order the board, TYL.
 
and hook it up to a 3.3V controller using UART.

Esp32 hopefully.

Goal is to read the Ant+ stuff and send to a MQTT server  for further processing. The all-in-one approach with Rasp & Python works but is a little tricky and subject to no RT OS.

TY again. Paolo.



Paolo Cecchini

unread,
Jan 12, 2022, 11:03:41 AM1/12/22
to ant-api
Hi.

I received the D52 dev module yesterday.
Short version. I succeeded with both the example sketch Callbacks & HeartRateMonitor.

Long version.
Wiring to esp32:
        3v3 to J101.01
        ground to J101.02
        d17 to J101.03
        d16 to J101.04
        ground to J101.17, J101.18, J101.19, J101.20

So we've baud rate 4800 on esp32's Serial2.
And, of course, I supplied the required network key.

I'm planning to go further with the raw data approach to verify the FE-C interfacing.
Meanwhile, if I'm not wrong,  I noticed the FE-C profile(s) are not yet available on the Antplus library.

When and if I'll be confident about it, I suppose the best approach is to fork the project and open a pull request. So more later :)

Paolo.

Post Scriptum. When you write to connect to 3.3V rail to set the baud rate, I guess you mean digitalWrite, otherwise must be a kind of current limiting hardware on the D52 ... but maybe there is, and I missed it.

Paolo Cecchini

unread,
Jan 12, 2022, 12:32:08 PM1/12/22
to ant-api
Ok, the brute force approach is going to work ...

[quote]
18:25:19.531 -> Received Msg for Page Data: 16
18:25:19.531 -> Speed Km/h: 21.00
18:25:19.765 -> Received Msg for Page Data: 25
18:25:19.765 -> Cadence Rpm: 80 and Power watts: 283
[/quote]

Curtis Malainey

unread,
Jan 12, 2022, 6:04:36 PM1/12/22
to Paolo Cecchini, charlesanto...@gmail.com, ant-api
+Charles

Just an FYI Charles reached out to me recently to work on FE-C as well. I think he has a public fork but I don't know if he pushed anything. Maybe you two could benefit from each others work.

Curtis

Charles-antoine Fournel

unread,
Jan 13, 2022, 1:12:08 AM1/13/22
to Curtis Malainey, Paolo Cecchini, ant-api
Hi Curtis,


I almost finished mine !

I juste need to clean the code for a merge request

I'll provide a native driver example.

May be today or tomorrow


Charles-antoine FOURNEL

Paolo Cecchini

unread,
Jan 13, 2022, 10:27:50 AM1/13/22
to ant-api
Excellent. Ty. Paolo

Paolo Cecchini

unread,
Jan 13, 2022, 11:20:09 AM1/13/22
to ant-api
Btw, any rower, Concept 2 actually?
Hi. Paolo

Il giorno giovedì 13 gennaio 2022 alle 07:12:08 UTC+1 Charles-antoine Fournel ha scritto:

Curtis Malainey

unread,
Jan 13, 2022, 2:25:22 PM1/13/22
to Paolo Cecchini, charlesanto...@gmail.com, ant-api
Looks like rower is part of the pull request https://github.com/cujomalainey/antplus-arduino/pull/31/commits/4a3c4b3c43cf7743bae6f51dc08de6e02b0e588e

Will do a review once PR is updated, thanks Charles.

Curtis Malainey

unread,
Jan 29, 2022, 7:34:12 PM1/29/22
to Paolo Cecchini, ant-api
Hi Paolo,

I have finished merging the code from Charles, I recommend you rebase any changes you have on top. Thanks

Curtis

Paolo Cecchini

unread,
Jan 30, 2022, 6:54:51 AM1/30/22
to Curtis Malainey, ant-api
I will, Ty.
Meanwhile I'm having fun with that board and openocd :)


IMG_20220130_125158.jpg
Reply all
Reply to author
Forward
0 new messages