# Sparkfun Edge - Arduino library - Analog read

**URL:** <https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427>\
**Category:** Development Boards\
**Tags:** edge\
**Created:** [July 30, 2019, 7:01pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427 "2019-07-30T19:01:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![reachkvenkat94](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@reachkvenkat94](https://community.sparkfun.com/u/reachkvenkat94)\
**Post date:** [July 30, 2019, 7:01pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427/1 "2019-07-30T19:01:15Z")

</div>

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()’

---

<div class="post-metadata">

**Author:** ![liquid.soulder](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/liquid.soulder/32/6069_2.png) [@liquid.soulder](https://community.sparkfun.com/u/liquid.soulder)\
**Post date:** [July 30, 2019, 7:48pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427/2 "2019-07-30T19:48:22Z")

</div>

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](https://www.sparkfun.com/artemis)

---

<div class="post-metadata">

**Author:** ![reachkvenkat94](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@reachkvenkat94](https://community.sparkfun.com/u/reachkvenkat94)\
**Post date:** [July 30, 2019, 7:51pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427/3 "2019-07-30T19:51:15Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![liquid.soulder](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/liquid.soulder/32/6069_2.png) [@liquid.soulder](https://community.sparkfun.com/u/liquid.soulder)\
**Post date:** [July 30, 2019, 8:13pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427/4 "2019-07-30T20:13:19Z")

</div>

Happy to help! Hope you project goes well

---

<div class="post-metadata">

**Author:** ![reachkvenkat94](https://avatars.discourse-cdn.com/v4/letter/r/e47c2d/32.png) [@reachkvenkat94](https://community.sparkfun.com/u/reachkvenkat94)\
**Post date:** [July 30, 2019, 8:53pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427/5 "2019-07-30T20:53:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![liquid.soulder](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/liquid.soulder/32/6069_2.png) [@liquid.soulder](https://community.sparkfun.com/u/liquid.soulder)\
**Post date:** [July 30, 2019, 8:57pm UTC](https://community.sparkfun.com/t/sparkfun-edge-arduino-library-analog-read/37427/6 "2019-07-30T20:57:11Z")

</div>

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

![cortex.jpg](https://canada1.discourse-cdn.com/sparkfun/original/3X/4/8/487b78f327e11bf40045cc49a8d6c4c16c9ce872.jpeg)

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

21

20

33

Good news that pad 33 is analog capable!
