You are not logged in.
Pages: 1
Topic closed
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
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
Pages: 1
Topic closed