inav icon indicating copy to clipboard operation
inav copied to clipboard

Design a FC for INAV

Open digitalentity opened this issue 10 years ago • 147 comments

I think it's time to think about designing a FC specifically for INAV.

Features I want to have on this FC:

  1. Future-proof design with an F4 (or even F7) CPU
  2. 8 outputs supporting 8/0, 6/2, 2/6 motor/servo configurations
  3. Onboard baro (MS5607 or BMP280)
  4. Optional onboard NRF24 receiver (placeholder for a tiny daughter PCB)
  5. External I2C connector (compass)
  6. External SPI connector (opflow)
  7. SD-card logging
  8. Hybrid 4-pin connector to PWM/SBUS receiver (3.3V + 5V both available), same pin used for PPM/SerialRX
  9. USB VCP
  10. At least 3 extra UARTs for GPS, MSP, Telemetry
  11. 5V-level LEDSTRIP connector
  12. Analog inputs for RSSI, VBAT, CURR and an extra for optical rangefinder
  13. Sonar connector

What do you think?

digitalentity avatar Jun 15 '16 09:06 digitalentity

13 Sonar Pads

skaman82 avatar Jun 15 '16 09:06 skaman82

Wonderful!I have always been concerned about this project.I am designing a FC board now and ready to flash inav F4 firmware,use STM32F4RGT6.I suggest why not use Can Bus Hub like Dji to connect sonar,opflow,gps,osd or even more sensors and devices?It will save hardware resources.

Linjieqiang avatar Jun 15 '16 10:06 Linjieqiang

What about factor? Probably keeping 30-something (30.5mm hole spacing) would be impossible. I'm fine about that, Pixhawk size would be totally fine in my case. I would even prefer that.

It would be also very nice to have SoftSerial not conflicting with RSSI and ADC

DzikuVx avatar Jun 15 '16 10:06 DzikuVx

@skaman82 Done!

@Linjieqiang I'm thinking about being able to connect a sensor hub via serial port - this way sensor hub will be usable even with older FCs without CAN. I don't want this design to be bound to one hardware only.

@DzikuVx I'm going to keep 30.5mm hole spacing but the overall form factor is going to be larger (longer board). USB on the side, connectors on front and rear edges. I'm not going to make SoftSerial available on this board - F4 CPUs have enough hardware UARTs.

I'll design the board in such a way that it would be possible to use all (or almost all) features at once without conflict.

digitalentity avatar Jun 15 '16 10:06 digitalentity

1+ for 30.5mm hole spacing

skaman82 avatar Jun 15 '16 10:06 skaman82

I would be very happy with 5 Hardware Uarts

DzikuVx avatar Jun 15 '16 10:06 DzikuVx

@DzikuVx this might be impossible. I'm going to use UART2 RX for PPM/SERIALRX input so it's going to be UARTS 1,3,4,5

digitalentity avatar Jun 15 '16 10:06 digitalentity

I know I am an special case here. I have OSD via MSP, another msp for telemetry, GPS, FrSky S.Port and Blackbox. All 5 possible Uarts taken on my Sprf3. Probably will switch osd to ltm and share it with telemetry via some Small arduino to free one uart

DzikuVx avatar Jun 15 '16 10:06 DzikuVx

Just a question.

Hardware UARTS are fine, yes. But Softserial has proved very usefull in many cases.

With an F4 cpu compared to an F3 CPU could we overcome some of the limitations? Or with the F7 cpu?

Not a hardware developer, nor a software. Just thinking with a more powerfull CPU maybe softserial could run at 100k baudrates?

oleost avatar Jun 15 '16 10:06 oleost

I would use mpu9250 to have compass with no extra wire and an integrated bec so to avoid having a different board and all the io pin out avaiable Il 15/giu/2016 11:52, "Konstantin Sharlaimov" [email protected] ha scritto:

I think it's time to think about designing a FC specifically for INAV.

Features I want to have on this FC:

  1. Future-proof design with an F4 (or even F7) CPU
  2. 8 outputs supporting 8/0, 6/2, 2/6 motor/servo configurations
  3. Onboard baro (MS5607 or BMP280)
  4. Optional onboard NRF24 receiver (placeholder for a tiny daughter PCB)
  5. External I2C connector (compass)
  6. External SPI connector (opflow)
  7. SD-card logging
  8. Hybrid 4-pin connector to PWM/SBUS receiver (3.3V + 5V both available), same pin used for PPM/SerialRX
  9. USB VCP
  10. At least 3 extra UARTs for GPS, MSP, Telemetry
  11. 5V-level LEDSTRIP connector
  12. Analog inputs for RSSI, VBAT, CURR and an extra for optical rangefinder

What do you think?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/287, or mute the thread https://github.com/notifications/unsubscribe/ALSWiiyIOmZnHBD6KjQAyiFv4M03egHBks5qL8tHgaJpZM4I2LxB .

bk79 avatar Jun 15 '16 11:06 bk79

@bk79 External compass mounted far away from the wiring is always better then a internal one.

skaman82 avatar Jun 15 '16 11:06 skaman82

And this is why I like the idea of no magnetometer on this board

DzikuVx avatar Jun 15 '16 11:06 DzikuVx

As long as it is far from ac power source (escs) it's ok and unless you have a 250 size which is intended normally for racing i can assure it makes really little difference to have it inside or outside the fc shell if you like i can attach the reading coming from a sparky connected to an hexa 320 and the reading coming from a cc3d connected to an 400size with ext compass of course in hoovering conditon for both that means low currents radiating Il 15/giu/2016 13:07, "Paweł Spychalski" [email protected] ha scritto:

And this is why I like the idea of no magnetometer on this board

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/287#issuecomment-226156631, or mute the thread https://github.com/notifications/unsubscribe/ALSWiu7Jy-WNCoqjsS2oreNx3zYu8pZ-ks5qL9zngaJpZM4I2LxB .

bk79 avatar Jun 15 '16 11:06 bk79

Just as addition the bigger is the angle between escs wire and compass the higher will be the induction current from the esc wires since their radiation field is radial to the wire and normally the wire are on the same plane of the fc which means low mutual induction Il 15/giu/2016 13:27, "luciano palermo" [email protected] ha scritto:

As long as it is far from ac power source (escs) it's ok and unless you have a 250 size which is intended normally for racing i can assure it makes really little difference to have it inside or outside the fc shell if you like i can attach the reading coming from a sparky connected to an hexa 320 and the reading coming from a cc3d connected to an 400size with ext compass of course in hoovering conditon for both that means low currents radiating Il 15/giu/2016 13:07, "Paweł Spychalski" [email protected] ha scritto:

And this is why I like the idea of no magnetometer on this board

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/287#issuecomment-226156631, or mute the thread https://github.com/notifications/unsubscribe/ALSWiu7Jy-WNCoqjsS2oreNx3zYu8pZ-ks5qL9zngaJpZM4I2LxB .

bk79 avatar Jun 15 '16 11:06 bk79

@digitalentity oh,I see.Your idea is great.What processor chip do you want ?I just think F7 is too expensive now.What about STM32F4RGT6?I think it's ok.Anyway,look forward to your work.Oh,I have another question.Are you going to design a FC box to damp the IMU, just like place it on sponge?The photo is that I hack ZYX-M FC.For reference only.Forgive me for my bad English.Haha…… img20160613121502 1

Also,if Revo Openlrs can be supported,that's more better~!But I think it lack powerful mobile GCS for IOS or Android Phone.

Linjieqiang avatar Jun 15 '16 12:06 Linjieqiang

Vibration damping of the sensor board is a good idea but it will make the FC harder to manufacture. You can easily soft-mount the FC itself.

digitalentity avatar Jun 15 '16 15:06 digitalentity

I think thata mix spracingf3 deluxe and evo with sdcard reader is a good starting point but with f4 processor Il 15/giu/2016 17:18, "Konstantin Sharlaimov" [email protected] ha scritto:

Vibration damping of the sensor board is a good idea but it will make the FC harder to manufacture. You can easily soft-mount the FC itself.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/287#issuecomment-226220413, or mute the thread https://github.com/notifications/unsubscribe/ALSWiqdryq2DdLxUgpwUqR5cfoU0f_Ozks5qMBe0gaJpZM4I2LxB .

bk79 avatar Jun 15 '16 15:06 bk79

If most people are going to use a osd on one of the uarts why not build a max chip into the FC and with a f4 or f7 processor there will be plenty of resources to support it . osd support is currently being added to cleanflight On 15 Jun 2016 4:18 p.m., "Konstantin Sharlaimov" [email protected] wrote:

Vibration damping of the sensor board is a good idea but it will make the FC harder to manufacture. You can easily soft-mount the FC itself.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/287#issuecomment-226220413, or mute the thread https://github.com/notifications/unsubscribe/AD8DEZ56dN177lVJ376pk9fq_1-kMEbeks5qMBe0gaJpZM4I2LxB .

dan557 avatar Jun 15 '16 15:06 dan557

With HD systems emerging having an analog OSD is not the best idea. Also what if one will want different OSD? If possible I'd like to avoid mixing flight control and vision.

digitalentity avatar Jun 15 '16 15:06 digitalentity

I also do not like the idea of mixing FC with OSD.

DzikuVx avatar Jun 15 '16 17:06 DzikuVx