VESC Open Source - Android App Features?!?!

Lightweight / Folding / Portable EVs - seats optional
Hummina Shadeeba   1 MW

1 MW
Posts: 1757
Joined: Apr 25 2014 10:26pm

Re: VESC Open Source - Android App Features?!?!

Post by Hummina Shadeeba » Oct 14 2016 3:21pm

yea it just gives the total pack voltage in real time but would it be possible, and how hard, to get the info transferred from each cell to the vesc and then to the phone?

Pimousse   10 mW

10 mW
Posts: 23
Joined: Jun 28 2016 7:36am

Re: VESC Open Source - Android App Features?!?!

Post by Pimousse » Oct 14 2016 3:33pm

Well... no.
Or you have to rebuild the VESC to use as analog inputs in the STM as you have cells and then rewrite the firmware to measures and serialize though the voltages though the UART communication.
Lot of work and not sure it's worth it.

In addition, BMS manage charge and balancing with few mosfets, so the VESC should also drive those.

TheEBikeNinja   1 mW

1 mW
Posts: 12
Joined: Aug 23 2015 2:50pm

Re: VESC Open Source - Android App Features?!?!

Post by TheEBikeNinja » Oct 15 2016 7:24pm

So I've got a VESC from Enertion (the most recent one), with all the parameters set up and working. It runs FOC on a bike hub motor, and works brilliantly.

however, I've just bought a HM-10 BLE module to connect my phone, so I can monitor power consumption etc, and I can't get it to work.

I've connected the HM-10 to the VESC TX+RX (crossed over) and 5V+GND. The HM-10 lights up, and I can connect to it via my phone (Android - OnePlus One).

But when I go into VESC_CONNECT, and try to connect, it says 'Connected', and then occasionally flashes "no firmware read response".

The HM-10 is connected properly, and set to 115200 baud, as is the VESC, which is set to UART only mode.

Any suggestions?

Pimousse   10 mW

10 mW
Posts: 23
Joined: Jun 28 2016 7:36am

Re: VESC Open Source - Android App Features?!?!

Post by Pimousse » Oct 16 2016 8:15am

Did you select the right mode on the HM10 (slave if I remember) ?

TheEBikeNinja   1 mW

1 mW
Posts: 12
Joined: Aug 23 2015 2:50pm

Re: VESC Open Source - Android App Features?!?!

Post by TheEBikeNinja » Oct 17 2016 3:42am

Yeah, it was configured as slave. I played around with the AT+... settings, and eventually got it working. I set it to remote command mode, and made it discoverable and unsecured, and set the baud rate to 19200.

I can monitor data, and read some config settings, but I use buttons and a resistor network as throttle on my ebike (can't use twist throttle as drop bars).
Therefore I have to use the ADC for throttle control, but I cannot find ADC under Control Settings in the app.

Also, I use FOC for smoother torque and quietness, but cannot find the FOC startup settings (open-loop ERPM, Kp, Ki, Hysteresis loop settings, current injection).

Are these not officially present in the app, or is it my phone being weird?
Sorry if they're not implemented yet, but after everything else, I assume my phone is being weird by default. :lol:

Pimousse   10 mW

10 mW
Posts: 23
Joined: Jun 28 2016 7:36am

Re: VESC Open Source - Android App Features?!?!

Post by Pimousse » Oct 17 2016 3:50am

The app supports only data monitoring, not configuration of the VESC.
This is not implemented (yet ?).

User avatar
myzter   1 kW

1 kW
Posts: 403
Joined: Aug 08 2008 11:30am
Location: Van, B.C.
Contact:

Re: VESC Open Source - Android App Features?!?!

Post by myzter » Nov 02 2016 4:27pm

Can somebody tell me what I need to get data monitoring on Android while also using a 3-wire twist thorttle ?? thnx
/ quantum effects improve the efficiency of plant photosynthesis in a way that classical physics cannot allow
SolarCross

Pimousse   10 mW

10 mW
Posts: 23
Joined: Jun 28 2016 7:36am

Re: VESC Open Source - Android App Features?!?!

Post by Pimousse » Nov 02 2016 4:33pm

Are you using ADC for your throttle ?
If so, I'm afraid that you can't because UART and ADC share the same port.

User avatar
myzter   1 kW

1 kW
Posts: 403
Joined: Aug 08 2008 11:30am
Location: Van, B.C.
Contact:

Re: VESC Open Source - Android App Features?!?!

Post by myzter » Nov 02 2016 4:39pm

Can an twist trottle be connected to vesc another way?
/ quantum effects improve the efficiency of plant photosynthesis in a way that classical physics cannot allow
SolarCross

Pimousse   10 mW

10 mW
Posts: 23
Joined: Jun 28 2016 7:36am

Re: VESC Open Source - Android App Features?!?!

Post by Pimousse » Nov 02 2016 4:41pm

I don't think so because it needs ADC port.

artteth   10 mW

10 mW
Posts: 25
Joined: Jul 19 2015 11:50am

Re: VESC Open Source - Android App Features?!?!

Post by artteth » Nov 04 2016 12:59am

it can be connected to servo tester and you can use ppm and uart

rmrf   10 W

10 W
Posts: 77
Joined: Jul 06 2015 2:39pm

Re: VESC Open Source - Android App Features?!?!

Post by rmrf » Nov 09 2016 2:28pm

Pimousse wrote:Are you using ADC for your throttle ?
If so, I'm afraid that you can't because UART and ADC share the same port.
No they are not.
ADC is ADC
UART is RX and TX

It can be used at the same time, I use UART+ADC mode for HM-10 and twist throttle
myzter wrote:Can somebody tell me what I need to get data monitoring on Android while also using a 3-wire twist thorttle ?? thnx
You need to connect RX and TX, GND and 5V/3V to bluetooth transmitter
and you need GND, ADC, and 5V/3V for twist throttle
Also set ADC+UART in App Configuration (BLDC Tool)

Post Reply