You are here

Help with Built-in NRF24 and custom remote

16 posts / 0 new
Last post
solidgeek
solidgeek's picture
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:30
Posts: 7
Help with Built-in NRF24 and custom remote

Hi folks :-)

So I have been working on a custom remote for the past week, planning to use the built-in NRF24-module on the VESC 6.4. However I have no idea, of where to start. I have tried using the "Input Setup Wizard" in the VESC-tool, however it can't seem to pair with my custom NRF-remote. Does anyone know how to set a nrf24l01 in this so-called "pairing mode"? I haven't been able to find any examples online, not even an Arduino-example.

If I am able to connect the two NRF-modules, how does the communication work? Do I send commands to the VESC and how can I get real-time data from the VESC across the same connection? Can't seem to find any information about this topic.

I hope some of you could shed some light upon this mystery :-D

- Emil

frank
Offline
Last seen: 1 week 1 day ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847
Boesila
Offline
Last seen: 3 years 9 months ago
VESC Original
Joined: 2017-05-24 12:24
Posts: 18

Hi everyone,
Sorry for hitchhiking your thread, but I have a similar question. I'm struggling with the nyko karma nunchuk due to interrupted connection... Sometimes I'm not able to break or accelerate. That's why I want to build my own Nrf remote, too. But I cannot find a detailed description how to build it, which parts I need or where to buy a pcb with all necessary components already soldered.
Could somebody give me a suggestion?

Best, boesila

hexakopter
Offline
Last seen: 1 year 9 months ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

I think frank posted a wrong link and he means github.
You can find everything you need to now about building the hardware here: https://github.com/vedderb/nunchuk_rf_hw and the regarding firmware here: https://github.com/vedderb/nunchuk_mod
I haven't tested if the current available firmware of the nunchuk is working with the newest FW 3.25 of the VESC.

frank
Offline
Last seen: 1 week 1 day ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847
See, this is why the VESC-Project needs this website and build up a documentation. Maybe we can make some PCBs. I'll check that. Frank
Sanjoy
Offline
Last seen: 6 years 11 months ago
VESC Original
Joined: 2017-05-24 12:45
Posts: 20

F/W is 3.26 on the vesc at the moment. i think new update available should be posted on here instead of only finding out when you connect to vesc tool. is that possible please Benjamin.

frank
Offline
Last seen: 1 week 1 day ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847
Sorry, copied the wrong link in and didn't realize it. Thx Hexakopter! Frank
solidgeek
solidgeek's picture
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:30
Posts: 7

Hi Frank, I want to make a simple remote with a NRF-module and a Arduino for calculating etc. How can I use the built-in NRF-module for this? It would be easy to make a reciever board myself to connect PWM or UART input on the VESC 6, however I think its a shame not to utilize the built-in NRF :-)... The nunchuch mod Benjamin has been doing is awesome, however it is neither easy to produce yourself, nor copy onto your own project! Any help would be appreciated
- Emil

frank
Offline
Last seen: 1 week 1 day ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847
So you habe a project on the boil... If I had the time to design a remote it would have happened already. I think the fastest way forward is to have some PCBs made, exactly as the design shown. Frank
Pimousse
Offline
Last seen: 11 months 1 week ago
VESC Original
Joined: 2017-05-24 12:15
Posts: 101

As Benjamin told us, we can consider Nunchuck mod firmware on Github completely compatible with VESC6 (3.26 currently), right ?

I think we are though in lack of documentation about communication with VESC (UART, can-bus or nRF now).
IMHO, it's a really important point because we are beta testing and we need tools to datalog/monitor the behaviour of the VESC.
Otherwise, if we encounter any issues, we can't give enough feedback to diagnose.
Aren't agree with that ?

hexakopter
Offline
Last seen: 1 year 9 months ago
VESC Original
Joined: 2017-05-24 12:13
Posts: 94

Maybe you should have a look here for something arduino related: https://github.com/RollingGecko

EDIT.: Looks like there is a bug when reply to messages. I replied to #8 instead of #10.

benjamin
Offline
Last seen: 1 week 6 days ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

The NRF firmware on my github is working, that's what I'm using myself.

Regarding the communication protocol, here is one file with almost the same same version:
https://github.com/vedderb/rise_sdvp/blob/master/Embedded/RC_Controller/...
The only difference is that the ADC app has two more options. That file and this post
http://vedder.se/2015/10/communicating-with-the-vesc-using-uart/
should be enough to get the communication running. I will collect this in the documentation pages soon.

Pimousse
Offline
Last seen: 11 months 1 week ago
VESC Original
Joined: 2017-05-24 12:15
Posts: 101

I will take your Nunchuk mod FW as reference.
Thank you very much for clarifying this and for the future documentation.

solidgeek
solidgeek's picture
Offline
Last seen: 1 year 1 month ago
VESC Original
Joined: 2017-05-24 12:30
Posts: 7

Hi Benjamin, thanks for the examples. You don't explain how to establish the connection between the built-in NRF-module and another NRF? My VESC 6 hasn't been able to connect to any NRF-module yet, how does one put a NRF24L01 module in this "pairing mode" you mention in the VESC-tool? :-) This is the first time I play around with a VESC at all, so forgive me if I have overlooked something - I am trying to learn as much as possible!

IRONSQUIRREL89
Offline
Last seen: 1 year 10 months ago
VESC Original
Joined: 2017-08-02 00:44
Posts: 1

Hi Benjamin, are you able to recommend settings for using your nrf nunchuck mod with vesc 6. tx power?, speed?, crc?, etc. 

i am having a problem that did not happen when using the nrf nunchuk with my vesc 4.12 and i want to make sure i have the correct settings.

Thanks  

m.juan
Offline
Last seen: 6 years 5 months ago
Joined: 2018-06-20 10:34
Posts: 3

hi!

Did you manage to connect to the built-in nrf in the vesc with an arduino+nrf ?

I want to do the same thing but no idea how to configure nrf on arduino side to connect to the vesc.

I want to send data the vesc over nrf. but right now receiving alive packet from vesc on the arduino would be great enough....