# Using OCaml to drive a Raspberry Pi robot car

DevFeed: [Using OCaml to drive a Raspberry Pi robot car](<https://devfeed.tech/articles/using-ocaml-to-drive-a-raspberry-pi-robot-car-20222.md>)

Original publisher: [Read original article](<https://blog.janestreet.com/using-ocaml-to-drive-a-raspberry-pi-robot-car/>)

Author: Laurent Mazare

Published: 2019-08-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jane Street](<https://devfeed.tech/sources/jane-street.md>)

Topics: [OCaml](<https://devfeed.tech/topics/ocaml.md>), [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>), [async](<https://devfeed.tech/topics/async.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>)

## AI overview

A tutorial-style post about using OCaml and Async on a Raspberry Pi to implement the driving logic for small robot-car kits. It describes replacing the kits' supplied Python examples with OCaml code that interfaces with Raspberry Pi GPIO and provides APIs for the robots.

## Source excerpt

Back when the Raspberry Pi was first released in 2012 Michael Bacarella wrote a blog post on using OCaml and Async on this little device. Since then installing OCaml via opam has become a pretty smooth experience and everything works out of the box when using Raspbian - the default Raspberry Pi distribution.