# PiicoDev Potentiometer (Rotary) (CE08463)

**URL:** <https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069>\
**Category:** Product Questions\
**Created:** [7 January 2023 08:47 UTC](https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069 "2023-01-07T08:47:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Core](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/core/32/57_2.png) [@Core](https://forum.core-electronics.com.au/u/Core)\
**Post date:** [7 January 2023 08:47 UTC](https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069/1 "2023-01-07T08:47:21Z")

</div>

This is a placeholder topic for [**“PiicoDev Potentiometer (Rotary)”**](https://core-electronics.com.au/piicodev-potentiometer-rotary.html) comments.

![](https://core-electronics.com.au/media/catalog/product/cache/5ba536955e3e815f4e908e49c1dd8155/c/e/ce08463-piicodev-potentiometer-rotary.jpg)

Add intuitive, analogue control to your project.

[**Read more**](https://core-electronics.com.au/piicodev-potentiometer-rotary.html)

---

<div class="post-metadata">

**Author:** ![Socrates66761](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Socrates66761](https://forum.core-electronics.com.au/u/Socrates66761)\
**Post date:** [7 January 2023 08:47 UTC](https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069/2 "2023-01-07T08:47:22Z")

</div>

- Incorrect device found at address 53

Hi, I get the following error when using the rotary potentiometer - I have tried many of them and they all behave the same.

I have used the code from your examples and it does the same.

Otherwise it operates correctly with no adverse issues.

Are you able to shed some light as to the root cause?

I am running this on a pico with v1.19.1 but it also occurs on v1.18.

Any ideas ?

Many thanks  
Socrates

---

<div class="post-metadata">

**Author:** ![Liam120347](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam120347/32/5003_2.png) [@Liam120347](https://forum.core-electronics.com.au/u/Liam120347)\
**Post date:** [7 January 2023 09:15 UTC](https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069/3 "2023-01-07T09:15:42Z")

</div>

Hi Socrates,

If you run the following code with only the potentiometer what appears?  
It sounds like some of the address switches might be toggled

```auto
from machine import I2C
i2c = I2C(0)
i2c.scan()

```

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [7 January 2023 09:29 UTC](https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069/4 "2023-01-07T09:29:06Z")

</div>

What is the value of the actual potentiometer. Handy to know to work out current requirements…  
Any Arduino libraries required??  
Cheers Bob

---

<div class="post-metadata">

**Author:** ![Socrates66761](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Socrates66761](https://forum.core-electronics.com.au/u/Socrates66761)\
**Post date:** [8 January 2023 11:11 UTC](https://forum.core-electronics.com.au/t/piicodev-potentiometer-rotary-ce08463/16069/5 "2023-01-08T11:11:13Z")

</div>

Hello Liam,  
nothing happens when I run the code.

I have also tried this version:

import machine  
sda=machine.Pin(8)  
scl=machine.Pin(9)  
i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)

print(‘Scanning i2c bus…’)  
devices = i2c.scan()  
print("I2C Configuration: " + str(i2c)) # Display I2C config  
if len(devices) == 0:  
print(“No i2c device !”)  
else:  
print(‘i2c devices found:’,len(devices))  
for device in devices:  
print("Hex address: “,hex(device),” | Decimal address: ",device)

which reports the following:

Scanning i2c bus…  
I2C Configuration: I2C(0, freq=399361, scl=9, sda=8)  
i2c devices found: 1  
Hex address: 0x35 | Decimal address: 53

So all is normal, the switches are all off.

I also tried this:  
from PiicoDev\_Potentiometer import PiicoDev\_Potentiometer  
from PiicoDev\_Unified import sleep\_ms  
from machine import I2C

# Initialise the Potentiometer

pot = PiicoDev\_Potentiometer(address=0x35,minimum=0.0, maximum=1.0)

and the same thing happens. I have also downloaded afresh copy of the PiicoDev driver just in case…

So still at a loss..

Thank you.
