I am going to show you how I made the leg part of the master robot. There is a problem with Arduino not having enough ADC channels. I will show you how I managed it.

https://youtu.be/Tu6jlxA97Zo

Materials

Previous episode

in the previous episode, we made a slave robot with a PCA9685 board so we could control a lot of motors at the same time.

I'm sorry about making this episode so late. actually I already made videos but didn't edit them because of my procrastination.

CHOOM [07] Follower Robot Circuit connection

In this episode

I am going to show you how I made the leg part of the master robot. There is a problem with Arduino not having enough ADC channels. I will show you how I managed it.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aa5869ac-253d-4bd8-898e-6c49de204086/Untitled.png

The goal

Here's the goal of this episode. I already managed to move 8 motors for the arms with 8 potentiometers. This time, I will use 12 more motors and potentiometers.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e15b2bf5-1ab7-4c2d-abb5-76ff0d42ae91/Untitled.png

Problem

But there's a problem with the Arduino. Arduino only has 8 ADC channels. As you already know, Arduino uses ADC to read the angle of the potentiometers. How can you read 20 potentiometer's value with the limited number of ADC channels?

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/169da719-9953-41e1-ab28-3fa76d1c8120/Untitled.png

Solution

I tried to look for a solution to this problem, and I've found a practical solution at last. With this multiplexer, I can get many ADC values in order.

Eunchan Park http://eunchan.me