Skip to main content
Commonmark migration
Source Link

I have built [this][1]this ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines "directly" to the RX pin of the PIC18 and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

I have built [this][1] ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines "directly" to the RX pin of the PIC18 and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

I have built this ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines "directly" to the RX pin of the PIC18 and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware.

removed some stupid thing about diods...
Source Link
Anttu
  • 171
  • 1
  • 5

I have built [this][1] ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines directly"directly" to the RX pin of the PIC18 (probably some diods needed, suggestions?) and hope hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

I have built [this][1] ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines directly to the RX pin of the PIC18 (probably some diods needed, suggestions?) and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

I have built [this][1] ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines "directly" to the RX pin of the PIC18 and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

Added more info about sensor hardware
Source Link
Anttu
  • 171
  • 1
  • 5

I have built this[this][1] ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines directly to the RX pin of the PIC18 (probably some diods needed, suggestions?) and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

I have built this ID sensor for a Scalextric slot car track. The ID sensor sends the ID of a detected car as a RS232 signal on one pin.

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines directly to the RX pin of the PIC18 (probably some diods needed, suggestions?) and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

I have built [this][1] ID sensor for a Scalextric slot car track, based on a PIC12F629. The ID sensor sends the ID of a detected car as a RS232 signal on one pin (TTL level).

My question is, how can I receive data from like four of these micro controllers into another micro controller's (PIC18F2550) USART?

I came up with these possibilities:

  1. Just connect all of the serial lines directly to the RX pin of the PIC18 (probably some diods needed, suggestions?) and hope that two cars doesn't pass any sensor that close in time so the signals are overlapping each other. This could actually be a good start and will probably work 99.9% of the time. I mean, the mathematical probability that two cars are detected that close in time cannot be worth the effort of the other suggestions...after all, it's a hobby project.
  2. Implement a busy signal that is raised when the ID sensors sends data and checked before sending.
  3. Add some fancy multiplexer chip that eats the serial signals and outs them on a single line.

Each ID sensor chip will be coded with an identifier that is sent as part of the data, so they can be separated at the receiving end.

Update: Added some more info about the sensor hardware. [1]: http://www.electricimages.co.nz/SSD_Decoder.ashx

Source Link
Anttu
  • 171
  • 1
  • 5
Loading