Sparkfun Edge - Arduino library - Analog read

Hi,

I am using Sparkfun Edge with Ambiq Apollo 3 blue MCU. I am programming using the Arduino library. Can you please let me know if it is possible to read analog values through ‘analogRead()’. I tried to read analog values but I couldn’t succeed but I could use ‘DigialRead()’

analogRead is supported by the Arduino core, however the Apollo3 only supports analog measurements on some pads - namely these:

Apollo3 Pads with Analog Read Capability

11

12

13

16

29

31

32

33

34

35

Now the Edge does not expose those pads on the 4-pin header (instead it has 1, 38, 36, and 3) so you will not be able to use that feature.

The Artemis module based boards are a good next step because they expose many of the Apollo3 pads.

https://www.sparkfun.com/artemis

Thank you

Happy to help! Hope you project goes well

Yeah sure. One more question. Can you please let me know what are the 10 pins which are parallel to qwic??

Sure, that is the 2x5 SWD/JTAG programming port.

cortex.jpg

It technically gives you a good place to connect to pads:

21

20

33

Good news that pad 33 is analog capable!