+ 10

How to limit potentiometer values to be between 0 and 5 in python?

21st May 2019, 4:34 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
4 Antworten
+ 3
I'm guessing you're talking about a raspberry py here? You can use the map function to map the analog value of the potentiometer to a value between 0 and 5
21st May 2019, 5:20 PM
Julian
Julian - avatar
+ 11
Julian in python as I have written
21st May 2019, 5:24 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 5
Lothar those values came from Arduino Nano and written in Serial monitor and we want to read using RPi 3 and limit them Raspberry pi 3 an
25th May 2019, 12:31 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 3
Zhenis, I think this needs a bit more information: - where does these values come from? - Are these values stored, and if so - where?
21st May 2019, 6:54 PM
Lothar
Lothar - avatar