2

Author Topic: Sending digital output to computer  (Read 1054 times)

0 Members and 1 Guest are viewing this topic.

Offline jimmyTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Sending digital output to computer
« on: December 27, 2009, 02:44:27 PM »
I have a security system that came with my house that is not connected to the security company anymore. It works, and the sensors around the house work, and I can use the connections(wires) in the security box for each sensor to know if they are activated.

What I want to do is, when a sensor trips, to send a signal through CAT5 cable to my computer. So I want to connect the sensors to a board, and from the board send bytes through a network to a computer so I can identify which sensor was activated.

Please tell me the type of board(and micro controller) I need to do this, and where to get them. My electronics knowledge is limited, so please explain. Thanks.

Offline z.s.tar.gz

  • Supreme Robot
  • *****
  • Posts: 540
  • Helpful? 5
  • Linux Guru
Re: Sending digital output to computer
« Reply #1 on: December 27, 2009, 08:04:37 PM »
You're going to want to go with a setup like this:
Sensors <> Microcontroller <> UART <> Computer

Here's the tutorial on uart:http://www.societyofrobots.com/microcontroller_uart_50_robot.shtml
I recommend avr for microcontrollers, and mouser.com for buying them personally. Other people will tell you other things.

You're going to need to read up on basic electronics and programming as well.
I don't personally know of a good tutorial on electronics, but http://www.cprogramming.com/tutorial.html is a good place to learn C, which you will most likely be using.
« Last Edit: December 27, 2009, 08:08:03 PM by z.s.tar.gz »
Save yourself the typing. Just call me Zach.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Sending digital output to computer
« Reply #2 on: December 27, 2009, 08:21:25 PM »
Yeap, Uart is what you will need to use.
One advantage of uart are you can incorporate wireless easily...
You don't want to have the sensors relay the information to an ethernet port do you?
Howdy

Offline jimmyTopic starter

  • Beginner
  • *
  • Posts: 2
  • Helpful? 0
Re: Sending digital output to computer
« Reply #3 on: December 28, 2009, 09:41:36 AM »
Yes, to an Ethernet port. I just want to send a particular byte sequence through my router to my computer, based on what sensor is fired.

Offline z.s.tar.gz

  • Supreme Robot
  • *****
  • Posts: 540
  • Helpful? 5
  • Linux Guru
Re: Sending digital output to computer
« Reply #4 on: December 28, 2009, 10:17:33 AM »
You can probably change the 50$ robot controller to meet your needs as far as circuitry goes.
I think mouser.com  sells ethernet ports that you can put on your board too, although I would personally look into the xbee wireless modules for this, as a really long chord can be troublesome.
Save yourself the typing. Just call me Zach.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: Sending digital output to computer
« Reply #5 on: December 28, 2009, 05:20:08 PM »
I would not recommend sending it to your ethernet port as you will need an ethernet controller which are
just plain hard to use. Instead, maybe consider using serial or parallel with hyperterminal, much less complicated.
Howdy

 


Get Your Ad Here

data_list