Simple 3D-printed NRF remote - Arduino controlled

@rey8801 thats probably because Ackmaniacs firmware is a few commits behind Vedders.

@Flo Yeah actually I think the library I have made works with both v4.x and v6 hardware as long as you install the newest firmware (3.40).

2 Likes

yes, I thought so. I just wanted to let you know. Also for others that might be interested.

Good find… A friend was trying to figure out why he wasn’t getting telemetry. Looks like this might be the reason.

1 Like

Yeah I was scratching my head a lot yesterday, and I figured some of you guys probably have had the same problems :slight_smile: I do not know which firmware version broke the telemetry, but it should be easy enough to roll back the updates and find a firmware that works. I will have a new update for the receiver and the new library released tonight.

3 Likes

That sounds great that you will share the library with us tonight :slight_smile: I’m a little curious if you managed to solve that problem:

Will we have to wait for another firmware update for Vesc6 or did you get around that problem?

The longer packet lenght is not an issue as long as you read the serial buffer fast enough. The old library used a delay(10) after sending the UART package to the VESC. This way some data will be lost if the buffer isn’t big enough. I have made it different, such that it listens for and reads the serial data as soon as it arrives - therefor not losing any data.

I have not tested it with my VESC 6 yet, however the newest firmware for VESC 6 is also FW3.40 right? So it should work.

1 Like

Yes FW 3.40 is the latest for VESC 6. Wonderful :slight_smile: can’t wait to get my bike running again :heart_eyes:

Could a “bad” or damaged Arduino cause brownouts? I do not have a reliable connection. It is constantly connecting and then disconnecting. When I fiddle with the Tx, like moving it and such it will connect…so I thought it was a bad connection. Yet all connections are soldered fine and checked.

@erod998 Sounds like a power or noise related issue. Which Arduino do you use?

Arduino Nano. Currently Testing off USB. Previously had working but now it is not.

If I move the NRF24l01 it will connect, but then crash and freeze.

I have released the new VescUart library. It is basicly the same as RollingGecko’s however cleaned up a bit and updated for the new FW3.40. The library can be found here: https://github.com/SolidGeek/VescUart

I have also updated the receiver software on the development branch to make use of the new library. It works great on a VESC 4.12 however I have not yet tested it on my VESC 6 as it powers my main board at the moment.

Further testing is needed if anyone is up for the task :slight_smile: @Flo @ervinelin

6 Likes

The one I recommend with a dedicated 3.3V voltage regulator? And you are sure none of your nrf24 wires aren’t shorted?

image

I checked them all multiple times, and tried many different NRF’s.

You need at least a 47uF capacitor on your 3.3V rail, on both receiver and remote. Otherwise the power is not sufficient.

Strange, it worked before. I will solder it on now. Also if any one wants a modified STLs for these cheaper, and probably lower quality lol NRF’s, let me know. I don’t have all the stuff in the Rx or have it cleaned but whatever.

Is this backward compatible?

Thanks for sharing ! :slight_smile:

Indeed, I tried again, FW3.38 can be used, FW3.40 can not be used. I used the previous library.

What library are you using with ?

I am getting 5v when powered from the remote not USB to the 3v3 pins…what could cause this? A blown part in the arduino? I think it is. When powered off USB, the Tx gets .68 volts. When powered from the Tx remote/boost converter, it has 4.10 volts. I am gonna replace the arduino.

EDIT: I powered the NRF off a NodeMCU…which has a 3v3 output. Boom. Instant stable connection. Something is wrong mechanically or electronically with the arduino, by differing different points of pressure on the board can change the voltage output…whatever. Sorry for blowing up this thread lol. It’s fixed. Nice job to solidgeek for correctly diagnosing the power issue, thanks.

2 Likes