Go Down

Topic: using arduino as analog input for python program (Read 111 times) previous topic - next topic

aieio

Hi, I wrote a pyhton program and I would like to use an anlog input to control it. Basically I was thinking to use 3 potentiometers to set 3 different variables and 2 buttons which would activate 2 different method. I'm quite new to arduino so I'm not very sure how to do it. which way would you reccomend me? at the moment I have an arduino Uno board by sunfounder which a friend of mine gave me. would that one be fine? can I handle 5 different analog inputs at once?
thank you very much!

sterretje

#1
Dec 14, 2018, 01:57 pm Last Edit: Dec 14, 2018, 01:58 pm by sterretje
Did you read the stickied post Demo of PC-Arduino comms using Python at the top of this foprum section?

Just in case, the other side for receiving from the PC is described here in detail: Serial Input Basics - updated; not sure if it's needed but makes a good reading how to approach serial communication.

That should give you enough ammunition.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up