MikroKopter - Forum » BL-Ctrl » bl-ctrl v3 i2c with arduino

bl-ctrl v3 i2c with arduino

Neues Thema Antwort

Seite: 1

Autor Neuer Beitrag
Mitglied
Registriert seit: Jan 2016
Beiträge: 10
Hi all, I need to configure the bl-ctrl v3 to work with Arduino boards. Is there somewhere I can find the protocol specifications? (i.e. the packets which I have to send to start/stop the engine or set the speed). On what level does the i2c bus work? (3.3 V or 5V).

I really hope you can point me somewhere because it really seems this ESC is the best out there and I have to deal with an Arduino for my project, I can't use the Mikrokopter board...
Mitglied
Registriert seit: Nov 2012
Beiträge: 234
Ort: Ankara
Anacleto86 meinte
Hi all, I need to configure the bl-ctrl v3 to work with Arduino boards. Is there somewhere I can find the protocol specifications? (i.e. the packets which I have to send to start/stop the engine or set the speed). On what level does the i2c bus work? (3.3 V or 5V).

I really hope you can point me somewhere because it really seems this ESC is the best out there and I have to deal with an Arduino for my project, I can't use the Mikrokopter board...


You can follow this topic also -> http://forum.mikrokopter.de/topic-post547735.html#post547735

Also you can check the I2C files for FC ->
twimaster.c
twimaster.h
fc.c
fc.h

In my opinion 5V I2C bus
Mitglied
Registriert seit: Jan 2016
Beiträge: 10
Ok thank you! That is for bl-ctrl v2, is it the exact same?
Mitglied
Registriert seit: Apr 2011
Beiträge: 3526
Ort: Münsterland
I do not think so!
Entwickler, Admin
Registriert seit: Feb 2006
Beiträge: 5784
Ort: Ostfriesland
The I2C-protocol is compatible to BL-Versions 2&3

Setpoint: just write the setpoint (0-255) to the BL-Ctrl
BL-addresses
1 = 0x50
2 = 0x52
3 = 0x54
4...

If you read from the BLs:
Read from BL-addresses (0x51, 0x53, 0x55, ...)
- current
- state
- Temperature
- rpm (BL V3 only)
- voltage (BL V3 only) Note: only low-byte -> if lower than 60, just add 255 -> '5' would be 25,5V+5 = 26,0V

For the state:
255 = motor running
254 = motor running and operating in redundant mode
250 = BL V2 ready for operation
248-249 = BL V3 ready for operation
40 = starting motor
39 = motor start failed
1-20 = error in selftest

Regards,
Holger
« Bearbeitet von HolgerB am 20.01.2016 11:02. »
Entwickler, Admin
Registriert seit: Feb 2006
Beiträge: 5784
Ort: Ostfriesland
wiki.mikrokopter.de/BlCtrlProtocol
Mitglied
Registriert seit: Jan 2016
Beiträge: 10
Thank you a lot. It is exactly what I was looking for!
regards
Mitglied
Registriert seit: Jun 2013
Beiträge: 1235
Ort: Luxembourg
Anacleto86 meinte
Thank you a lot. It is exactly what I was looking for!

Please write back later to show us what you have manage to create. Good luck with development.

Neues Thema Antwort

Seite: 1

MikroKopter - Forum » BL-Ctrl » bl-ctrl v3 i2c with arduino