# Can the ODESC V4.2 board read current values?

**URL:** https://community.simplefoc.com/t/can-the-odesc-v4-2-board-read-current-values/6463
**Category:** developement
**Created:** [December 16, 2024, 10:42am UTC](https://community.simplefoc.com/t/can-the-odesc-v4-2-board-read-current-values/6463 "2024-12-16T10:42:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tumelecza](https://community.simplefoc.com/user_avatar/community.simplefoc.com/tumelecza/32/5386_2.png) [@tumelecza](https://community.simplefoc.com/u/tumelecza)
#### Post date: [December 16, 2024, 10:42am UTC](https://community.simplefoc.com/t/can-the-odesc-v4-2-board-read-current-values/6463/1 "2024-12-16T10:42:33Z")

</div>

Can the ODESC V4.2 board work with SimpleFOC?  
Currently, I’m facing an issue with reading the current from the motor because the pins used for current sensing are:

// M0  
#define M0\_IA PC0 // Not available as analog!  
#define M0\_IB PC1  
#define M0\_IC \_NC

```auto

Also, does it support current sensing via DMA?

Thank you!
```

---

<div class="post-metadata">

### Author: ![Candas1](https://community.simplefoc.com/user_avatar/community.simplefoc.com/candas1/32/5296_2.png) [@Candas1](https://community.simplefoc.com/u/Candas1)
#### Post date: [December 16, 2024, 11:24am UTC](https://community.simplefoc.com/t/can-the-odesc-v4-2-board-read-current-values/6463/2 "2024-12-16T11:24:37Z")

</div>

Have you checked this discussion?

> [@Read a potentiometer continuously? on STM32 and analogRead()](https://community.simplefoc.com/t/read-a-potentiometer-continuously-on-stm32-and-analogread/4214):
>
> Hello, I bought an ODESC 4.2 card (24volt) with STM32F405RGT6, a Chinese card that runs under Odrive3.6. [https://fr.aliexpress.com/item/1005005725467528.html](https://fr.aliexpress.com/item/1005005725467528.html) I got it to work with SimpleFOC slight_smile It works perfectly if I drive it with STMViewer and a “St-Link V2”. The motor is a skateboard motor in 24v 150w and 10 poles with Hall effect sensor. I can’t get a continuous potentiometer reading to work properly. I first tried adding analogRead() from GPIO =…

---

<div class="post-metadata">

### Author: ![Candas1](https://community.simplefoc.com/user_avatar/community.simplefoc.com/candas1/32/5296_2.png) [@Candas1](https://community.simplefoc.com/u/Candas1)
#### Post date: [December 16, 2024, 11:39am UTC](https://community.simplefoc.com/t/can-the-odesc-v4-2-board-read-current-values/6463/3 "2024-12-16T11:39:32Z")

</div>

And about dma you already asked it here

> [@Does the STM32F4 support DMA-based ADC reading](https://community.simplefoc.com/t/does-the-stm32f4-support-dma-based-adc-reading/3841):
>
> Does the STM32F4 support DMA-based ADC reading, and do you have any recommended ways to read ADC values via DMA to align with the PWM signals sent to drive BLDC motors?
