RafayAli
Newbie level 5
- Joined
- Jun 28, 2012
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,340
Hello,
I am a making a monitoring unit which will take in input from a user (current) and will sample it and will give me the output.
Now I searched the internet and I understand the part where I will have to decrease the voltage value so I did using a voltage divider circuit and I getting a 5V peak to peak and I've added an offset as well but what I don't get is that what will I detect or write in my code?
Can someone please help me just with the pseudocode so that I can get a direction. I know I will have to sample it but how or what the concept will be be behind it. Please help.
I am a making a monitoring unit which will take in input from a user (current) and will sample it and will give me the output.
Now I searched the internet and I understand the part where I will have to decrease the voltage value so I did using a voltage divider circuit and I getting a 5V peak to peak and I've added an offset as well but what I don't get is that what will I detect or write in my code?
Can someone please help me just with the pseudocode so that I can get a direction. I know I will have to sample it but how or what the concept will be be behind it. Please help.