Jump to content

Voltage detect in PIC


vincentspm

Recommended Posts

Hello and welcome to the community.

Your post is a little confusing and surely it is in the wrong group.

Or what is your concept you want to discuss ??

(You postet in Design concepts ... )

But to answer your question:

then i use potentiometer to control the voltage sending in to the input of the PIC from 0 - 5v..then in programming, what can it detect?

The voltage between 0 and 5 Volt  ???

If your question is how to program this in general you should take the datasheet of the PIC and a nice source of "How to program a PIC"

If you want to control a midi value with it: You can use the AIN Module for this purpose.

Sorry if this sounds a bit hard (english isn't my native language) but it could also be, that I misunderstood your question ...

example if i vary 2.5v, then in programming what should i write?

You should write what you want to do with the 2,5V at the input ...

greets

Doc

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...