Do you want to learn how to use DAC and ADC on microcontrollers, in Python? With this Hackster tutorial, it will take a couple of minutes.

First, you’ll need to decide what development board you’ll be using. The tutorial uses the ESP32-DevkitC by Espressif. You can choose any of the Zerynth supported 32-bit microcontroller devices.

Secondly, you’ll need Zerynth Studio. If you haven’t downloaded it yet, you can do it now.

After that, it’s just a matter of following all the steps in the tutorial.

More about DAC and ADC

DAC stands for Digital to Analog Converter and, as you can guess, it converts digital signals into analog. As you can guess, ADC stands for Analog to Digital Converter and does the opposite.

Converting these signals back and forth is a common task in the embedded industry. That’s why a tutorial like this is so useful. For example, when you’re working on a project that has a temperature sensor, you need to convert this analog temperature data into a digital format. The analog temperature data has an infinite amount of values, while you need it in a neat binary form.

As the tutorial says:

“An analog signal varies continuously over time, i.e. it can take on infinite different values. A digital signal, on the contrary, can assume a finite number of different values.”

This organizes binary form will then be easily processed by the microcontroller.

Check out Zerynth Academy

If you’re done with this tutorial, and you want to explore other possibilities in Python and Zerynth Studio, check out the Zerynth Academy. It’s the perfect place for inspiration (and challenges).

Just take a look at some of the tutorials it has to offer:

Download Zerynth Studio

Do you want to recreate this tutorial? Then download Zerynth Studio, and start programming 32-bit microcontrollers in Python.

Zerynth Studio is free for download and available for Windows, Linux, and Mac OS.

Share This Story, Choose Your Platform!

About the Author: Lana Vukovic

Lana Vukovic
Lana is a Classics graduate who got bored of ancient Greek and Roman texts and got into new technology instead.

Follow Zerynth on

Latest Posts