Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What pins are the best as PINIO
#1
Hi, Friends!

I'm using a copter with Speedybee F405 v3 FC board stack.

I'd like to use some of the FC controller pins as PINIO pins but have certain problems. For example when I use LED_STRIP pin Is working properly but if I use SERIAL#6 TX/RX pins there are problems that I cannot explain -- lack of power or signal interruption or anything else. When I use LED#1 and LED_STRIP then the signal on the LED#1 is changes synchronously to the LED_STRIP pin:


Code:
C03: PINIO 1
C04: GYRO_EXTI
C05: BEEPER
C06: FREE
C07: FREE
C08: PINIO 4
C09: PINIO 3

# get pinio
pinio_config = 129,1,1,1
Array length: 4

pinio_box = 0,255,41,40
Array length: 4
Default value: 0,255,255,255

Can anybody give any recommendation which MCU pins are the best as PINIO and how the FC board pins are mapped to MCU pins? Is there any document that lists MCU/board pin mapping?

I would be glad to hear the expert opinions.

Thanks!
Reply
Login to remove this ad | Register Here
#2
If you FC has onboard programmable LEDs then it will likely be connected to the same pin as the LED pin, in which case you do not want to use it for PINIO. If your board has a SerialTX/RX pin that is a good choice, otherwise pretty much any MCU pin should work, I have used RX/TX and BUZ- pins on various boards. What do you have connected that does not seem to work with the serial pins?
Reply
#3
You might be on a hiding to nothing with that particular FC. The SpeedyBee F405 V3 FC is riddled with a number of design flaws that give all sorts of hardware conflicts. To name but a couple, you can't use DSHOT and RPM filtering without turning on DSHOT bitbang (which you shouldn't have to do on an F4 FC) due to dma/timer conflicts, and you can't switch on both analog OSD and blackbox logging at the same time due to an SPI conflict, so you have to choose one or the other. I think they must have tasked a trainee with the design of that FC without it then being peer reviewed by an experienced designer.

You seem to know what you are doing with configuring PINIO, but the fact that you can't seem to get it working and have issues that in your own words you "cannot explain", it suggests that there are also some conflicts with other hardware IO communications on the board as well, so it's going to be trial and error, and even then you might not be able to get it working. Members on here can make some suggestions but with the known flaws in that FC it will just be guesswork, the same as you would have to do.

You might be better off just cutting your losses and replacing the FC with one that doesn't have so many known issues. Ironically SpeedyBee have just released a V4 of the same FC which supposedly fixes all the design issues that has plagued the V3.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Speedybee - Voltages on Telemetry pins embedded_guy 4 347 12-Oct-2023, 09:24 PM
Last Post: embedded_guy
Question FC only has 3 pins while ELRS board has 4. How do I wire them? OverSavior 16 884 14-Jul-2022, 05:10 PM
Last Post: SnowLeopardFPV
  Please help me figure out the order for these pins Egg_FPV 9 784 09-Mar-2022, 06:30 PM
Last Post: V-22
  Why everybody solder everything to the PDB instead of using pins? netox 20 5,551 08-Sep-2016, 03:23 AM
Last Post: tecnix


Login to remove this ad | Register Here