#1 2018-11-26 23:17:04

tazntex
Member
Registered: 2018-04-04
Posts: 3

Raspberry PWM

How would one go about reading an analog input from an ADC, i.e. ADS1115, then creating a PWM on a GPIO based on the current value of that sample?

Offline

#2 2018-11-27 13:37:50

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 341

Re: Raspberry PWM

Hello tazntex,

reading I2C ADC converters can be done using Rexlang function block. I recommend you to have a look at example group called "0502 Generic I2C Communication" - you can modify 0502-02 example in order to communicate with ADS1115.

As for PWM output - have a look at PWM function block. Idea about it's usage can be found in 0303-10 example.

Hope it helps.

Regards, Tomas

Offline

Board footer

Powered by FluxBB