Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Multi client PIC network, how?

Status
Not open for further replies.

Zedman

Full Member level 6
Joined
Oct 13, 2003
Messages
331
Helped
9
Reputation
18
Reaction score
6
Trophy points
1,298
Location
Hungary
Activity points
3,511
75176 max487

I would like to build a voting system
with approx. 100 clients.
I decided to use small PICs in the clients
communicating one server. The server
will poll them periodically. I tought I can
use RS232 network, but RS232 is not
multiclient. What kind of protocol should
I use to minimize required cables?
Should I use star point network?
I have to deal with 20-50 meters of distance.

please help me, thanks,
Zed
 

16f877 75176

You can take a look at RS485.



Depending on the driver chips that are used a max. of 127 nodes can be realized.

If you do not want to write your own protocol you can also look for SNAP and Modbus.

https://www.hth.com/snap
https://www.modbus.org

best regards
 

rs485 network 16f628

You can use CAN network with MPC2115 CAN controllers.
But your pics must have SPI.
 

max487 microchip

CM600 said:
You can use CAN network with MPC2115 CAN controllers.
But your pics must have SPI.
Then I think you'd better use PIC18s with built-in CAN. It'd be cheaper and more efficient that way.
 

picnetwork server

I studied some RS485,

- As i got it a PIC's USART need a 75176 to connect it to a RS485 network,
also I need an external power supply, and terminator resistors.
- I read that 32 clients can connect to a line. And 128 is possible, how?
What repeater(IC) should I use?

I think a PIC16F628 + 75176 is cheaper than a 18Fxxx but if
CAN bus is easier to implement than i'll obey :roll:

please teach me,
thanks
Zed
 

75176 pic

Regarding RS485 if you use Max 487 or Max 1487 as driver you can have up to 128 transmiters on a single RS485 bus, if you use LTC 1487 as driver you can have up to 256 transmiters on a single RS485 bus.

PIC 16F628 should work if your application software requirements are small enough.

I can not help you with CAN as I have never used it ...

best regards
 

max3082 con pic

Hmm...

Tell me if Iam wrong:
if I say i need 100 clients i mean if I poll them with
the PC than I have 1 driver and 100 receiver, and
if a client talks to the PC than the PC turns to a receiver and that client will be the driver. Is it right?

So I should use 100 + 1 = 101 MAX487 as driver/receiver for every client incl. the PC?

Is there any replacement for max487/max 1487?
(Maxim ICs are hard to get here)

thanks C-Man,
Zed
 

rs485 pic max487

Zedman,

you calculation is correct.

I have not found a replacement for Max 487/1487 (regarding max. clients) except LTC 1487 but I am afraid this one is as complicated to get as the MAX?

best regards
 

max1487 rs232

Got ST485 here in the local store, they said they'll
check the quantity for me (I think they don't have 100 pieces :( ),
it can handle 64 nodes.
I asked the local MAXIM sales to give me a price
for 100 pieces of MAX487, but they can ship only in 3-5 weeks. :(
And 75176 is limited to 32 nodes...

sad things they are...
 

max1487 + pic

Hi,

If 115k Baud is fast enough for your application, try the MAX3082. You can have up to 256 transceivers on the bus.

**broken link removed**

-PsI
 

st485 pic16

Hello,
If you use CAN instead of RS485 the software for the pics will be easier becouse the CAN controller automatically will detect errors on the bus( the CRC generator is built in) CAN is also faster :)) search microchip's website they have very nice articles about using CAN
 

pic y 75176

If you want to use the CAN bus then search the new stand-alone CAN controller MCP2515 from Microchip, that is a replacement of the old MCP2510 whit new features and all old errata fixed.
 

75176 network

Finally I ordered 100 pieces of MAX487, they said
it'll be here in 2 weeks.
I'll check out CAN too, but it think i'll use RS485 for now, thanks everyone.

Did anyone tried to transmit voice over RS485?
Is it possible to digitize the voice with PIC's A/D
and send it over a 250kbps RS485 net? I need
only speech freq.

thanks again,
Zed
 

pic can network receiver

Zedman,

I have an application where I use one A/D channel of a pic 16F877 (running at 16MHz) to digitize voice with 8KHz resolution. The digitized values (10 Bit) are ADPCM coded (2 A/D values go into one byte) and the result is stored in an Atmel Dataflash.

Works nice if you can make your input signal cover almost the complete A/D range.

Playback is done with one 16F877 PWM channel using a two stage R/C filter and an LM4819 to drive the speaker.

best regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top