REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at

Looking forward to meeting you there!

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

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?


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

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

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


Board footer

Powered by FluxBB