Is Servo Control Using PWM Signal Possible with INDIO's Digital Channels?

I just received my Industrino IND I/O D21G today. I want to use it to control a servo via a PWM signal from a digital pin using the Arduino servo library (I've alreay implemented this scheme on an Arduino Mega). However, to my dismay, I just read on the forum that "the usual analogWrite() instruction for PWM does not apply to the INDIO's digital channels. These channels are controlled via an I2C expander, with limited speed and no PWM functionality." Is this true? If so, is there a simple way around it? Without this capability, I won't be bale to use it and will have to return it. Thanks in advance for your help!

German Gilli
German Gilli
4
| 1 1 1
Asked on 9/24/18, 8:11 PM
0
vote
3101 Views

Thank you Tom! I won't be using Ethernet or GSM in my application, so it should be OK. As you suggested, the servo is powered by its own power supply, with a shared ground with the Arduino. Thank you again!

German Gilli
German Gilli
4
| 1 1 1
Answered on 9/26/18, 5:02 PM
0
vote

Hi, the INDIO is designed to be used in applications where isolated digital I/O is required, at industrial level 12/24V, and isolated analog I/O 0-10V/4-20mA. If you do not need any of these features, we suggest you switch to the PROTO unit, which has direct access to the MCU pins (as on regular Arduinos).

If you do need the industrial I/O channels, and a few regular Arduino pins, you could use the pins available on the 14-pin IDC expansion port (0-3.3V level), if you are not already using this for Ethernet or GSM https://github.com/Industruino/libraries#idc-pinout

Please note that the 5V available on this port cannot provide much current so you'd have to drive your servo from an external power supply, with a shared ground to the MCU.

 

Tom
Tom
5675
| 1 1 3
Answered on 9/26/18, 12:21 AM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

47 follower(s)

Stats

Asked: 9/24/18, 8:11 PM
Seen: 3101 times
Last updated: 9/26/18, 5:02 PM