CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

My Schematic and Your Recommendations
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
musti463



Joined: 19 Sep 2013
Posts: 66

View user's profile Send private message

My Schematic and Your Recommendations
PostPosted: Sat Sep 20, 2014 8:58 am     Reply with quote

Can you tell me your recommendations about my schematic?

https://yadi.sk/i/yB38eXkXbapCH
_________________
M.Emir SADE


Last edited by musti463 on Mon Sep 22, 2014 4:51 am; edited 1 time in total
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Sep 20, 2014 2:06 pm     Reply with quote

OK, so you show a schematic.
What do you want to know.
What is it supposed to do?
Where is your CCS code?
_________________
Google and Forum Search are some of your best tools!!!!
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Sep 20, 2014 3:10 pm     Reply with quote

I could make about 40-50 'recommendations' though this is not the forum for that rather dedicated programming of PICs using CCS C.


A schematic is just one piece of the puzzle to get a product to market. You also need GREAT board layout(easy these days) as well as very good code(super easy with CCS C !).


hth
jay
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Sat Sep 20, 2014 7:22 pm     Reply with quote

Hard to say much without knowing a lot about the application, but be careful how you lay out your grounds.
_________________
The search for better is endless. Instead simply find very good and get the job done.
musti463



Joined: 19 Sep 2013
Posts: 66

View user's profile Send private message

PostPosted: Sun Sep 21, 2014 6:31 am     Reply with quote

Yes, i know there is no ccs code. But i wanna create firstly hardware correctly and later create a ccs code. I want your help for my circuit schematic, later i share my layout and lastly my ccs code.

This circuit will suitable. So there are many inputs i know. There are totally 4 sensor inputs but sometimes output types can change 4/0,3/1,/2/2,1/3(mA/V) etc. And my MCU generates some values and send to operator panel circuit and display this values on GLCD. And so while values at critical. System control the crane movements with relays outputs.
_________________
M.Emir SADE
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sun Sep 21, 2014 9:35 am     Reply with quote

Differential inputs for single ended sources are delusional and a waste of parts.

this will NOT fix offsets and NOT reject common mode
( as its all common mode when unbalanced !!) BUT
WILL increase the noise floor up to 3db
in the output signal for U1 -

you would be better off with a simple
BUFFER with ONLY the 100 ohm input "bias/load/terminator left .
just tie the inverting input to the op amp output and buffer

better yet get rid of U1A as you already have a 100 ohm term resistor into the SK filter stage that follows

this design does not need U1A at all so long as there is that 100 ohm resistor present!!

a quick look says the SK follower may be only conditionally stable too !!!

you need some analog chops - don't just cut and paste circuit elements!!!
thats my advice

Very Happy Very Happy Sad Sad Question
musti463



Joined: 19 Sep 2013
Posts: 66

View user's profile Send private message

PostPosted: Sun Sep 21, 2014 11:59 am     Reply with quote

thank you asmboy. You mean "remove all U1:A,U2:A,U3:A.... circuits" ?. To be honest i get this circuit from an industrial device Smile
_________________
M.Emir SADE
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Mon Sep 22, 2014 4:23 am     Reply with quote

YUP!!
just keep the 100 ohm resistor
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Sep 22, 2014 5:12 am     Reply with quote

I'd put LEDs in both sides of the opto-couplers of the 'relay outputs'. I've done this for 2 decades in my SSRs and it's saved a LOT of 2Am calls for 'no heat' ! A simple look at the board shows IF the LED is on the relay is working, so 'no heat ' problem is NOT my board must be your furnace.

As for PCB layout, bigger is better. I'd use a 4" x 6" (my standard) PCB, with fat traces for power and grounds. I prefer a checkerboard ground plane not a 'fill', especially if the 2 board surfaces greatly differ in copper. More on one side will 'cup' the PCB. Always use sockets for PIC, never run traces between adjoining pins if possible.

Why socket the PIC? 3 days after the PCB is done, you'll need more RAM, or EEPROM or the new PIC will be 1/2 the cost !

hth
jay
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Mon Sep 22, 2014 1:34 pm     Reply with quote

While I agree with the idea of a socket for the PIC, you need to consider if it is going to be used in a high humidity or vibration environment. Both of those can make a socket more trouble than it is worth.

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Sep 22, 2014 4:28 pm     Reply with quote

musti463 wrote:
To be honest i get this circuit from an industrial device Smile
That explains why many old components are used.
BC547 I used 35 years ago and LM2576 20 years ago. They are good and cheap components but more efficient alternatives do exist. So without knowing the details of your project it is hard to tell if these are the best choice.

Why is one of the 10V inputs using other op-amps?

Do you really need an external 12-bit ADC? Many PIC processors have 10-bit ADC so you can simplify your design. Getting accurate 12-bit readings is difficult as it requires great care in PCB design and a very stable power supply. Many people design 12-bit or even 16-bit ADCs with the false assumption that it'll be accurate when it has poor design and effectively 8 to 9 bits accuracy.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Sep 22, 2014 4:55 pm     Reply with quote

Isn't redesigning a commercial circuit just a bit far afield for this board?
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 22, 2014 6:02 pm     Reply with quote

It's getting off topic. It really should be done on a hardware forum.
This one,
http://www.edaboard.com
or maybe this one:
http://forum.allaboutcircuits.com
temtronic



Joined: 01 Jul 2010
Posts: 9246
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Sep 22, 2014 6:09 pm     Reply with quote

ck is right about using a different PIC with a better ADC built in.It allows for as good(if not better performance),cheaper overall, easier to code,etc.

As for sockets, I've used gold plated ones and a dab of low tack sealant in industrial boards(in foundries,paint shops,etc.) for ,ugh, 2 decades(originally 16C84s) and have never had any problems related to socket-itis.

jay
musti463



Joined: 19 Sep 2013
Posts: 66

View user's profile Send private message

PostPosted: Tue Sep 23, 2014 4:41 am     Reply with quote

thanks for your advices. There is easy to use MCP3208 with PIC. Because there is MCP3208.c in CCS C Library right?

1-So how is 18F46K80 (internal 12bit ADC). And so there isn't AVSS pin on 18F46K80. How can i provide the good ADC performance?

2-Can ADC performance be different PIC to PIC ?

@PCM Programmer i asked same question at edaboard.com. But i found better answers and better attention here!
_________________
M.Emir SADE


Last edited by musti463 on Tue Sep 23, 2014 7:29 am; edited 2 times in total
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group