fprime icon indicating copy to clipboard operation
fprime copied to clipboard

add hardware interface tutorial

Open capsulecorplab opened this issue 2 years ago • 3 comments

F´ Version v3.0.1
Affected Component


Feature Description

A tutorial for building a component that provides a means to communicate with external hardware, s.a., via I2C

Rationale

Such a tutorial would be useful for reading external sensors, s.a., temperature sensors, magnetometers, accelerometers, etc.

capsulecorplab avatar Mar 18 '22 18:03 capsulecorplab

This already exists in the form of the GPS tutorial: https://nasa.github.io/fprime/Tutorials/GpsTutorial/Tutorial.html

codeflight1 avatar Mar 18 '22 19:03 codeflight1

Thanks @codeflight1, I see the GPS tutorial is for creating a component that defines ports for supplying buffers to a UART driver. Will this port work for I2C as well?

capsulecorplab avatar Mar 19 '22 04:03 capsulecorplab

Not sure if this is too late but I had make F' to use I2C driver and have it worked on raspberry pi 3B+. Note that this is built on F' v.2.0. You can check out my repo

rawinza555 avatar May 19 '22 03:05 rawinza555

This was completed with the system reference! We'll be cleaning up the documentation and layout there over the coming months. However, future work should is tracked there.

LeStarch avatar Sep 26 '22 21:09 LeStarch