I have such a problem, namely I want to receive data via iBus from the flysky ia6b receiver.
The problem is that I get all 0 instead of specific values.
The same code uploaded to ArduinoMega works without a problem and with stm32 it does not want.
I tried on the STM32F411 / F401 blackpill, NUCLEO-F401RE plates and all the time I have only zeros.
- Ch0: 0 ---- Ch1: 0 ---- Ch2: 0 ---- Ch3: 0 ---- Ch4: 0 ---- Ch5: 0 ---- Ch6: 0 ---- Ch7: 0 ---- Ch8: 0 ---- Ch9: 0 ---- Ch10: 0 ---- Ch11: 0 ---- Ch12: 0 ---- Ch13: 0 ---- Next
Ch0: 0 ---- Ch1: 0 ---- Ch2: 0 ---- Ch3: 0 ---- Ch4: 0 ---- Ch5: 0 ---- Ch6: 0 ---- Ch7: 0 ---- Ch8: 0 ---- Ch9: 0 ---- Ch10: 0 ---- Ch11: 0 ---- Ch12: 0 ---- Ch13: 0 ---- Next
Ch0: 0 ---- Ch1: 0 ---- Ch2: 0 ---- Ch3: 0 ---- Ch4: 0 ---- Ch5: 0 ---- Ch6: 0 ---- Ch7: 0 ---- Ch8: 0 ---- Ch9: 0 ---- Ch10: 0 ---- Ch11: 0 ---- Ch12: 0 ---- Ch13: 0 ---- Next
Ch0: 0 ---- Ch1: 0 ---- Ch2: 0 ---- Ch3: 0 ---- Ch4: 0 ---- Ch5: 0 ---- Ch6: 0 ---- Ch7: 0 ---- Ch8: 0 ---- Ch9: 0 ---- Ch10: 0 ---- Ch11: 0 ---- Ch12: 0 ---- Ch13: 0 ---- Next
Ch0: 0 ---- Ch1: 0 ---- Ch2: 0 ---- Ch3: 0 ---- Ch4: 0 ---- Ch5: 0 ---- Ch6: 0 ---- Ch7: 0 ---- Ch8: 0 ---- Ch9: 0 ---- Ch10: 0 ---- Ch11: 0 ---- Ch12: 0 ---- Ch13: 0 ---- Next
Code: Select all
#include <IBusBM.h>
IBusBM IBusServo;
//Arduino Mega
//HardwareSerial Serial2(17,16);
// RX TX
//HardwareSerial Serial2(PA3, PA2);
void setup() {
Serial.begin(115200);
IBusServo.begin(Serial2);
}
void loop() {
ibusServo();
}
//
//
//
void ibusServo()
{
// show first 14 servo channels
for (int i=0; i<14 ; i++) {
Serial.print("Ch");
Serial.print(i);
Serial.print(": ");
Serial.print(IBusServo.readChannel(i));
Serial.print(" ---- ");
}
Serial.println("Next");
delay(1000);
}
Has anyone encountered such a problem ??
I tried to download only Stm32Cores on a clean installation and IbusBM also does not work ;(
