Hello, i am creating an uart interface between a board designed by me and balena fin. I am not so sure about the location of the uart port. On the documentation i have not found any information about uart pins. On the datasheet it is not mentioned. I read on a forum that uart pins could be GPIO14 and GPIO15 on the HAT connector. I am asking now, which one is TXD and which one is RXD ?? Is there an official document which describes the correct UART pinout? Thank you.
balenaFin HAT connector follows the same pinout standard of the Rasberry Pi 3 connector, You can check it here
- Pin 8 is GPIO14 --> TXD
- Pin 10 is GPIO 15 --> RXD
Happy to help you! Please let me know if you still have any questions!
Thank you for your quick answer. Is the voltage of UART , SPI , I2C, 3.3V or 5V ? Thanks
Hi Alessandro, all GPIO pins on the RPI3 and the fin operate on 3.3V.
Thank you, SPI and I2C pin layout is exactly like the raspberry pi layout?
Is there a dxf file or a gerber file of Balenafin board? I need it to calculate the board size occupancy on the motherboard i am going to design.
- Yes, the pin layout is the same as the RPi3 - so any HATs will be compatible.
- We have a HAT template repo - https://github.com/balena-io-playground/balena-fin-examples-hw - you can use this as a starting point to create your board.
- If you want to design anything mechanical, you will need the CAD files. You can find them here - https://github.com/balena-io/balena-fin/blob/master/documentation/DOCUMENTATION.md#datasheet
Is that enough info to help you design your board? Let us know how it goes!
Hello, yes the stuff you have is quite useful. For my project i need to make a change on balenafin hat connector. I should un-solder the actual strip 40 pin
header and i should mount an- automotive suitable connector, because of the vibration and other kind of problems. Can you give me an advice of
what connector could be better to substitute the factory one?
Hello @IngBianchi ,
I don’t know of any AEC-approved connector that is pin-compatible with the 40 pin header on the balenaFin. I’d like to hear a bit more about which type of vibrations and other issues you’ve seen/faced with the standard header.
If you’re mostly concerned about vibrations, there are a few mounting holes on the balenaFin board that you could use to secure your custom HAT in place.
i need another information. I need to know the exact distance between the corner holes of balenafin,
i did not find anything, and if you have a dxf it would be better.
A file has been uploaded using Jellyfish: https://jel.ly.fish/0bca0394-a739-4aea-b7b1-47c5414741b6
Please find the attached dxf files and let us know if you need more help.
Hello thank you, i have not a jellyfish account, should i create one to download attached files?
my project consists of establishing an uart communication between pic32 and balenafin, do you have some software libraries or code sketch
to have an optimal set up of balenafin uart peripheral? Thank you.
The default UART pins for the fins are 14/15, just as with the RPI3.
If you are using balenaOS, you can enable UART in the dashboard under the
device configuration tab. The UART port will appear under ‘/dev/ttyAMA0’, and can be written to or read from. There are serial libraries for most languages that would allow you to do this at this point, for example n python something like this: https://github.com/nhivp/Serial-Raspberry-Pi-3/blob/master/testSerial.py