Using the expansion pins in apm1

tried to add
pot1_analog_source = hal.analogin->channel(AN6);
pot2_analog_source = hal.analogin->channel(AN7);

and then use
pot1_analog_source->set_pin(AN6);
pot1_analog_source->read_average();

pot2_analog_source->set_pin(AN7);
pot2_analog_source->read_average();

but wasn't getting measurements , just 0 and 1023 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi, OK but what were the expected values? Did you connect something?
    Regards, Søren
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…