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

10 motors
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
nasbyc



Joined: 27 Apr 2009
Posts: 50

View user's profile Send private message AIM Address

PostPosted: Thu Nov 10, 2011 10:56 am     Reply with quote

I use gear dc motor. Here is the link.

https://catalog.precisionmicrodrives.com/order-parts/product/212-404-12mm-dc-gearmotor-24mm-type
nasbyc



Joined: 27 Apr 2009
Posts: 50

View user's profile Send private message AIM Address

PostPosted: Fri Nov 11, 2011 6:02 am     Reply with quote

Ttelmah wrote:
Differential busses, with twisted pair wiring, are _much_ more likely to be reliable with motors around. Even over the short distances involved, you _will_ have problems with single ended busses like RS232/RS423, and motors nearby


I decide to try with rs485 by using max488. I noticed that it is a full duplex and 4 wire needed to connect one device to another A,B,Y and Z. Do I really need the physical twisted wires connecting them. Does it mean I have to use separate stripboard. About the pin:
pin DI connecting to TX (pic)
pin RO connecting to RX (pic)

The same configuration should be similar for master and all slave, am i correct? And by using hardware device (max488), I'm bit confused about which config do i need to use, either software uart or hardware uart.
temtronic



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

View user's profile Send private message

PostPosted: Fri Nov 11, 2011 6:31 am     Reply with quote

If you look at the MAX1487..491 datasheet, fig. 21 shows a 'typical half-duplex RS-485 network' which shows how to hookup your PICs to a network. Normally the TX and RX control pins are tied together so the PIC only needs 1 pin to work. The use RS232(...) has an option as to which pin does this.

You have to decide whether you want full duplex or half duplex mode. Most probably use half duplex, overall easier, fewer pins, smaller chips, etc. Tons of example code here and there as well.

Twisted pairs allow for better noise immunity.Typically you use 'CAT5' cables. One pair for signal, if half duplex, 2 for full duplex. The other 2 pairs are paired for power to the 'remote' PICs on the network.

Using the hardware UART allows for faster operation since you get to use ISRs and the UART buffers. In your case, since each PIC only is on one network, I'd use the hardware UART.
I'd use the MAX481 for your project, fastest of the chips, has 'control' pins, the choice for 1/2 duplex operation.
nasbyc



Joined: 27 Apr 2009
Posts: 50

View user's profile Send private message AIM Address

PostPosted: Fri Nov 11, 2011 9:43 am     Reply with quote

Thanks a lot guys. Really apreciate all your help. What i need now is to buy the components and construct the circuit.
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 Previous  1, 2
Page 2 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