Problem with PB1 GPIO


#1

Hello,

Today I have connected one of my boards, but PB1 GPIO is having a weird behaivour.

When I move my pot from left to rigth It jumps from one position to other and at the end to other else.

I can get it moves smoother if I rotate very it slowly in the last tram.

Any idea about what is the problem? I have tried other pots getting the same behaivour.

I really apreciate any help.


#2

How is your pot connected?
The analog input of the Axoloti wants to see a voltage between 0 and 3.3V, so it is best to connect one end of the pot to ground, one to 3.3V and the wiper to the analog input.
Your result looks like the ground connection is broken.


#3

Thank for your answer Nosnibor,

I have one side pot pin to VDDA, other to ground and middle pin to PB1. I have tried different grouns and it doesn´t make any difference. Connecting the same pot to PB0 it works fine, so I guess the problem is the PB1 hardware input. Othes are working fine.

I have been using this board with controller and I realized this when I mount with direct potenciometers :frowning:

¿Any idea how to solve this? I need all GPIOS fro this project.


#4

If the same pot works fine with PB0, then the problem must be something special about PB1.

Something seems to pull the voltage up, so the pot has difficulties reaching the lower ADC values. That could be:

a) outside of the CPU. There coulkd be a tiny solder bridge or short circuit between the PB1 line and VDDA or some other positive signal.

b) inside the CPU: some processors can turn on different functions of the same pin at the same time, useless as that is. I am not sure if the Axoloti CPU can do this. So maybe, if somewhere in your patch some object used PB1 as an output, that would explain the problem.

c) damage to the CPU chip. Sometimes, when handling electronic parts and circuits without proper ESD protection, a pin gets zapped, which damages the chip. That could totally kill the chip, but more often does only damage to the one pin. This has happened to me twice with CPUs (not Axoloti though), and each time the pin afterwards behaved as if it had an additional resistor connected from the pin to either supply voltage or ground. If that has happened to you, that is awfully bad luck, because it is impossible to repair.


#5

Thanks Nosnibor,

I am trying only with GPIO to Disp/Dial P, so b) option should not be a pronblem.

I have check conections carefully and they look ok .

I have tried the rest of GPIOs and I having similar problems in others, PA5 only goes from 3 to 63 and the movement is unstable jumpling back forward in the middle.

I am afraidit is a c) problem... bad luck.

I hope we get back Axoloti stock soon :frowning: