The Godfather talking
You can run, but you can't hide.
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 06:08:07 06:08


Login with username, password and session length


Pages: [1]
Print
Author Topic: Easypic add on board project  (Read 3294 times)
0 Members and 1 Guest are viewing this topic.
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 539
-Receive: 408



« on: March 26, 2010, 05:06:25 17:06 »

Recently I wanted to measure the voltage of one of my PSU’S, Normally I knock it up on Vero-board or try and throw it together only to give up half through due to the fact that I’m not 100% happy with the reading I obtain, Like not been accurate enough compared to my multi-meter or stable enough, I know it might be asking too much from a 10bit old pic,
I did think about adding a 12-24bit A/D converter chip but they add more cost’s to the project plus it’s writing the code (which is not a problem), I also thought about just adding a resistor divider but I thought by using an op-amp it act’s has a buffer which is better I think.
So I decided to design a add on board for the Easypic board to get it right, Looked through my junk box and found the LMC660 op-amp which is a single supply/ rail to tail so I thought that will do I simulated it in ISIS then moved to Altium for designing the PCB.  Because the op-amp is a quad type may as well make it do up to 4 channels.
I added a LM341 adjustable precision reference voltage to improve the reading but rather than have it fixed I made it variable either 2.50V or 4.096V. But after building the board up and played around with it I found that it made the reading worse, well this could be the way I coded it but I tried several methods and picked the best method and never use the LM341
This is all tested and working so I thought I will share it, It’s simple and straight forward to set up and calibrate, Feel free to pass any comments error’s or even post your code if you can get better reading using it or an easier way than mine
Here are some pictures of it working  and the project file that I threw together with sample code for one channel only
« Last Edit: March 26, 2010, 08:01:04 20:01 by Wizpic » Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 539
-Receive: 408



« Reply #1 on: March 26, 2010, 08:02:12 20:02 »

Here is the book with all the stuff required to build
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
metal
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2420

Thank You
-Given: 862
-Receive: 678


Top Topic Starter


« Reply #2 on: March 27, 2010, 12:05:47 12:05 »

Nice one wizpic. I was talking to bbarney about the ADC and voltage measurement. He pointed me out to a nice topic you might want to try out:

http://digital-diy.com/handy-tips/148-adc-calibration.html

This might help you get better results from the existing circuit.
Logged
Wizpic
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1195

Thank You
-Given: 539
-Receive: 408



« Reply #3 on: March 27, 2010, 01:20:33 13:20 »

I shall have a look at that, I only used the sample code just to show, The readings I get are very stable and accurate. Has it is without using V-Ref. But more ways the better

Glad you like it. It's nice to get some feed back

Wizpic
Logged

When you think, "I can't do anymore. I need a break," that is the time to challenge yourself to keep going another five minutes. Those who persevere for even an extra five minutes will win in life..
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC