MEMS and Sensors

Video: How to write Arduino drivers with ChatGPT

15 September 2023

Maker hub Adafruit has released a new video that shows how to use ChatGPT to write Arduino drivers for hundreds of libraries of devices and sensors, particularly all the I2C and SPI chips.

While writing libraries can be done by humans, it is intensive and time consuming with the poring over datasheets with long lists of binary tables and bit insets to figure out how to convert it to C or Python code.

ChatGPT can be trained to write new drivers for Arduino in about the same amount of time it would take humans. It can be done in the background with humans having to watch to re-direct the AI if it starts making mistakes.

Additionally, there is a lot less continuous typing and mouse use that will save humans from developing carpal tunnel or other work-related injuries.

In the video, Adafruit walks through the process of using ChatGPT and PDF parsing to write code for Arduino.

To contact the author of this article, email PBrown@globalspec.com


Powered by CR4, the Engineering Community

Discussion – 0 comments

By posting a comment you confirm that you have read and accept our Posting Rules and Terms of Use.
Engineering Newsletter Signup
Get the GlobalSpec
Stay up to date on:
Features the top stories, latest news, charts, insights and more on the end-to-end electronics value chain.
Advertisement
Weekly Newsletter
Get news, research, and analysis
on the Electronics industry in your
inbox every week - for FREE
Sign up for our FREE eNewsletter
Advertisement