Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   help w/ educontroller (http://www.chiefdelphi.com/forums/showthread.php?t=24146)

jjv 20-01-2004 18:05

help w/ educontroller
 
Hi,
I'm in the process of getting the beacons up and running on the EduController.
I have one connected to PWM IN 1, and would like to put a IR detector on Digital In 1 to monitor it.
I would then like to have a debug that shows the status of this input.
All that I have tried has created errors though.

Any hints?

Mark McLeod 21-01-2004 09:25

Re: help w/ educontroller
 
Quote:

Originally Posted by jjv
Hi,
I'm in the process of getting the beacons up and running on the EduController.
I have one connected to PWM IN 1, and would like to put a IR detector on Digital In 1 to monitor it.
I would then like to have a debug that shows the status of this input.
All that I have tried has created errors though.

Any hints?

Use the beacon code and hook the IR sensor to Digital Input 6.
Add printf("%d",(int) rc_dig_in06); anywhere that gets executed regularly, like Process_Data_From_Local_IO. You'll see a stream of 1's when the beacon is off, and a mixture of 1's and 0's when the beacon is on.

jjv 21-01-2004 10:37

Re: help w/ educontroller
 
Thanks!


All times are GMT -5. The time now is 00:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi